Tweet cannot be found when trying to create a promoted tweet


#1

Hi,

I was trying to create a promoted tweet using the POST /accounts/:account_id/promoted_tweets endpoint and was getting a “Tweet not found” error message, while I checked that the tweet is actually accessible through the status endpoint. Below is an example of the requests. Any help will be appreciated, thanks!

Account Id: 18ce53uuf0f

Example Requests:

<=== [2017-05-01 18:19:12 +0000 :: oxnoizk2g :: ea98 :: 1851862034] twurl -H ads-api.twitter.com -X POST -d "line_item_id=47ss2&tweet_ids=855102507005104128" "/1/accounts/18ce53uuf0f/promoted_tweets"
===> [2017-05-01 18:19:13 +0000 :: oxnoizk2g :: ea98 :: 404 Not Found :: 0.443s :: 300/300 (…38s)] {"errors":[{"code":"NOT_FOUND","message":"Tweet 855102507005104128 was not found"}],"request":{"params":{}}}
<=== [2017-05-01 18:24:26 +0000 :: ov00a2pz8 :: an23 :: 1851862034] twurl -X POST -d "id=855102507005104128" "/1.1/statuses/lookup.json"
===> [2017-05-01 18:24:27 +0000 :: ov00a2pz8 :: an23 :: 200 OK :: 0.278s :: 899/900 (…900s)] [{"created_at":"Thu Apr 20 16:54:59 +0000 2017","id":855102507005104128,"id_str":"855102507005104128","text":"Edward New Test","truncated":false,"entities":{"hashtags":[],"symbols":[],"user_mentions":[],"urls":[]},"source":"\u003ca href=\"http:\/\/www.adparlor.com\" rel=\"nofollow\"\u003eAdParlor\u003c\/a\u003e","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":1851862034,"id_str":"1851862034","name":"AdParlor Dev","screen_name":"AdParlorDev","location":"","description":"","url":null,"entities":{"description":{"urls":[]}},"protected":true,"followers_count":5,"friends_count":8,"listed_count":0,"created_at":"Tue Sep 10 15:57:05 +0000 2013","favourites_count":0,"utc_offset":-14400,"time_zone":"Eastern Time (US & Canada)","geo_enabled":true,"verified":false,"statuses_count":9355,"lang":"en","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","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:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png","profile_image_url_https":"https:\/\/abs.twimg.com\/sticky\/default_profile_images\/default_profile_normal.png","profile_link_color":"1DA1F2","profile_sidebar_border_color":"C0DEED","profile_sidebar_fill_color":"DDEEF6","profile_text_color":"333333","profile_use_background_image":true,"has_extended_profile":false,"default_profile":true,"default_profile_image":true,"following":false,"follow_request_sent":false,"notifications":false,"translator_type":"none"},"geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":0,"favorite_count":0,"favorited":false,"retweeted":false,"scopes":{"followers":false},"lang":"en"}]

#2

Hi Edward,

The user that account ID 18ce53uuf0f is associated with is protected which is why you are unable to promote those tweets. Removing this restriction on the user should resolve this issue for you.