@ampushdev and @sanjeevchadha84: Wanted to follow up here. What we’re looking for is a request, such as the following, so that we can understand what’s happening.
Creating a Promoted-only Tweet
$ twurl -X POST -H ads-api.twitter.com "/1/accounts/18ce54d4x5t/tweet?status=hello&as_user_id=756201191646691328"
{
"data_type": "status",
"data": {
"created_at": "Thu Dec 15 20:18:53 +0000 2016",
"id": 809492949390139400,
"id_str": "809492949390139392",
"text": "hello",
"truncated": false,
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": []
},
"source": "<a href=\"https://ads-api.twitter.com\" rel=\"nofollow\">Ads API Internal Test App</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 756201191646691300,
"id_str": "756201191646691328",
"name": "API McTestface",
"screen_name": "apimctestface",
"location": "San Francisco, CA",
"url": null,
"description": "Into testing and APIs",
"protected": false,
"followers_count": 0,
"friends_count": 0,
"listed_count": 0,
"created_at": "Thu Jul 21 18:56:28 +0000 2016",
"favourites_count": 0,
"utc_offset": null,
"time_zone": null,
"geo_enabled": false,
"verified": false,
"statuses_count": 2,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "000000",
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/756348317458509825/DTKcRCpS_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/756348317458509825/DTKcRCpS_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/756201191646691328/1469162431",
"profile_link_color": "000000",
"profile_sidebar_border_color": "000000",
"profile_sidebar_fill_color": "000000",
"profile_text_color": "000000",
"profile_use_background_image": false,
"has_extended_profile": true,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweet_count": 0,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"scopes": {
"followers": false
},
"lang": "en"
},
"request": {
"params": {
"status": "hello",
"as_user_id": 756201191646691300,
"account_id": "18ce54d4x5t"
}
}
}
And then trying to delete it.
$ twurl -X POST -H api.twitter.com "/1.1/statuses/destroy/809492949390139392.json" | jq
{
"errors": [
{
"code": 183,
"message": "You may not delete another user's status."
}
]
}
While I’m able to create a Tweet for @apimctestface (account ID: 18ce54d4x5t; user ID: 756201191646691328), I’m not authenticated as that user.
In order to delete this user’s Tweet, I have to be authenticated as that user.
$ twurl set default apimctestface
$ twurl -X POST -H api.twitter.com "/1.1/statuses/destroy/809492949390139392.json" | jq
{
"created_at": "Thu Dec 15 20:18:53 +0000 2016",
"id": 809492949390139400,
"id_str": "809492949390139392",
"text": "hello",
"truncated": false,
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": []
},
"source": "<a href=\"https://ads-api.twitter.com\" rel=\"nofollow\">Ads API Internal Test App</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 756201191646691300,
"id_str": "756201191646691328",
"name": "API McTestface",
"screen_name": "apimctestface",
"location": "San Francisco, CA",
"description": "Into testing and APIs",
"url": null,
"entities": {
"description": {
"urls": []
}
},
"protected": false,
"followers_count": 0,
"friends_count": 0,
"listed_count": 0,
"created_at": "Thu Jul 21 18:56:28 +0000 2016",
"favourites_count": 0,
"utc_offset": null,
"time_zone": null,
"geo_enabled": false,
"verified": false,
"statuses_count": 2,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "000000",
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/756348317458509825/DTKcRCpS_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/756348317458509825/DTKcRCpS_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/756201191646691328/1469162431",
"profile_link_color": "000000",
"profile_sidebar_border_color": "000000",
"profile_sidebar_fill_color": "000000",
"profile_text_color": "000000",
"profile_use_background_image": false,
"has_extended_profile": true,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false,
"translator_type": "none"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": [
2417045708
],
"is_quote_status": false,
"retweet_count": 0,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"scopes": {
"followers": false
},
"lang": "en"
}
We first need to make sure that this—the authenticating user issue—isn’t what’s causing what you’re seeing. So please provide us some examples of this flow. Thanks!