Google ADS API-如何获取通过Google ADS API(节点JS)创建的所有广告系列
我正在尝试找到通过特定经理帐户或通过Google ADS API创建的Google Ads广告系列的总成本。
我尝试了更改事件查询,它为我提供了通过Google Ads创建的所有广告系列,但问题与 thats_event.change_date_time
一起。它需要此过滤器,否则会引发错误。由于使用此过滤器,我只会收到在此特定时间段内创建的广告系列,但是我需要所有广告系列。
SELECT
change_event.campaign
FROM change_event
WHERE
campaign.status != 'REMOVED'
AND change_event.change_date_time >= '${from_date}'
AND change_event.change_date_time <= '${to_date}'
AND change_event.client_type = 'GOOGLE_ADS_API'
ORDER BY change_event.change_date_time ASC
LIMIT 10000
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,
change_event
只能检索最多30天大的数据(请参阅此处)。我已经尝试构建一个可以获取该信息的查询,但是从广告系列中使用
,但是似乎只有
change_event
才能访问创建广告系列的方式。一个可能的解决方案是从帐户创建日期开始,以30天的周期从/到日期创建多个。
否则,您可以使用
更改状态
a>在稍大的90天窗口中,限制您无法通过thats_event.client_type ='google_ads_api' theck> change> thats_status.resource.resource_status ='添加'而不是。
Unfortunately,
change_event
can only go retrieve data up to 30 days old (see here).I've tried building a query that could get that information but using
FROM campaign
but it seems like onlychange_event
has access to how a campaign was created.A possible solution would be to create multiple from/to date on 30-day cycles, starting from the account creation date.
Otherwise, you can use
change status
for a slightly larger window of 90 days, with the limitation that you can't filter bychange_event.client_type = 'GOOGLE_ADS_API'
, using simplychange_status.resource_status = 'ADDED'
instead.