snoh11
#1
What endpoint are you using?
[type or paste code here](https://ads-api.twitter.com/10/stats/accounts/18ce55339ma/active_entities?entity=PROMOTED_TWEET&start_time=2022-10-25&end_time=2022-10-26)
Endpoint name = active_entities
What API version are you on?
ver 10
Are you using a library or SDK? Which one?
None
What is the issue?
503 error on the api call for a single account: 18ce55339ma. API calls for the other accounts are working.
https://ads-api.twitter.com/10/stats/accounts/18ce55339ma/active_entities?entity=PROMOTED_TWEET&start_time=2022-10-25&end_time=2022-10-26
Steps to reproduce the issue
Step 1: Make the API call in the above mentioned URL
Step 2:
What is the error message?
503 error
When did it start?
10/18
What have you tried to troubleshoot?
Reviewed documentation, retried call at different times.
Hi @snoh11, thank you for your question.
I noticed that you are using version 10 of the Ads API. Version 10 had its end-of-life on October 27, 2022, as you can find in this version history page:
Do you think you could try using v12, which is the most recent version?
You can find more information about this version here:
Hi @snoh11,
Thanks for your patience. I looked into this issue further.
This issue might be due to the request being quite expensive, hence failing to complete within the enforced timeout.
Do you think you could consider narrowing the search down using optional endpoint parameters to improve latency? For example, you could include campaign_ids:
https://ads-api.twitter.com/{{version}}/stats/accounts/{{account_id}}/active_entities?start_time=2022-10-25&end_time=2022-10-26&entity=PROMOTED_TWEET&campaign_ids={{campaign_id}}
snoh11
#4
Hi @stephinami,
It seems that updating the version should fix this. We’ll also note narrowing the call to improve latency.
We’ll keep you posted on progress here - thank you.
1 Like