I use the Google Ads API Python client library and am having a difficult time setting the campaign priority of an existing campaign to be "Low" (0) via the Ads API. I can change it to "High" (2) but not to "Low". Here's the relevant chunk of my code:
*campaign_service = client.get_service("CampaignService")* *campaign_operation = client.get_service("CampaignOperation")* *campaign = campaign_operation.update* *campaign.resource_name = campaign_service.campaign_path(* * customerId, campaignId)* *campaign.shopping_setting.campaign_priority = 0* *client.copy_from(* * campaign_operation.update_mask,* * protobuf_helpers.field_mask(None, campaign._pb),* *)* *campaign_service.mutate_campaigns(customer_id=customerId, operations=[campaign_operation])* I think the issue traces back to the protobuf_helpers.field_mask() function not adding "campaign_priority.shopping_setting" to the paths field of the mutate - the only item that shows up in the paths when my current code runs is "resource_name". Does it read "0" as being a null field? Any suggestions as to how I can make this mutate happen? If this were a one-off I'd do it in the UI, but it's something I'm gonna need to do across a ton of different accounts and campaigns. Thanks. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/08036706-0d1f-4cae-879e-92cf80c0395cn%40googlegroups.com.