Hi Xiaoming, I want the metric aggregated at the campaign level but filtering in the ad_group level. I noticed that: - If I query in the campaing level I cannot filter in the ad_group level, because ad_group is lower in the hierarchy. - If I query in the ad_group level I can filter ad groups, but the metric is aggregated in the ad_group level and I cannot get total values for each campaign.
I want total values for each campaign and filter by some fields in the ad_group. Is this an API restriction or can I do it in some way? Best regards, Luis El viernes, 23 de abril de 2021 a la(s) 17:08:59 UTC-3, adsapiforumadvisor escribió: > Hi Luis, > > Thank you for reaching out. There is no other way to get the total > metrics.average_cost by campaign when you query the ad_group resource, but > if you need it on the ad_group level then you could directly query the > metrics.average_cost > <https://developers.google.com/google-ads/api/fields/v6/ad_group#metrics.average_cost> > . > > > > Thanks and regards, > Xiaoming, Google Ads API Team > > > [image: Google Logo] > Xiaoming > Google Ads API Team > > > ref:_00D1U1174p._5001UAqWq9:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/9bcd7e53-dba6-4c96-a969-a04748b32eb1n%40googlegroups.com.