How to get ad group optimized targeting flag in Google Ads API

317 views
Skip to first unread message

Shiwei Zhang

unread,
Oct 27, 2021, 12:57:56 PM10/27/21
to AdWords API and Google Ads API Forum
Hello, Google recently announced optimized targeting for display campaign (About optimized targeting - Google Ads Help). My understanding is I may opt in/out through a flag of ad group, based on my understanding of below screenshot from Google Ads UI. However, I was not able to figure out how to set this flag through Google Ads API. Does anyone have the answer? Any input is highly appreciated.

Thanks,
Shiwei 

Capture.PNG

Google Ads API Forum Advisor

unread,
Oct 28, 2021, 3:04:31 AM10/28/21
to shiwei...@gmail.com, adwor...@googlegroups.com

Hi Shiwei,

 

I'm Kevin from the Google Ads API Team. I'll try my best to assist you.

 

I believe the setting that you are looking for is the ExplorerAutoOptimizerSetting of an AdGroup. The Targeting expansion is now available as optimized targeting.

 

Let me know if you have any additional clarifications.

 

Regards,

Google Logo
Kevin Gil Soriano
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFjWf:ref

Shiwei Zhang

unread,
Oct 28, 2021, 1:01:59 PM10/28/21
to AdWords API and Google Ads API Forum
Hi Kevin, thanks for your reply.

I noticed this attribute earlier. However, it always returns false for my test ad group even in UI I turn it on. Please refer to my screen shots below for what I see in UI and what I get in API response (also pasted my Query at the end).

Capture.PNG
Capture.PNG

SELECT ad_group.ad_rotation_mode, ad_group.base_ad_group, ad_group.campaign, ad_group.cpc_bid_micros, ad_group.cpm_bid_micros, ad_group.cpv_bid_micros, ad_group.display_custom_bid_dimension, ad_group.effective_target_cpa_micros, ad_group.effective_target_cpa_source, ad_group.effective_target_roas, ad_group.effective_target_roas_source, ad_group.excluded_parent_asset_field_types, ad_group.explorer_auto_optimizer_setting.opt_in, ad_group.final_url_suffix, ad_group.id, ad_group.labels, ad_group.name, ad_group.percent_cpc_bid_micros, ad_group.resource_name, ad_group.status, ad_group.target_cpa_micros, ad_group.target_cpm_micros, ad_group.target_roas, ad_group.targeting_setting.target_restrictions, ad_group.tracking_url_template, ad_group.type, ad_group.url_custom_parameters FROM ad_group

Google Ads API Forum Advisor

unread,
Oct 28, 2021, 10:56:54 PM10/28/21
to shiwei...@gmail.com, adwor...@googlegroups.com

Hello Shiwei,

Thanks for getting back to us.

You've mentioned that the said attribute always returns false for your test ad group. According to this guide, Optimized targeting is automatically turned on for all campaigns. Optimized targeting uses targeting signals to find similar criteria to serve your ads on. Since you're using a Test account which can't serve ads, this could probably be the reason why you're getting the said response. Can you try this on an actual production account and let us know if you're still experiencing the said issue?

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QFjWf:ref

Shiwei Zhang

unread,
Oct 29, 2021, 7:41:34 PM10/29/21
to AdWords API and Google Ads API Forum
Hi Mark, thanks for your reply.

I just tested my PROD account, and this value always returns false no matter I check or uncheck the " Use optimized targeting" option of ad group in UI.

Thanks,
Shiwei

Capture.PNG

Google Ads API Forum Advisor

unread,
Nov 1, 2021, 10:18:07 PM11/1/21
to shiwei...@gmail.com, adwor...@googlegroups.com
Hi Shiwei,

Thank you for your follow up.

So that I may raise this to the rest of our team, could you also provide the complete request and response logs, with the request-id? You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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