Hello we need to get Billing(cost/spend) and Engagement(clicks, impressions etc. ) stats at the creative level. Currently we understand how to accomplish this at the campaign level but we require further granularity for our cost reporting purposes.
We referred to this link, https://developer.twitter.com/en/docs/ads/analytics/api-reference/synchronous.html
and currently understand that the possible values for an entity are : ACCOUNT, CAMPAIGN, FUNDING_INSTRUMENT, LINE_ITEM, ORGANIC_TWEET, PROMOTED_TWEET
We understand Line_Item to be analogous to AdGroup, so Ad should be analogous to Organic_Tweet or Promoted_Tweet?
We’re using the following end points:
stats/accounts/:account_id/campaigns
stats/accounts/:account_id/campaigns/:id .
But we need to go two levels deeper to Campaign > Adgroup > Ad
We referred to these posts:
- How to get Imp,click,mobie_app_conversion by CAMPAIGN and Creatives
- API to access analytics data (engagements, impressions, clicks, retweets likes etc)
- Ads API - Which Campaign REST endpoint to use to get Clicks, Impressions, Cost,
But they do not directly answer our question.
Our desired output is a response containing the following columns:
- Date
- Ad Account Name
- Ad Account ID
- Campaign Name
- Campaign ID
- Ad Group Name
- Ad Group ID
- Creative Name
- Creative ID
- Cost
- Clicks
- Impressions
Let us know if we can give you more details, thanks!