Can't receive engagement end demographic data


#1

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”
]
}
}
}}


#2

Dear @twitterhelp please help us :slight_smile:


#3

Hey @MIKZ_Reg

Thank you for your question! Let’s go through these one by one:

This may be due to the start_time and end_time for the API request not being set correctly, (for example, these values may be outside the date range the campaign was actually active). Please provide the full API request and response bodies if you’re still experiencing this issue.

In order to fetch data segmented by age via the API, you’ll need to have the VALIDATED_AGE_TARGETING account feature whitelisted. Your account or partner manager can assist you with that request.

Thanks!