Skip to content

Instantly share code, notes, and snippets.

@cgsimmons
Last active February 21, 2018 07:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cgsimmons/4d18171e194b13d266381a9341fc01a0 to your computer and use it in GitHub Desktop.
Deleting a twitter line item renders the promoted tweets inaccessible for direct deletion
DELETE https://ads-api.twitter.com/2/accounts/18ce54auygc/line_items/b3q7k
Ok!
DELETE https://ads-api.twitter.com/2/accounts/18ce54auygc/promoted_tweets/1rq4fy
Error: Promoted Tweet 1rq4fy was not found for Account 18ce54auygc
GET https://ads-api.twitter.com/2/accounts/18ce54auygc/promoted_tweets/1rq4fy
Error: Error: Promoted Tweet 1rq4fy was not found for Account 18ce54auygc
GET https://ads-api.twitter.com/2/accounts/18ce54auygc/promoted_tweets/1rq4fy?with_deleted=true
OK!, returns:
{u'approval_status': u'ACCEPTED',
u'created_at': u'2018-02-21T07:14:14Z',
u'deleted': False,
u'entity_status': u'ACTIVE',
u'id': u'1rq4fy',
u'line_item_id': u'b3q7k',
u'tweet_id': u'966209425806626821',
u'updated_at': u'2018-02-21T07:14:15Z'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment