Google广告获得了基于日期和美国所有州的广告系列广告支出
我有很多竞选活动,我想总结所有州(美国)的支出,并基于日期和日期。
我浏览了 https://developers.google.com/google-com/google-com/google-com/google-com/google-google-google-com- ADS/API/DOC/REPORTING/概述,但我看不出可以根据状态确定支出的任何观点。
我需要在Google ADS API中使用哪个端点:在FB中,我正在使用 access_token&access_token& fields> fields& fields = spect& amp; amp; amp; amp; amp; amp; emp; emp; emp; emp; emp; emp; emp; emp; emp; emp; emp; %27%3A%272022-05-15%27%2C%27until%27%3A%272022-05-15%27%7D&limp; limit = 100& after = otkzd = otkzd
任何帮助都非常感谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过在
这将返回广告系列名称和状态与各自支出的每一个组合,而在其中的条款确保当点击发生时使用实际上是在该状态下的 -与某人感兴趣的人相反。
请注意,
segments.geo_target_state
将以ID返回,您可以找到参考数据在这里。此外,greatics.cost_micros
将以帐户的基本货币的百万分返回,即您需要将值乘以1'000'000。关于使用哪个端点:rest 不推荐Google < /a>(您应该宁愿通过客户端库使用GRPC),但是这里应该有效:
Reporting in the Ads API works by defining a query in GAQL that describes the data you want to obtain. For your use case, a possible query would look something like this:
This will return rows for every combination of campaign name and state with the respective spend, while the WHERE clause makes sure that the use actually was in that state when the click happened—as opposed to somebody being interested in it.
Note that
segments.geo_target_state
will be returned as an ID, you can find the reference data here. Additionally,metrics.cost_micros
will be returned in millionth of the base currency of the accounts, i.e. you'll need to multiply the value by 1'000'000.About which endpoint to use: REST isn't recommended by Google (you should rather be using gRPC via a client library), but this here should work: