Dear Google Ads API Support,
We’re currently working to automate Demand Gen campaign setup using the Google Ads API (v19, PHP client). Our goal is to programmatically apply audience targeting—including interest segments, age ranges, and genders—at the ad group level.
We attempted the following setup to include user interest segments:
However, the request failed with this error:
This indicates that Demand Gen ad groups use audience_grouped targeting and do not accept individual user_interest criteria directly.
We would appreciate your help answering the following:
What is the correct and supported way to apply the following via the API for Demand Gen ad groups when audience_grouped is enabled?
Interest segments
Age group targeting
Gender targeting
Is there a recommended structure (e.g., ad_group.audience or similar grouped targeting object) that should be used instead of AdGroupCriterion?
Can you provide a working example or reference documentation for applying these audience attributes under audience_grouped logic?
Is it possible to modify these fields post-ad group creation, or must it be done at the time of ad group setup?
Thank you in advance for your assistance.
Best regards,
![]() |
Google Ads API Team |
[2025-04-30 13:36:35Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qVOx6:ref" (ADR-00302998)