Hi,
Thank you for contacting the Google Ads API support team.
Based on the request Id, I understand that you are encountering an OPERATION_NOT_PERMITTED_FOR_CONTEXT error while trying to create a demand gen campaign by setting use_audience_grouped as false. This error indicates that the operation is not allowed for the given context. Possible cause for it is using audience targeting with a campaign type that is not supported.
Please note that as per the documentation, if ‘use_audience_grouped’ is false, the campaign may use audience segment criteria and as per the Audiences document, Audience Segment targeting is supported for Display, Search, Video, Hotel, and Standard Shopping campaigns. Based on this, please find answers to your queries below:
Answer: Yes, it is possible to set the ‘useAudienceGrouped’ flag as false while creating a campaign/ ad group for the campaign type which supports audience segment targeting.
Answer: No, audience segment criteria is not supported for demand gen campaigns/ ad groups.
I hope this clarifies your concern. Feel free to reach out for any further concerns/ queries.
![]() |
Google Ads API Team |
[2025-06-03 18:33:32Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01re5Fx:ref" (ADR-00309734)