Set audience_setting.use_audience_grouped to True for Display Ad Group

58 views
Skip to first unread message

Adam Walters

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

I am getting errors when trying to create standard display ad groups with the use_audience_grouped set to true.

Error received:
errors {
  error_code {
    context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
  }
  message: "The operation is not allowed for the given context."
  trigger {
    string_value: "DISPLAY"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "audience_setting"
    }
    field_path_elements {
      field_name: "use_audience_grouped"
    }
  }
}
request_id: "wjHf_3IbrXCu_S445rzHww"
, 'wjHf_3IbrXCu_S445rzHww')

Are you able to set the value to True for Display Ad Groups?

Thank you,
Adam

Google Ads API Forum Advisor

unread,
Sep 27, 2023, 8:04:09 AM9/27/23
to ad...@digible.com, adwor...@googlegroups.com
Hi Adam,

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

After reviewing your concern, I understand that you are encountering the error "OPERATION_NOT_PERMITTED_FOR_CONTEXT" when trying to create standard display ad groups with the use_audience_grouped set to true.

In order to investigate further, please provide us with the complete API logs (request and response with request-id and request header) generated at your end and the entire UI screenshot to better assist you

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option or direct private reply to this email.

 
This message is in relation to case "ref:_00D1U1174p._5004Q2p1YiO:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages