Hello,
I am using below endpoint to get the promoted tweet information.
https://ads-api.twitter.com/10/accounts/:account_id/promoted_tweets&counts=200
using this endpoint to get the promoted tweets of an account. The account which I am using belongs to an organization and has many promoted tweets. When I hit this
endpoint I do get only few records and don’t see any promoted tweet from year 2021, even though we have so many in this year. Please see the response below
{
"request": {
"params": {
"promoted_tweet_id": "1efwlo",
"account_id": "18ce54d4x5t"
}
},
"data": {
"line_item_id": "96uzp",
"id": "1efwlo",
"entity_status": "ACTIVE",
"created_at": "2020-06-29T05:06:57Z",
"updated_at": "2020-06-29T05:08:46Z",
"approval_status": "ACCEPTED",
"tweet_id": "880290790664060928",
"deleted": false
}
}
Now based on the line_item_id from above response I hit the below endpoint. The below endpoint is giving null for all metrics, when it should give value for metrics, impressions, engagements, retweets, replies, likes, user profile clicks etc as I have the data for those metrics for those mentioned dates.
https://ads-api.twitter.com/10/stats/accounts/18ce54d4x5t?entity=LINE_ITEM&entity_ids=96uzp&start_time=2021-03-12T00:00:00Z&end_time=2021-03-16T00:00:00Z&granularity=TOTAL&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT,MEDIA
{
“data_type”: “stats”,
“time_series_length”: 1,
“data”: [
{
“id”: “96uzp”,
“id_data”: [
{
“segment”: null,
“metrics”: {
“impressions”: [
null
],
“tweets_send”: null,
“qualified_impressions”: null,
“follows”: null,
“app_clicks”: null,
“retweets”: null,
“likes”: [
null
],
“engagements”: [
null
],
“clicks”: [
null
],
“card_engagements”: null,
“poll_card_vote”: null,
“replies”: null,
“carousel_swipes”: null
}
}
]
}
],
“request”: {
“params”: {
“start_time”: “2017-05-19T07:00:00Z”,
“segmentation_type”: null,
“entity_ids”: [
“96uzp”
],
“end_time”: “2017-05-26T07:00:00Z”,
“country”: null,
“placement”: “ALL_ON_TWITTER”,
“granularity”: “TOTAL”,
“entity”: “LINE_ITEM”,
“platform”: null,
“metric_groups”: [
“ENGAGEMENT”,
“MEDIA”
]
}
}
}
Can you please help me to understand what I am missing in both cases
Summary
This text will be hidden
. Any help is much appreciated.
Thanks,
Sachin