如何从google analytics api获取广告的唯一ID

时间:2021-11-20 16:49:07

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

我是Google AnalyticsAPI的新手,有任何方法可以从这个api中提取AdId表单,Google adwords api提供了每个广告的唯一ID。

I have been able to extract ga:adwordsCampaignID and ga:adwordsAdGroupID from Google Analytics API. I am having trouble finding an option for Ad Id

我已经能够从Google AnalyticsAPI中提取ga:adwordsCampaignID和ga:adwordsAdGroupID。我无法找到广告ID的选项

2 个解决方案

#1


At this time the Ad id is not available though the Google analytics API. Currently only the following are available to you to extract though the Google Analytics api:

目前,通过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

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

New dimensions and metrics are being added from time to time. You may want to check this page and see if it is added in the future. Adwords - Dimensions & Metrics Reference

新的维度和指标正在不时添加。您可能想要查看此页面,看看它是否会在将来添加。 Adwords - 维度和指标参考

#2


In Google Analytics the dimension ga:adwordsCreativeID (API Reference) is equivalent to AdWords API Ad.id and is likely to match your requirements

在Google Analytics中,维度ga:adwordsCreativeID(API参考)等同于AdWords API Ad.id,可能符合您的要求

#1


At this time the Ad id is not available though the Google analytics API. Currently only the following are available to you to extract though the Google Analytics api:

目前,通过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

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

New dimensions and metrics are being added from time to time. You may want to check this page and see if it is added in the future. Adwords - Dimensions & Metrics Reference

新的维度和指标正在不时添加。您可能想要查看此页面,看看它是否会在将来添加。 Adwords - 维度和指标参考

#2


In Google Analytics the dimension ga:adwordsCreativeID (API Reference) is equivalent to AdWords API Ad.id and is likely to match your requirements

在Google Analytics中,维度ga:adwordsCreativeID(API参考)等同于AdWords API Ad.id,可能符合您的要求