Hi, I was implementing a feature where user can create a campaign criteria with keyword. As I was testing my code, I found that the field 'negative' seems not applied to operation correctly.
Here is the code I wrote to execute the operation:
And here's the message I got from onMutationError hook:
GoogleAdsError {
error_code: ErrorCode { criterion_error: 84 },
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: ErrorLocation {
field_path_elements: [
FieldPathElement { field_name: 'operations', index: 0 },
FieldPathElement { field_name: 'create' },
FieldPathElement { field_name: 'keyword' }
]
}
}
I hope I can find solution and by the way, It is a wonderful package and thank you for all the work!
I just realized that campaignCriterion with keyword type is not applicable for negative: false and it can be only negative: true. Sorry for this issue.
Hi, I was implementing a feature where user can create a campaign criteria with keyword. As I was testing my code, I found that the field 'negative' seems not applied to operation correctly.
Here is the code I wrote to execute the operation:
and also I tried the mutateResources() method with customer class:
Here is the message I got from onMutationStart hook:
And here's the message I got from onMutationError hook:
I hope I can find solution and by the way, It is a wonderful package and thank you for all the work!