Hi,
When I add Demographic AdGroupCriterion via API, lets say exclude all male
users from targeting, it works fine. For this, i use this code
<https://developers.google.com/google-ads/api/docs/samples/add-demographic-targeting-criteria>
.
But later on, once I try to *include* the male population for that Ad Group
(by removing 'negative'=>true line of code), I receive the following
message:
*Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "Request
contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT",
"details": [ { "@type": 0, "data":
"type.googleapis.com\/google.ads.googleads.v8.errors.GoogleAdsFailure" }, {
"@type": 0, "data": [ { "errorCode": { "fieldError": "IMMUTABLE_FIELD" },
"message": "The field attempted to be mutated is immutable.", "location": {
"fieldPathElements": [ { "fieldName": "operations", "index": 0 }, {
"fieldName": "create" }, { "fieldName": "negative" in
*/XYZ/google-ads-php/vendor/google/gax/src/ApiException.php* on line *139*
Is there a way to update AdGroupCriterions once they are previously added?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d2912348-fc21-4f71-b391-7a305bcfda8an%40googlegroups.com.