How to update the campaign_criterion

52 views
Skip to first unread message

1412アントワネット

unread,
Aug 30, 2021, 9:53:45 PM8/30/21
to AdWords API and Google Ads API Forum
Hi
I want to update the campaign_criterion, but I get an error when I do the following.

operation = get_type("CampaignCriterionOperation")
campaign_criterion = operation.update
campaign_criterion.resource_name = resource_name
campaign_criterion.proximity.address.country_code = 'JP'
campaign_criterion.proximity.address.postal_code = postal_code
campaign_criterion.proximity.address.city_name = city_name
campaign_criterion.proximity.address.street_address = street_address

client.copy_from(operation.update_mask, protobuf_helpers.field_mask(None, operation.update._pb))


-error content-

message: "Field \'proximity.address.city_name\' cannot be modified by \'UPDATE\' operation."

Translated with www.DeepL.com/Translator (free version)

Google Ads API Forum Advisor

unread,
Sep 1, 2021, 3:24:29 AM9/1/21
to climbe...@nifty.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.

So our team can better check on the issue, can you share to us the following details below?

Please send the requested details via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsapi-support@google.com alias instead.

Regards,

Google Logo
Teejay Wennie Pimentel
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Mk7zq:ref
Reply all
Reply to author
Forward
0 new messages