503 There was a temporary error

This Google Analytics API error indicates that there was a problem processing your query request. This can occur if you make too many bad queries in a short period of time, or if you use use up your quota for the day. In some cases, it may indicate that the server was too busy to process your request (usually for a very large query). 

If you get any error from a query, investigate what may be causing the error instead of simply trying over and over. Too many attempts will cause even good queries to get blocked in this way.

The only solution is to wait for a period of time until the API lets you try again.