Hello,
i am trying to get engagement data from ads api.
I send request
stats/jobs/accounts/{accountId}?entity=ACCOUNT&start_time={fromStr}&end_time={toStr}&granularity=TOTAL&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER
and according to async request flow I receive response:
{
"data_type": "stats",
"time_series_length": 1,
"data": [
{
"id": "18ce54j7o8n",
"id_data": [
{
"segment": null,
"metrics": {
"impressions": null,
"follows": null,
"retweets": null,
"likes": null,
"engagements": null,
"replies": null
}
}
]
}
],
"request": {
"params": {
"start_time": "2017-06-18T12:00:00Z",
"segmentation_type": null,
"entity_ids": null,
"end_time": "2017-07-16T12:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "TOTAL",
"entity": "ACCOUNT",
"platform": null,
"metric_groups": [
"ENGAGEMENT"
]
}
}
}
Why fields is null?
Also i am trying to get demographic data with request
stats/jobs/accounts/{accountId}?entity=ACCOUNT&segmentation_type=AGE&start_time={fromStr}&end_time={toStr}&granularity=TOTAL&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER
but i receive error "Segmentation by AGE is not allowed on this account”.
stats/jobs/accounts/{accountId}?entity=ACCOUNT&segmentation_type=GENDER&start_time={fromStr}&end_time={toStr}&granularity=TOTAL&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER
Gender request work without error, but response is empty
{
"data_type": "stats",
"time_series_length": 1,
"data": [
{
"id": "18ce54j7o8n",
"id_data": []
}
],
"request": {
"params": {
"start_time": "2017-06-18T12:00:00Z",
"segmentation_type": "GENDER",
"entity_ids": null,
"end_time": "2017-07-16T12:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "TOTAL",
"entity": "ACCOUNT",
"platform": null,
"metric_groups": [
"ENGAGEMENT"
]
}
}
}