Hi There.

We’re facing a problem with getting metrics data in the ads API (like ENGAGEMENT metric group), for organic tweets that are not included in the last 3200 tweets of user_timeline.

As user_timeline API says, the limit is hard for the last 3200 tweets, retweets etc:

Due to the entity_ids key in the Ads API, we have to send the population we want to get data for.

However, when our tweet is not included in the last 3200 tweets in the user_timeline, we can’t get any new data for it, even if there is new data about it in the last days. That’s unless we save the entire tweet id history, something that can be problematic for our clients.

Is there any way to get the Ads data about tweets that are not included in the user_timeline response?

Thank you

@Alonreznik

You can get the data (tweet_id) through GET accounts/:account_id/promoted_tweets endpoint by specifying its parent line_item_ids.

twurl -H 'ads-api.twitter.com' '/5/accounts/:account_id/promoted_tweets?line_item_ids=${ids}' | jq

Hi @jrsyo.
Thank you for your reply.
We’re trying to bring all of the organic tweets and not only the promoted, so promoted_tweets endpoint doesn’t make the complete organic tweets list in this case.

Thanks

@Alonreznik
It does return organic tweets as long as they are associated with one of your campaigns.

@jrsyo
We’re asking data about organic tweets that are not necessarily associated with campaigns. Just want to get some metrics about video views, or engagement.

Alon

@Alonreznik

I’m a bit confused then. A tweet ID is basically what you can see in the tweet URL link.
e.g., https://twitter.com/Alonreznik/status/1109383634560139264 => Tweet ID is 1109383634560139264

Why do you need to hit the statuses/user_timeline endpoint? Unless you want to retrieve metrics for every single tweet, how do you find the tweet ID you want to analytics and how is it determined/based on what? For instance, if your client says “hey, can we get analytics data for this tweet? (has a tweet link)” then you already know the tweet ID.

Also, if you really want to get the old tweet data over the last 3200 tweets then you can download your archive data. This archive has tweet ids (link) of all your past tweets.

@jrsyo
We’re trying to bring raw data about tweets (promoted or not, in our accounts), and then make some data analytics process over the tweets and the metrics from Ads API. That means, we want to get the data from the accounts or users we manage , check some tweets analysis in the raw data and also check some engagement or video metrics about that.
In order of that, we’re fetching the history of the account usign user_timeline endpoint, add them to the promoted tweets and then ask about all of these lists the anayltics reports we need. Moreover, in order to get the analytics data from all of our tweets, we need the tweet IDs. The way to get the tweet IDs is using the user_timeline endpoint.

Actually, we want to get this kind of data for all of our tweets:

However, because of 3200 tweets limit in the user_timeline endpoint, we can’t get any data about historical tweets we want to fetch. There are some tweets from Aug 2018, for example, that we don’t get data from, even though it has new engagement data in the last months (for example).

Hope it is more clear,

Alon

Hi @Alonreznik, as you are finding out, the Ads API is primarily focused on promoted Tweets and related workflows.

You are also running up against the limits of what the Standard API (user_timeline) can provide for free and getting into Premium/Enterprise level data needs. The following API products are probably what you need, but these are out of scope of the team who owns this section of the forum.

To access historical organic Tweets:

To access organic engagement metrics:

2 Likes