Promoted Tweet Report with python SDK

python
ads
sdk
api

#1

Hi,

There is two questions.

  1. A best way to fetch Promoted Tweet async data and creatives with image , video url , text.
  2. A solution for the error from Tweet.preview()

1
Now I’m trying to generate Promoted Tweet Report.
But I’m not sure how to fetch PromotedTweet data and each creatives including image,video ,url, text .

Which is the best way to fetch async data and creatives ??

2
An error is below.
twitter_ads.error.Forbidden: <Forbidden object at 0x10509fac8 code=403 details=[{'code': 'NOT_FOUND', 'message': 'User ******** was not found'}]>

I’m sure that account_id includes tweet_id.

Thanks , yasu


#2

The second issue is a bug which we are fixing this week. For fetching stats, please view https://dev.twitter.com/ads/analytics#analytics-implementation-details

For fetching the promoted tweets themselves, you must build an index on your end that maps entities to tweet IDs and save off the data from either promoted_tweet endpoint or directly from REST API endpoints. You can also use tweet/preview endpoint to show sample of what tweets look like.

Thanks,

John


#3

@quicknewsofapps: Confirming this has been resolved. Please see this post. Thanks.


#4

Thanks!
I confirmed I could get previews.