[英]How do I get the current Avg. CPC bid for a keyword in Google AdWords API using R (preferably) or Python?
So I'm a bit stuck. 所以我有点卡住了。 I want to extract the Avg CPC and Max CPC bid for a list of keywords from the Adwords API using R .
我想使用R从Adwords API中提取关键字列表的平均CPC和最高CPC出价。 If it's hard python works as well :) .
如果很难,python也可以正常工作:)。
I've tried using RAdwords, but I couldn't find the correct report type in the list from adwords https://developers.google.com/adwords/api/docs/appendix/reports 我曾尝试使用RAdwords,但在adwords https://developers.google.com/adwords/api/docs/appendix/reports列表中找不到正确的报告类型
So does anyone have any experience with this. 因此,任何人对此都有任何经验。 For easy info I'm attaching a picture from the adwords interface where the measurements are easily visible.
为了方便起见,我将在adwords界面中附加一张图片,使您可以轻松看到测量结果。
With the RAdwords package you can query the Adwords/Google Ads API and download all the statistics of your keywords. 使用RAdwords软件包,您可以查询Adwords / Google Ads API并下载关键字的所有统计信息。 The corresponding report type is the
KEYWORDS_PERFORMANCE_REPORT
. 相应的报告类型为
KEYWORDS_PERFORMANCE_REPORT
。 Please note in the Adwords API documentation that criteria
relates to the keyword text within this report type. 请注意,在Adwords API文档中,
criteria
与该报告类型内的关键字文本有关。
# Authentication
library(RAdwords)
google_auth <- doAuth()
# Create the statement
body <- statement(select = c('Criteria', 'AverageCpc', 'CpcBid'),
report = "KEYWORDS_PERFORMANCE_REPORT",
start = "2018-01-01",
end = "2018-01-10")
# Query the Google Ads API
# Make sure to use the Adwords Account Id (MCC Id will not work)
data <- getData(clientCustomerId = 'xxx-xxx-xxxx',
google_auth = google_auth,
statement = body)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.