Not sure if I’m doing this correctly - here’s my use case:
- I want to update all metrics on promoted tweets on an ads account for a given day. If I use the active entities endpoint
/stats/accounts/{account}/active_entities?entity=PROMOTED_TWEET&start_time=2021-12-01&end_time=2021-12-02
- Returned are a list of promoted tweet ids.
{
“entity_id”: “72le05”,
“activity_start_time”: “2021-12-01T13:01:11Z”,
“activity_end_time”: “2021-12-02T04:15:00Z”,
“placements”: [
“ALL_ON_TWITTER”
]
},
- I make an async analytics call (note, i expanded the start/end time greater than the activity range):
/stats/accounts/{{accountid}?entity=PROMOTED_TWEET&entity_ids=7e2eoj&granularity=TOTAL&start_time=2021-11-30&end_time=2021-12-03&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT]
But all metrics returned are null. Is this expected? I assumed any activity in that time frame would have some metrics show up. Or a I looking at this the wrong way?
“data”: [
{
“id”: “7e2eoj”,
“id_data”: [
{
“segment”: null,
“metrics”: {
“impressions”: null,
“tweets_send”: null,
“qualified_impressions”: null,
“follows”: null,
“app_clicks”: null,
“retweets”: null,
“unfollows”: null,
“likes”: null,
“engagements”: null,
“clicks”: null,
“card_engagements”: null,
“poll_card_vote”: null,
“replies”: null,
“url_clicks”: null,
“carousel_swipes”: null
}
}
]
}
],
Any help would be greatly appreciated!
Thanks!
It looks like the Ads Manager also shows no activity for that timeframe so the active entities must have incorrectly flagged that time window. I’ll follow up with the engineering team to investigate.
Thanks, looking forward to hearing the results.
Just to be clear, if the active entities returns something, that activity timeframe range would result in some non null metrics. Is that correct?
Thanks again!
Correct. It’s unclear why this was identified. I’ve asked the engineering team to investigate and avoid returning these entities in the future.
The engineering team has not had a chance to investigate. Could you describe how often you find this happening and what the impact is for you users?
its or one particular user, and causing concern for discrepancies on their data and doubts it might be affecting others.
Any updates on this issue? It’s still affecting the user in question.
The active entities API can over identify entities and surface some that have not changed. This is expected behavior and something we are looking to reduce over time. However, the data returned via the API and what is reported in the Ads Manager will be the same. The advertiser should not see any discrepancies. If you feel the active entities endpoint isn’t correctly flagging entities or times, please provide the API requests that show the stats and missing timeframes.