Hello,

I’m running into an issue where promoted tweets won’t be added to a line item. The response back indicates that the tweet cannot be found.

Request in question: POST https://ads-api.twitter.com/10/accounts/18ce55235kd/promoted_tweets?line_item_id=m4zx7&tweet_ids=1513928642941931521

Response: {“errors”:[{“code”:“NOT_FOUND”,“message”:“Tweet 1513928642941931521 was not found”,“parameter”:“tweet_id”}],“request”:{“params”:{“tweet_ids”:[1513928642941931521],“line_item_id”:“m4zx7”,“account_id”:“18ce55235kd”}}}

Any help as to why this might be happening/what can be done to fix would be greatly appreciated!

Could you provide a link to the published Tweet and is this Tweet available via the tweets endpoint

Hello,

Unfortunately I cannot - part of our flow is that if the creative fails to be fully published, then a “teardown” is done that will delete the campaign and underlying creative.

When making a request to POST /10/accounts/18ce55235kd/tweets?tweet_type=PUBLISHED, I get an empty response in the “data” field. Unsurprising, as the creative was deleted (but we only do this after a failure, such as the one above).

I would suggest modifying the application to ensure the Tweet is available via the tweets endpoint prior to promoting it and potentially retrying if this fails. It’s unclear why the Tweet would not be found so we would need more information and API responses that demonstrate this issue. If the requests for Tweet creation and calling promoted Tweets is too short, there is a possible this was a transient infrastructure issue; adding a delay between the creation and promotion would likely resolve this.

Thank you for the response. Will do a bit of refactoring to check if the tweet is accessible before trying to add to the line item, as well as not deleting it if it does fail. Should the issue come up again I will update this thread. Thank you for the insights!