https://ads-api-sandbox.twitter.com/2/accounts/gq192d/promoted_tweets
{
"request": {
"params": {
"account_id": "gq192d"
}
},
"next_cursor": null,
"data": []
}
https://ads-api-sandbox.twitter.com/2/accounts/gq192d/promoted_tweets?with_total_count=true
{
"request": {
"params": {
"account_id": "gq192d",
"with_total_count": true
}
},
"next_cursor": null,
"data": [],
"total_count": 299
}
https://ads-api-sandbox.twitter.com/2/accounts/gq192d/promoted_tweets?line_item_ids=weqe,qwes,dasw&count=5
{
"request": {
"params": {
"count": 5,
"account_id": "gq192d",
"line_item_ids": [
"weqe",
"qwes",
"dasw"
]
}
},
"next_cursor": "8yb8au29s",
"data": [
{
"line_item_id": "weqe",
"id": "qweq",
"entity_status": "ACTIVE",
"created_at": "2017-11-10T12:45:07Z",
"updated_at": "2017-11-10T12:45:07Z",
"approval_status": "ACCEPTED",
"tweet_id": "802116927275422222",
"deleted": false
},
{
"line_item_id": "qwes",
"id": "edad",
"entity_status": "ACTIVE",
"created_at": "2017-12-06T06:13:52Z",
"updated_at": "2017-12-06T06:13:52Z",
"approval_status": "ACCEPTED",
"tweet_id": "938284050380232222",
"deleted": false
},
{
"line_item_id": "qwes",
"id": "wesa",
"entity_status": "ACTIVE",
"created_at": "2017-12-06T06:15:11Z",
"updated_at": "2017-12-06T06:15:11Z",
"approval_status": "ACCEPTED",
"tweet_id": "938290662222222720",
"deleted": false
},
{
"line_item_id": "qwes",
"id": "wdsa",
"entity_status": "ACTIVE",
"created_at": "2017-12-06T06:15:38Z",
"updated_at": "2017-12-06T06:15:38Z",
"approval_status": "ACCEPTED",
"tweet_id": "938290222565894656",
"deleted": false
},
{
"line_item_id": "qwes",
"id": "ucas",
"entity_status": "ACTIVE",
"created_at": "2017-12-06T06:15:57Z",
"updated_at": "2017-12-06T06:15:57Z",
"approval_status": "ACCEPTED",
"tweet_id": "938290849222455552",
"deleted": false
}
]
}
When i give total count i can see that there is more than 200 data , but i am unable to fetch those when i give a request without line item ids.
The request without line item ids is supposed to fetch all data without any filter as per the api.
But this is not happening.
With line item id it is fetching all data with the filter (i have added count to restrict the response to 5.)