我刚刚开始使用 Google Ads API,并且有兴趣获取各种数据点(点击次数、展示次数等)以及 each 日期的特定信息,例如:{'2023-02-01': {'clicks ':123,'印象':2000}等
我设置了 API,但它没有返回日期——请参阅下面查询 1 和查询 2 之间的区别。
问题:我做错了什么?
查询 1(没有 segments.date)
SELECT campaign.name FROM campaign WHERE segments.date DURING LAST_30_DAYS
退货
SearchPager<results {
campaign {
resource_name: "customers/4031777845/campaigns/19706223980"
name: "Example Campaign"
}
}
field_mask {
paths: "campaign.name"
}
>
查询 2(带 segments.date)
SELECT campaign.name, segments.date FROM campaign WHERE segments.date DURING LAST_30_DAYS
退货
SearchPager<field_mask {
paths: "segments.date"
paths: "campaign.name"
}