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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/adwords-api/3fddb97f-ebd3-4b12-b576-8044223e13f9n%40googlegroups.com.
GoogleAds.DetailedRequestLogs Information: 1 : [2025-04-17 13:49:50Z] -
---------------BEGIN API CALL---------------
Request
-------
Method Name:
/google.ads.googleads.v19.services.AdGroupCriterionService/MutateAdGroupCriteria
Host:
Headers: {
"x-goog-api-client": "gl-dotnet/8.0.0 gapic/22.1.0 gax/4.8.0 grpc/2.60.0
gccl/4.0.4 pb/3.25.0",
"developer-token": "REDACTED",
"login-customer-id": "1604238709",
"x-goog-request-params": "customer_id=1648827291"
}
{ "customerId": "1648827291", "operations": [ { "create": { "userInterest": {
"userInterestCategory": "customers/1648827291/userInterests/80004" },
"adGroup": "customers/1648827291/adGroups/175945352777" } } ] }
Response
--------
Headers: {
"request-id": "_wajRQ3Y7pQyFLsF9wPMrQ",
"date": "Thu, 17 Apr 2025 13:49:48 GMT",
"alt-svc": "h3-29=\":443\"; ma=2592000",
"google.ads.googleads.v19.errors.googleadsfailure-bin":
"Co0BCgSAApgBElhBdWRpZW5jZSBzZWdtZW50IGF0dGFjaG1lbnQgaXMgbm90IGFsbG93ZWQgd2hlbiB1c2UgYXVkaWVuY2UgZ3JvdXBlZCBiaXQgaXMgc2V0IHRvIHRydWUuIisSDgoKb3BlcmF0aW9ucxgAEggKBmNyZWF0ZRIPCg11c2VyX2ludGVyZXN0EhZfd2FqUlEzWTdwUXlGTHNGOXdQTXJR",
"grpc-status-details-bin":
"CAMSJVJlcXVlc3QgY29udGFpbnMgYW4gaW52YWxpZCBhcmd1bWVudC4a8QEKRHR5cGUuZ29vZ2xlYXBpcy5jb20vZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE5LmVycm9ycy5Hb29nbGVBZHNGYWlsdXJlEqgBCo0BCgSAApgBElhBdWRpZW5jZSBzZWdtZW50IGF0dGFjaG1lbnQgaXMgbm90IGFsbG93ZWQgd2hlbiB1c2UgYXVkaWVuY2UgZ3JvdXBlZCBiaXQgaXMgc2V0IHRvIHRydWUuIisSDgoKb3BlcmF0aW9ucxgAEggKBmNyZWF0ZRIPCg11c2VyX2ludGVyZXN0EhZfd2FqUlEzWTdwUXlGTHNGOXdQTXJR"
}
Fault: {
"StatusCode": 3,
"Details": "Request contains an invalid argument.",
"RequestId": "_wajRQ3Y7pQyFLsF9wPMrQ",
"Failure": {
"errors": [
{
"errorCode": {
"criterionError":
"CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET"
},
"message": "Audience segment attachment is not allowed when use
audience grouped bit is set to true.",
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "user_interest"
}
]
}
}
],
"requestId": "_wajRQ3Y7pQyFLsF9wPMrQ"
}
}
----------------END API CALL----------------