How to get the unique id of an ad from google analytics api

时间:2015-05-08 10:04:59

标签: php google-analytics-api google-adwords

I am newcomer to the Google Analytics API, there is any way to extract the AdId form this api, Google adwords api provides a deviceready of each Ad.

I have been able to extract online and unique id from Google Analytics API. I am having trouble finding an option for Ad Id

2 个答案:

答案 0 :(得分:2)

在Google Analytics中,维度ga:adwordsCreativeID (API Reference)相当于AdWords API Ad.id,可能符合您的要求

答案 1 :(得分:1)

目前,Google Analytics(分析)API无法使用广告ID。目前,只有以下内容可供您通过Google Analytics API提取:

  

ga:adGroup ga:adSlot ga:adSlotPosition ga:adDistributionNetwork   ga:adMatchType ga:adKeywordMatchType ga:adMatchedQuery   ga:adPlacementDomain ga:adPlacementUrl ga:adFormat ga:adTargetingType   ga:adTargetingOption ga:adDisplayUrl ga:adDestinationUrl   ga:adwordsCustomerID ga:adwordsCampaignID ga:adwordsAdGroupID   ga:adwordsCreativeID ga:adwordsCriteriaID ga:adQueryWordCount   GA:isTrueViewVideoAd

不时添加新维度和指标。您可能想要查看此页面,看看它是否会在将来添加。 Adwords - Dimensions & Metrics Reference