简体   繁体   English

如何获得当前平均 CPC使用R(最好是R)或Python出价对Google AdWords API中的关键字出价吗?

[英]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.

相关问题 google adwords python api-如何获取广告组出价 - google adwords python api - how to get ad group bid 如何让Google AdWords API Python客户端库运行? - How do I get the Google AdWords API Python Client Library to work? 如何使用 Google Adwords API 从campaing 中获取否定关键字列表 - How to get negative keyword list from a campaing using Google Adwords API 如何使用对话流 python api 在 shell(最好是 repl.it)中制作文本机器人? - How do I make a text bot in a shell (preferably repl.it) using the dialogflow python api? 如何通过python adwords API获取adwords转换以及gclids? - How to get adwords conversions along with gclids via python adwords API? 如何使用 python 在谷歌浏览器中获取当前活动标签 - How do I get the current active tab in google chrome, using python 如何使用 python(最好是 BS4)从 Google Images(或 bing)中找到图像的 url? - How can I find the url of an image from Google Images (or bing) using python (and preferably BS4)? 如何在Adwords API中获得biddingStrategyConfiguration? - How to get biddingStrategyConfiguration in Adwords API? 如何使用 Python 脚本访问 Google Playstore API 以获取对我们应用程序的评论? - How do I access Google Playstore API to get reviews of our app using Python script? 如何自动对 basecamp 3 api 进行身份验证(最好在 python 中)? - How can I automate authentication to basecamp 3 api (preferably in python)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM