In the promoted tweets endpoint of ads-api, certain promoted tweets are available only when passed in this format as a single promoted tweet id:
https://ads-api.twitter.com/5/accounts/:account_id/promoted_tweets/:promoted_tweet_id
and not when passed as a list of comma separated ids:
https://ads-api.twitter.com/5/accounts/:account_id/promoted_tweets?promoted_tweet_ids=comma-separated-promoted-tweet-ids
Not sure if the bug is limited to the promoted tweets endpoint or not. I’m trying to retrieve a bunch of promoted tweets together, but the response doesn’t contain some of the tweets that are requested. The screenshots above are for one such tweet.
Any help would be appreciated. Thank you.
jrsyo
#2
Hi @ShriganeshPG ,
Thanks for reporting this issue.
I could reproduce as well. We will investigate this and get back to you.
P.S.
We do have an official Postman collection for the Ads API now:
Best,
Shohei
@jrsyo - Thank you for the response. The Postman collection has been very helpful.
Is there any update regarding the bug? We are facing some difficulty enriching the metrics with the tweet related data as we’re missing out on those tweets.
jrsyo
#5
@ShriganeshPG
We noticed that the promoted tweet in question is linked to one of your “Trend” campaigns. As we provide a separate UI for those special campaigns, we think that’s the reason why Ads API is not returning the information in case if it’s associated with a non-standard campaign. We don’t think this is a “bug” but more like our current implementation. We will see internally as to if we can improve this in the future. Thank you for your patience.
Oh. I see. Thank you for the quick response.
I don’t suppose there’s a different API endpoint to fetch those promoted tweets? It wouldn’t be ideal to make individual API calls to fetch them.
Would be great if PromotedTweets endpoint could return data when all the entity ids passed are linked to the special campaigns. That would mean making only two API calls, as opposed to individual calls for each of the promoted tweet linked to the special campaigns.
jrsyo
#7
@ShriganeshPG Yes, there’s no way to fetch those entities at the moment. I appreciate your feedback and thank you for your understanding.
Best,
Shohei