Hi,
I am trying to set a campaign criterion, but getting an error.
code:
// Construct payload for gender criterion
var payload = {
"operations": [
{
"create": {
"campaign": "customers/" + customer_id + "/campaigns/" +
campaignId,
"gender": {
"type": genderType // For example, MALE or FEMALE
},
"status": "ENABLED" // For example, "PAUSED" or "ENABLED"
}
}
]
};
error:
Failed to create gender criterion. Response: { "error": { "code": 400,
"message": "Request contains an invalid argument.", "status":
"INVALID_ARGUMENT", "details": [ { "@type":
"type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure",
"errors": [ { "errorCode": { "criterionError":
"FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING" }, "message": "The field is
not allowed to be set when the negative field is set to true, for example,
we don't allow bids in negative ad group or campaign criteria.",
"location": { "fieldPathElements": [ { "fieldName": "operations", "index":
0 }, { "fieldName": "create" }, { "fieldName": "gender" } ] } } ],
"requestId": "4cnl0nuuZLJJWJl9ZWwxwg" } ] } } The error persists even
though I include the negative field and set it to false. please look into
it. Thank you
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 on the web visit
https://groups.google.com/d/msgid/adwords-api/8a930ffe-361c-4bc1-9464-389daf47b09dn%40googlegroups.com.