Data Discrepancy


#1

I can see stats at ads.twitter.com but using below api not getting any data and for few campaigns are completely missing.

https://ads-api.twitter.com/2/stats/jobs/accounts/9z3j2?entity=CAMPAIGN&entity_ids=73pce&start_time=2017-11-14&end_time=2017-11-16&granularity=DAY&metric_groups=ENGAGEMENT,BILLING,WEB_CONVERSION&placement=ALL_ON_TWITTER&segmentation_type=PLATFORMS

https://ads-api.twitter.com/2/stats/jobs/accounts/9z3j2?entity=CAMPAIGN&entity_ids=73pce&start_time=2017-11-14&end_time=2017-11-16&granularity=DAY&metric_groups=ENGAGEMENT,BILLING,WEB_CONVERSION&placement=ALL_ON_TWITTER&segmentation_type=AGE

Response for Request 1:

{  
  "data_type": "stats",
  "time_series_length": 2,
  "data": [  
    {  
      "id": "73pce",
      "id_data": [  

      ]
    }
  ],
  "request": {  
    "params": {  
      "start_time": "2017-11-14T07:00:00Z",
      "segmentation_type": "PLATFORMS",
      "entity_ids": [  
        "73pce"
      ],
      "end_time": "2017-11-16T07:00:00Z",
      "country": null,
      "placement": "ALL_ON_TWITTER",
      "granularity": "DAY",
      "entity": "CAMPAIGN",
      "platform": null,
      "metric_groups": [  
        "ENGAGEMENT",
        "BILLING",
        "WEB_CONVERSION"
      ]
    }
  }
}

Response for Request 2:

{
  "data_type": "stats",
  "time_series_length": 2,
  "data": [
    {
      "id": "73pce",
      "id_data": []
    }
  ],
  "request": {
    "params": {
      "start_time": "2017-11-14T07:00:00Z",
      "segmentation_type": "AGE",
      "entity_ids": [
        "73pce"
      ],
      "end_time": "2017-11-16T07:00:00Z",
      "country": null,
      "placement": "ALL_ON_TWITTER",
      "granularity": "DAY",
      "entity": "CAMPAIGN",
      "platform": null,
      "metric_groups": [
        "ENGAGEMENT",
        "BILLING",
        "WEB_CONVERSION"
      ]
    }
  }
}

#2

Thanks for the question, @Ancestry.

To start, are you sure you’re requesting data for the correct campaign? The campaign you reference in the Ads API requests—73pce (base-10: 11930126)—has a name that starts with, “75664 - Twitter - US.” This campaign was last updated at the end of July and has been paused since then. This means it could not have seen impressions and spend. However, another campaign—94fz5 (base-10: 15323873)—whose name also starts with, 75664 - Twitter - US," is currently active. This is the campaign shown on ads.twitter.com.

In addition to this, please check the line items associated with the campaign to determine whether you need to request both ALL_ON_TWITTER and PUBLISHER_NETWORK data.

Hope this helps!