Error code 503: Service Temporarily Unavailable



We’re getting the below error when requesting Twitter Ads metrics. It seems to happen when we request segmentation. What does it mean? Should we retry the request?


HttpResponseException: Failed to fetch twitter ads request: code 503 reason “Service Temporarily Unavailable” url “” content “{“errors”:[{“code”:“SERVICE_UNAVAILABLE”,“message”:“Service unavailable due to request timeout; please try the request again later”}],“request”:{“params”:{}}}”


Hi @TaliDolev,

Just from eyeballing this request, I’m guessing that you’re timing out due to the size of this request. Three years is a huge window. Try chopping this up into smaller increments.

Check out our Analytics Best Practices for more information on this topic.