Stats details not displayed everytime when make call

api

#1

Hi, I have a loop of multiple accounts and I am making ‘https://ads-api.twitter.com/1/stats/accounts/:account_id’ call to get all the stats with ‘DAY’ granularity. Sometimes i get all the stats details of all the accounts in one shot, and sometimes the call is successful for only some account from the loop.

Is it something related to limitation? Please help.


#2

We would highly recommend to make these sort of requests with “async” endpoint instead of the synchronous one, because as you point out there are rate limits for the synchronous endpoint. Also, since calling the async endpoint is technically a little more complicated than sync one we have been careful to be sure it’s covered by the SDKs listed in this article:

Also, please refer to this page for general information about sync vs async in the “Recommended use of Synchronous vs Asynchronous endpoints” section:

https://dev.twitter.com/ads/analytics