Thanks for providing these details, @theusamaashraf.
You’re right that the Tweet was associated with the campaign’s line item on the 20th—at 2017-11-20T11:22:54Z:
$ twurl -H ads-api.twitter.com "/2/accounts/18ce545ghtr/promoted_tweets?line_item_ids=afcux"
{
"request": {
"params": {
"account_id": "18ce545ghtr",
"line_item_ids": [
"afcux"
]
}
},
"next_cursor": null,
"data": [
{
"line_item_id": "afcux",
"id": "1l6dmf",
"entity_status": "ACTIVE",
"created_at": "2017-11-20T11:22:54Z",
"updated_at": "2017-11-20T11:22:54Z",
"approval_status": "ACCEPTED",
"tweet_id": {tweet_id},
"deleted": false
}
]
}
Looking at the data at HOUR granularity will help us see what’s going on. Here is the request for just the 20th and 21st (I’m only showing the impressions data to reduce the size of the response):
$ twurl -H ads-api.twitter.com "/2/stats/accounts/18ce545ghtr?entity=CAMPAIGN&entity_ids=9vua2&start_time=2017-11-20&end_time=2017-11-22&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER&granularity=HOUR"
{
"data_type": "stats",
"time_series_length": 48,
"data": [
{
"id": "9vua2",
"id_data": [
{
"segment": null,
"metrics": {
"impressions": [
0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,5450,0,0,0,0,0,0,0,0,
0,0,16,345,793,350,456,495,2519,2058,44,11,0,0,0, 0,0,0,0,0,0,0,0,0
],
"tweets_send": null,
"qualified_impressions": null,
"follows": null,
"app_clicks": [...],
"retweets": [...],
"likes": [...],
"engagements": [...],
"clicks": [...],
"card_engagements": [...],
"poll_card_vote": null,
"replies": null,
"url_clicks": null,
"carousel_swipes": null
}
}
]
}
],
"request": {
"params": {
"start_time": "2017-11-19T20:00:00Z",
"segmentation_type": null,
"entity_ids": [
"9vua2"
],
"end_time": "2017-11-21T20:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "HOUR",
"entity": "CAMPAIGN",
"platform": null,
"metric_groups": [
"ENGAGEMENT"
]
}
}
}
We don’t start seeing impressions for this campaign until the 16th element in the impressions array, which corresponds the hour between T11:00:00Z and T12:00:00Z. This is after the Tweet was associated with the line item.
Please let us know if this helps clarify. Thanks!
You can confirm that the specified line item ID is correct by checking:
# requesting the line items under campaign 9vua2
$ twurl -H ads-api.twitter.com "/2/accounts/18ce545ghtr/line_items?campaign_ids=9vua2"