Thanks for those details, out of curiosity, what was the date range used when checking the Ads UI? The reason for this being that dates on the UI are inclusive versus dates on the API are exclusive. Additionally, on the API you would need to call the analytics endpoints twice, for each PLACEMENT type.
For example:
iPads only TAP + MAP CPI
Spent 0 / 107.46
Impressions 0 / 175,795
Using the placement=PUBLISHER_NETWORK I was able to retrieve the same results as displayed:
twurl_ads -X GET "/4/stats/accounts/18ce54r11jf?entity=LINE_ITEM&entity_ids=c93md&start_time=2018-09-04&end_time=2018-09-05&granularity=DAY&placement=PUBLISHER_NETWORK&metric_groups=ENGAGEMENT"
{
"data_type": "stats",
"time_series_length": 1,
"data": [
{
"id": "c93md",
"id_data": [
{
"segment": null,
"metrics": {
"impressions": [
175795
],
"tweets_send": null,
"qualified_impressions": null,
"follows": null,
"app_clicks": [
923
],
"retweets": null,
"unfollows": null,
"likes": null,
"engagements": [
923
],
"clicks": [
923
],
"card_engagements": null,
"poll_card_vote": null,
"replies": null,
"url_clicks": [
923
],
"carousel_swipes": null
}
}
]
}
],
"request": {
"params": {
"start_time": "2018-09-03T21:00:00Z",
"segmentation_type": null,
"entity_ids": [
"c93md"
],
"end_time": "2018-09-04T21:00:00Z",
"country": null,
"placement": "PUBLISHER_NETWORK",
"granularity": "DAY",
"entity": "LINE_ITEM",
"platform": null,
"metric_groups": [
"ENGAGEMENT"
]
}
}
}
Thanks!