POST promoted_tweets

creative
campaign-management

#1

Dear Twitter Staff,
I have a trouble when creating promoted tweets.

Steps I’m following:

  1. Creating tweet to get tweet_id : POST accounts/:account_id/tweet ( Creating successfully and getting tweet_id)
  2. Using this tweet_id to create promoted tweet: POST accounts/:account_id/promoted_tweets
    But i get error :

[errors] => Array
(
[0] => stdClass Object
(
[code] => NOT_FOUND
[message] => Tweet {tweet_id} was not found
)
)

I don’t know why? Please help me!
Thanks for your help!


#2

We need more information about the calls you’re making to help you here. Please follow the Guidelines for Reporting Issues and complete the missing information in this thread.


POST promoted_tweets
#3
  1. I created a tweet by POST accounts/:account_id/tweet

Request:

twurl -H ads-api.twitter.com “/0/accounts/ftr8ac/tweet” -d “staus=abc&as_user_id=956971956”

Response:

{“data_type”:“status”,“data”:{“created_at”:“Tue Jan 05 02:39:39 +0000 2016”,“id”:684202570777112576,“id_str”:“684202570777112576”,“text”:“abc”,“source”:"\u003ca href=“http://engagemanager.com” rel=“nofollow”\u003eEngageManagerAdsForDev\u003c/a\u003e",“truncated”:false,“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”:956971956,“id_str”:“956971956”,“name”:“chiba_hamako”,“screen_name”:“chiba_hamako”,“location”:"",“url”:null,“description”:"",“protected”:true,“followers_count”:10,“friends_count”:0,“listed_count”:0,“created_at”:“Mon Nov 19 08:05:22 +0000 2012”,“favourites_count”:11,“utc_offset”:32400,“time_zone”:“Tokyo”,“geo_enabled”:false,“verified”:false,“statuses_count”:1380,“lang”:“ja”,“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://pbs.twimg.com/profile_images/506362719155392512/pjVlsUog_normal.jpeg”,“profile_image_url_https”:“https://pbs.twimg.com/profile_images/506362719155392512/pjVlsUog_normal.jpeg”,“profile_banner_url”:“https://pbs.twimg.com/profile_banners/956971956/1412757653”,“profile_link_color”:“0084B4”,“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”:false,“following”:true,“follow_request_sent”:false,“notifications”:false},“geo”:null,“coordinates”:null,“place”:null,“contributors”:null,“retweet_count”:0,“favorite_count”:0,“entities”:{“hashtags”:[],“symbols”:[],“user_mentions”:[],“urls”:[]},“favorited”:false,“retweeted”:false,“scopes”:{“followers”:false},“lang”:“und”},“request”:{“params”:{“status”:“abc”,“as_user_id”:956971956,“account_id”:"ftr8ac”}}}

So I get a tweet_id returned from above response:

“id”:684202570777112576

  1. I create promoted tweet by POST accounts/:account_id/promoted_tweets

Request:

twurl -H ads-api.twitter.com “/0/accounts/ftr8ac/promoted_tweets” -d “line_item_id=3xwq6&tweet_ids=684202570777112576”

Response:

{“errors”:[{“code”:“NOT_FOUND”,“message”:“Tweet 684202570777112576 was not found”}],“request”:{“params”:{}}}

I have problem when i 'm trying to create a promoted tweet.
Please help me !! Thanks!!


#4

Related post: Diverging tweet ids between Ads API endpoint and ads.twitter.com interface


#5

@themoon287 have a look at the relevant thread that @alex_coppens linked to - could this be relevant to the issue you are dealing with?


#7

Dear @andrs ,
I used id_str instead of id to post promoted_tweets.
But, the result is still like as : Tweet {tweet_id} was not found


#8

I believe the issue is the same as what I mentioned in your other thread - trying to promote a protected Tweet.


#9

I will try it ! Thank you so much !