我需要使用 Google Ads API 调用(版本 v8)为给定的广告系列修改被阻止的 IP 地址。我认为要将被阻止的 IP 添加到给定的活动中,我必须使用MutateCampaignCriterion
端点创建一个新的活动标准,而不是更新现有的标准。
我的要求是
Request: customer_id: "xxxxxxxx"
operations {
create {
ip_block {
ip_address: "xxx.x.x.xx"
}
campaign: "customers/xxxxxxx/campaigns/xxxxxxx"
}
}
validate_only: true
用正确的数字代替 x。我得到的错误是
Fault: errors {
error_code {
criterion_error: FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING
}
message: "The field is not allowed to be set when the negative field is set to true, e.g. we don\'t allow bids in negative ad group or campaign criteria."
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "ip_block"
}
}
}
即使我将负字段设置为 false,也会发生同样的情况。我不明白为什么。任何帮助将不胜感激,谢谢!