I read the documentation and tried to get impressions, app_clicks and billed_charge_local_micro for the account 18ce54rptso.
I used following url to get data, but all of them doesn’t work. How can I use the url properly to get them?
https://ads-api.twitter.com/4/stats/accounts/18ce54rptso?entity=ACCOUNT&entity_ids=18ce54rptso&start_time=2018-10-23&end_time=2018-10-25&granularity=TOTAL&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT,BILLING
https://ads-api.twitter.com/4/stats/accounts/18ce54rptso?entity=CAMPAIGN&entity_ids=18ce54rptso&start_time=2018-10-23&end_time=2018-10-25&granularity=TOTAL&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT,BILLING
https://ads-api.twitter.com/4/stats/accounts/18ce54rptso?entity=CAMPAIGN&entity_ids=19494176,19494175,19494174,19494173,19494172,19494171&start_time=2018-10-18&end_time=2018-10-25&granularity=TOTAL&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT,BILLING
{
“data_type”: “stats”,
“time_series_length”: 1,
“data”: [
{
“id”: “18ce54rptso”,
“id_data”: [
{
“segment”: null,
“metrics”: {
“impressions”: [
7032615
],
“follows”: [
57
],
“retweets”: [
34
],
“unfollows”: [
33
],
“likes”: [
412
],
“engagements”: [
144892
],
“replies”: [
7
]
}
}
]
}
],
“request”: {
“params”: {
“start_time”: “2018-10-22T22:00:00Z”,
“segmentation_type”: null,
“entity_ids”: null,
“end_time”: “2018-10-24T22:00:00Z”,
“country”: null,
“placement”: “ALL_ON_TWITTER”,
“granularity”: “TOTAL”,
“entity”: “ACCOUNT”,
“platform”: null,
“metric_groups”: [
“ENGAGEMENT”,
“BILLING”
]
}
}
}
{
"data_type": "stats",
"time_series_length": 1,
"data": [],
"request": {
"params": {
"start_time": "2018-10-22T22:00:00Z",
"segmentation_type": null,
"entity_ids": [
"18ce54rptso"
],
"end_time": "2018-10-24T22:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "TOTAL",
"entity": "CAMPAIGN",
"platform": null,
"metric_groups": [
"ENGAGEMENT",
"BILLING"
]
}
}
}
{
“data_type”: “stats”,
“time_series_length”: 1,
“data”: ,
“request”: {
“params”: {
“start_time”: “2018-10-17T22:00:00Z”,
“segmentation_type”: null,
“entity_ids”: [
“19494176”,
“19494175”,
“19494174”,
“19494173”,
“19494172”,
“19494171”
],
“end_time”: “2018-10-24T22:00:00Z”,
“country”: null,
“placement”: “ALL_ON_TWITTER”,
“granularity”: “TOTAL”,
“entity”: “CAMPAIGN”,
“platform”: null,
“metric_groups”: [
“ENGAGEMENT”,
“BILLING”
]
}
}
}