menfee4
#1
The Analytics and Active Entities endpoints can be used to identify Promoted Tweets (or Line Items) that have served within a specific time period. Tweets are associated with a Line Item using the Promoted Tweets.
Your application could obtain a list of Promoted Tweet IDs from the Active Entities endpoint and to look up the Tweets that are promoted using GET accounts/:account_id/promoted_tweets/:promoted_tweet_id.
Creatives are part of Tweets and the card_uri should show up when querying Tweets using the GET accounts/:account_id/tweets and passing in the list of tweets using tweet_ids .
Lastly, the GET accounts/:account_id/cards/all will get the list of Cards when passing in thecard_uris obtained from the previous request.
I read this reply,It doesn’t seem to be the result I want.
For example, how do I know the correspondence between 2 (Tweet ID) and 3 (Card ID)
step 1: get tweet_id from Promoted Tweets.
step 2: Pass in tweet_id to get tweets
However, I didn’t find any information about Cards(such as card_id or card_uri)
Cards API didn’t find any information about Tweets(such as tweet_id) either
Tweetst(tweet_id) can find Cards(card_id),or Cards(card_id) can find Tweets(tweet_id),How to do it?
The documentation may not use examples that have cards so may not contain all the fields that the API will return. Could you provide the API requests to either the Promoted Tweets or Tweets endpoints with entity IDs for this account to help investigate.
Hi @osowskit1,
We also had a doubt regarding the same. But we are more focused on how to get cards related to only that particular tweet.
For example, for tweet with tweet id = 1288974115106299904, we get back a response where the card_uri field looks something like "card_uri": "https://t.co/randomtext", whereas the documentation here states that we should get something like this "card_uri": "card://1043282691834048513" which we can then use to fetch the cards from this endpoint
Is there any way to get cards for only a particular set of tweets?
It is possible that this Tweet was created before the introduction of the card:// format for card_uris. Can you open a new topic with the details of the Tweet and card_uri to help investigate this issue?