use_audience_grouped set to false not working

163 views
Skip to first unread message

Gaurav Sharma

unread,
Dec 22, 2022, 6:20:38 AM12/22/22
to Google Ads API and AdWords API Forum
While creating adgroup for discovery and display ad groups, setting setUseAudienceGrouped to false in adgroup audience setting is not working in v12 java library. Same is working in v11 version.

Google Ads API Forum Advisor

unread,
Dec 22, 2022, 10:34:18 AM12/22/22
to gau...@adyogi.com, adwor...@googlegroups.com
Hi Gaurav,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hMlkn:ref

Google Ads API Forum Advisor

unread,
Jan 6, 2023, 5:14:44 PM1/6/23
to adwor...@googlegroups.com, gau...@adyogi.com
Hi,

This issue was reported by another user on GitHub. Since it's an API issue, I'll provide further updates on this thread so we're not tracking it in multiple places.

Here are some details copied from the GitHub issue:
 

The issue here is actually an API issue, and stems from the fact that the use_audience_grouped field does not have the optional keyword. As a result, when processing an operation on our side, we cannot tell the difference between:

a) The use_audience_grouped field was explicitly set to false.

and

b) The use_audience_grouped field was not explicitly set by you.

If the field was marked optional, then we could differentiate between a) and b) via the hasUseAudienceGrouped() method. In fact, you can see this "in action" by comparing the AudienceSettingOrBuilder in Campaign.java, where hasUseAudienceGrouped() exists, to the same type in AdGroup.java, where hasUseAudienceGrouped() does not exist. The reason for this is that the Campaign proto declares the field as:

optional bool use_audience_grouped = 1 [(google.api.field_behavior) = IMMUTABLE];

while the AdGroup proto declares it as:

bool use_audience_grouped = 1 [(google.api.field_behavior) = IMMUTABLE];

What should happen in this case is that the API should treat a) and b) the same, which ultimately means that the default value should be false. I have filed a bug on this to fix the ad group case.

I'll follow up here once I have an update on the bug.

Thanks,

Google Logo
Josh Radcliff
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2hMlkn:ref

Google Ads API Forum Advisor

unread,
Jan 25, 2023, 5:54:56 PM1/25/23
to adwor...@googlegroups.com, gau...@adyogi.com
Hi all,

Upon further investigation, I've found that for Discovery campaigns, the only supported value for this field is true. Currently, the API ignores the value you sent in, but even if it did not ignore it, you still wouldn't be able to set the field to false on a Discovery campaign. At most, the API would throw an error in a future API release for that scenario.

That still leaves non-Discovery campaigns. Has anyone on this thread found this value is being ignored for non-Discovery campaigns?

Adam Walters

unread,
Sep 26, 2023, 2:41:07 PM9/26/23
to Google Ads API and AdWords API Forum
Hello,

Are you able to set the value to True for standard display ad groups? Is documentation anywhere on what ad group types have the availability?

Thanks

Google Ads API Forum Advisor

unread,
Sep 26, 2023, 3:24:50 PM9/26/23
to ad...@digible.com, adwor...@googlegroups.com
Hello -

This issue only pertains to Discovery campaigns, so you should be able to set this field to false for any other campaign type.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2hMlkn:ref"

Thanks,
 
Google Logo
Ben Karl
Google Ads API Team


Adam Walters

unread,
Sep 26, 2023, 4:30:12 PM9/26/23
to Google Ads API and AdWords API Forum
Am I able to set it to True for other campaign types such as display? That is where I am getting the error.
Reply all
Reply to author
Forward
0 new messages