Stats missing for some campaigns


#1

Hi,

We’re pulling stats via API for all our campaigns. From 185 campaigns we’re not able to pull stats for two campaigns. They are paused but we have some other campaigns that are paused and we can pull stats for them.
Our account id is 8q93n, campaign ids that we can’t pull stats: 90fqy and 90fvk for example date range 2017-07-25 till 2017-07-27. Twitter Ad manager show some costs for date range.
Can someone please check these campaigns.

Thanks,
Sinisa.


#2

Hey @sinisa_grgic

Can you provide the full request and response bodies for the call?

Thanks!


#3

Sure, here is example, campaign 90fqy (name 1692 EN_US_AND_LAL_TAP) has some spend in UI:

and API returns empty data fields:
$ twurl -H ads-api.twitter.com “/2/stats/accounts/8q93n?entity=CAMPAIGN&entity_ids=90fqy&metric_groups=ENGAGEMENT&start_time=2017-07-25&end_time=2017-07-27&placement=ALL_ON_TWITTER&granularity=TOTAL”

{
  "data_type": "stats",
  "time_series_length": 1,
  "data": [
    {
      "id": "90fqy",
      "id_data": [
        {
          "segment": null,
          "metrics": {
            "impressions": null,
            "tweets_send": null,
            "qualified_impressions": null,
            "follows": null,
            "app_clicks": null,
            "retweets": null,
            "likes": null,
            "engagements": null,
            "clicks": null,
            "card_engagements": null,
            "poll_card_vote": null,
            "replies": null,
            "url_clicks": null,
            "carousel_swipes": null
          }
        }
      ]
    }
  ],
  "request": {
    "params": {
      "start_time": "2017-07-25T07:00:00Z",
      "segmentation_type": null,
      "entity_ids": [
        "90fqy"
      ],
      "end_time": "2017-07-27T07:00:00Z",
      "country": null,
      "placement": "ALL_ON_TWITTER",
      "granularity": "TOTAL",
      "entity": "CAMPAIGN",
      "platform": null,
      "metric_groups": [
        "ENGAGEMENT"
      ]
    }
  }
}

Thanks!


#4

Hi @imit8me,

Any news on this topic? We need to figure out why we have these differences.

Thanks!


#5

Hi @sinisa_grgic - since these impressions served on our Twitter Audience Platform, you need to set placement=PUBLISHER_NETWORK. In addition as described in another post, the end_time will need be set at ‘2017-07-28’ if you want to see data for 7/27.

$ twurl -A "X-As-User: Lumosity" -H ads-api.twitter.com "/2/stats/accounts/8q93n?entity=CAMPAIGN&entity_ids=90fqy&metric_groups=ENGAGEMENT&start_time=2017-07-25&end_time=2017-07-28&placement=PUBLISHER_NETWORK&granularity=TOTAL" | jq
{
  "data_type": "stats",
  "time_series_length": 1,
  "data": [
    {
      "id": "90fqy",
      "id_data": [
        {
          "segment": null,
          "metrics": {
            "impressions": [
              43197
            ],
            "tweets_send": null,
            "qualified_impressions": null,
            "follows": null,
            "app_clicks": [
              932
            ],
            "retweets": null,
            "likes": null,
            "engagements": [
              932
            ],
            "clicks": [
              932
            ],
            "card_engagements": null,
            "poll_card_vote": null,
            "replies": null,
            "url_clicks": [
              932
            ],
            "carousel_swipes": null
          }
        }
      ]
    }
  ],
  "request": {
    "params": {
      "start_time": "2017-07-25T07:00:00Z",
      "segmentation_type": null,
      "entity_ids": [
        "90fqy"
      ],
      "end_time": "2017-07-28T07:00:00Z",
      "country": null,
      "placement": "PUBLISHER_NETWORK",
      "granularity": "TOTAL",
      "entity": "CAMPAIGN",
      "platform": null,
      "metric_groups": [
        "ENGAGEMENT"
      ]
    }
  }
}

Thanks!


#6

Great, thanks for handling this!