Twitter Ads Analytics API - Metrics

ads
analytics
engagement-api

#1

Hi All,

Requirement:

Generate Report for a particular Campaign with the Column name

Time Period, Card Name, Placement, Tweet Text , Campaign, Ad Group ID, Tweet status, Campaign Name, Ad Group name, Tweet ID, Impressions, Clicks, Link clicks, Likes, Retweets, Replies, Follows, Video views, Video view rate, Spend

The Report should be day wise breakdown structure.

Tried:

Used ADS Analytics API to fetch the report. Followed with the metric group Engagement and Billing ( https://ads-api.twitter.com/4/stats/accounts/:accountID?entity=CAMPAIGN&entity_ids=:campaignIDS&start_time=2018-11-05&end_time=2018-11-07&granularity=DAY&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT,BILLING).

Working fine, but a lot of columns

like card name, tweet name, etc.

not available.

What Else Tried:

  1. Get the line items from an account ID (https://ads-api.twitter.com/4/accounts/:accountID/line_items)
    -> Get the tweet Id using PROMOTED_TWEETS API (https://ads-api.twitter.com/4/accounts/:accountID/promoted_tweets?line_item_ids=:line_Item_Ids)
    -> Get the card_uri ( https://api.twitter.com/1.1/statuses/show/:tweet_Id.json?include_entities=true&include_card_uri=true)
    -> Get the Card Name (https://ads-api.twitter.com/4/accounts/:accountID/cards?card_uri=:card_uri)

Problem:

  1. Get the card name from card_uri not working. Issue “UNAUTHORIZED_ACCESS”
  2. Even though I can able to fetch the tweet name and card name and another column, How to divide the impressions, engagements, retweets, etc as per the card name and tweet name?

Please provide your helping hands. Let me know if any more info required.

Thanks,


#2

Please provide the actual account ID and all other IDs you’re requesting for. Without it we cannot tell what the access issue might be.


#3

Hi Juan,

Thanks for this reply.