Analytics V1 REST API - BILLING


#1

Bugs?

  1. Bad documentation? https://dev.twitter.com/ads/basics/enums
    a. (metric_group) LIFETIME_VALUE_MOBILE_CONVERSION -> LIFE_TIME_VALUE_MOBILE_CONVERSION
    b. (placement) TWITTER_PUBLISHER_NETWORK -> PUBLISHER_NETWORK

  2. V1 analytics api does not properly return the BILLING information:
    a. Not getting any billing information when querying at Account/Total. However, metric does match up properly with dashboard.
    {
    “data_type”: “stats”,
    “time_series_length”: 1,
    “data”: [
    {
    “id”: “18ce54a5b39”,
    “id_data”: [
    {
    “segment”: null,
    “metrics”: {
    “impressions”: [
    257058
    ],
    “follows”: [
    1
    ],
    “retweets”: [
    2
    ],
    “likes”: [
    34
    ],
    “engagements”: [
    991
    ],
    “replies”: null
    }
    }
    ]
    }
    ],
    “request”: {
    “params”: {
    “start_time”: “2016-04-01T07:00:00Z”,
    “segmentation_type”: null,
    “entity_ids”: null,
    “end_time”: “2016-04-02T07:00:00Z”,
    “country”: null,
    “placement”: “ALL_ON_TWITTER”,
    “granularity”: “DAY”,
    “entity”: “ACCOUNT”,
    “platform”: null,
    “metric_groups”: [
    “ENGAGEMENT”,
    “WEB_CONVERSION”,
    “MOBILE_CONVERSION”,
    “MEDIA”,
    “VIDEO”,
    “LIFE_TIME_VALUE_MOBILE_CONVERSION”,
    “BILLING”
    ]
    }
    }
    }
    b. When fetch billing info at campaign level, the aggregated sum still doesn’t match that of the dashboard

Is this bugs on V1 REST API?

Any help is appreciated!


#2

(moving to the Advertiser API category)


#3

Hi @ZenMarketingHQ,

First of all, In my opinion, you should consider if you’re asking that question in a good way.

After this:

1 - I think you’re right, in my experience I’ve discovered the correct placement is PUBLISHER_NETWORK (well, twitter ads api error told me), I think is the same with the LIFE_TIME_VALUE:MOBILE_CONVERSION if error response says that to you.

2 -
a - If you go here https://dev.twitter.com/ads/analytics/metrics-and-segmentation-in-analytics you can see that you CAN’T retrieve billing information metric for an entity account, you must read the documentation carefully
b - Regarding with the campaign level, as you can see here https://dev.twitter.com/ads/analytics/best-practices

Analytics Metrics In a Nutshell

  • All analytics metrics are locked and will not change after 24 hours, with the exception of billed_charge_local_micro.
  • The billed_charge_local_micro metric is an estimate for up to 3 days after the data is returned.
  • After 24 hours, this metric can decrease due to credits for overspend (ads served after the given end_time) and for billable events that are determined to be junk. This metric changes minimally after 24 hours.
  • Please see Analytics for more information.

Hopefully this will help you.

Regards.