Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

DemandGen AdGroup Audiences

23 views
Skip to first unread message

Ramanajee

unread,
Apr 17, 2025, 9:52:23 AMApr 17
to Google Ads API and AdWords API Forum
Hi,

I'm trying to map audience to the existing DemandGen adgroup and getting CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET error code from API. Please check the attached logs

details.log

Google Ads API Forum Advisor

unread,
Apr 17, 2025, 3:43:39 PMApr 17
to ramana...@gmail.com, adwor...@googlegroups.com
Hi,

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

Please note that Audience targeting is supported for Performance Max and Demand Gen campaigns.​ You cannot target audience segments directly because targeting audience segments is supported for Display, Search, Video, Hotel or Standard Shopping campaign.

To avoid the CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET error, you need to create audiences using the AudienceService. In that audience you need to target that audience segments, then create an audience you can target to add group criteria. For more information refer to this link.

Please see the below sample logs for reference:
1) POST https://googleads.googleapis.com/v19/customers/xxx/audiences:mutate?key=[YOUR_API_KEY] HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "create": {
        "dimensions": [
          {
            "audienceSegments": {
              "segments": [
                {
                  "userInterest": {
                    "userInterestCategory": "customers/xxx/userInterests/80004"
                  }
                }
              ]
            }
          }
        ],
        "name": "user interests test"
      }
    }
  ]
}
2) POST https://googleads.googleapis.com/v19/customers/xxx/adGroupCriteria:mutate?key=[YOUR_API_KEY] HTTP/1.1

developer-token: **********************
Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "operations": [
    {
      "create": {
        "adGroup": "customers/xxx/adGroups/xxx",
        "audience": {
          "audience": "customers/xxx/audiences/xxx"
        }
      }
    }
  ]
}
If you are still facing issues, feel free to get back to us.

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

 
Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-17 19:42:54Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pTEEI:ref" (ADR-00300310)



Reply all
Reply to author
Forward
0 new messages