@macy_poc: Here is an example stats request using the GET /1/stats/accounts/:account_id endpoint:
$ twurl -H ads-api.twitter.com "/1/stats/accounts/18ce53ur334?entity=ACCOUNT&entity_ids=18ce53ur334&start_time=2017-01-01&end_time=2017-01-02&granularity=TOTAL&metric_groups=ENGAGEMENT&placement=ALL_ON_TWITTER" | jq
{
"data_type": "stats",
"time_series_length": 1,
"data": [
{
"id": "18ce53ur334",
"id_data": [
{
"segment": null,
"metrics": {
"impressions": null,
"follows": null,
"retweets": null,
"likes": null,
"engagements": null,
"replies": null
}
}
]
}
],
"request": {
"params": {
"start_time": "2017-01-01T05:00:00Z",
"segmentation_type": null,
"entity_ids": null,
"end_time": "2017-01-02T05:00:00Z",
"country": null,
"placement": "ALL_ON_TWITTER",
"granularity": "TOTAL",
"entity": "ACCOUNT",
"platform": null,
"metric_groups": [
"ENGAGEMENT"
]
}
}
}
In this example, because you did not specify any campaign, line item, or promoted Tweet IDs, we are requesting data for the account (entity=ACCOUNT). We specify start and end time, the type of data we’d like to see (metric_groups=ENGAGEMENT), and the placement.
Hope this helps.