migrating to the Google Ads API.

82 views
Skip to first unread message

Hwansang Cho

unread,
Mar 6, 2022, 8:05:14 PM3/6/22
to Google Ads API and AdWords API Forum
migrating to the Google Ads API. https://developers.google.com/google-ads/api/fields/v9/segments#segments.device When using device, ad_group_criterion is not included in Selectable With, is it correct not to provide it? So, how can I get criterion_id when device is included in keyword_view ?
thank you

Google Ads API Forum Advisor

unread,
Mar 7, 2022, 1:25:48 AM3/7/22
to hwan...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to us.

I would recommend that you use the Google Ads Query Builder and Query Validator tools for constructing queries. Upon checking, apparently it is valid to include the fields you mentioned. Below is an example query from the above tools :

SELECT segments.device, keyword_view.resource_name, ad_group_criterion.criterion_id, metrics.conversions, metrics.cost_micros, metrics.clicks, metrics.impressions FROM keyword_view.

That said, you may try out the above query and write back to us should you have additional clarifications.

Best regards,

Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XlyzV:ref

Hwansang Cho

unread,
Mar 7, 2022, 2:26:46 AM3/7/22
to Google Ads API and AdWords API Forum
I'm appreciate to your response.
But I'm afraid that wasn't the expected answer.

If I use the device field, I'm removing some items which is not supporting with the device field for the convenient use.
The ad_group_criterion doesn't seem to belong to the among Selectable With since it has been got rid of from the action I describe about the convenient use.

Please check if the ad_group_criterion is one of the Selectable With of device

Thank you

2022년 3월 7일 월요일 오후 3시 25분 48초 UTC+9에 adsapi님이 작성:

Google Ads API Forum Advisor

unread,
Mar 7, 2022, 5:27:27 AM3/7/22
to hwan...@gmail.com, adwor...@googlegroups.com
Hi Hwansang,

Thank you for providing more details to your concern.

I tried to use the query validator, GAQL builder for keywords and create a report on my test account which using device segment and ad_group_criterion, and I can see no error with this combination. With this, allow me to create a feature request to my team to update the device segment document to include the ad_group_criterion there, subject for review.

Please keep an eye on that document for this specific update. Please follow our blog also to receive updates and new releases.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XlyzV:ref

Hwansang Cho

unread,
Mar 7, 2022, 7:38:51 PM3/7/22
to Google Ads API and AdWords API Forum
Hi API Team,

Please double check these items which are segments.ad_network_type and segments.conversion_action. 
Those caused the same issue of the ad_group_criterion

Thank you

2022년 3월 7일 월요일 오후 7시 27분 27초 UTC+9에 adsapi님이 작성:

Google Ads API Forum Advisor

unread,
Mar 8, 2022, 6:02:06 AM3/8/22
to hwan...@gmail.com, adwor...@googlegroups.com
Hi Hwansang,

Thank you for the replies. I'm also from the Google Ads API team and allow me to provide support here.

Allow me to include these two device segments that you've mentioned to the feature request that my colleague mentioned. Please follow our blog as we will post relevant updates there.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XlyzV:ref
Reply all
Reply to author
Forward
0 new messages