Last active
February 21, 2018 07:45
Star
You must be signed in to star a gist
Deleting a twitter line item renders the promoted tweets inaccessible for direct deletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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