Hello, I have a campaign with the following properties: "selectiveOptimization": { "conversionActions": [ "customers/xxx/conversionActions/yyy" ] }
I am trying to clear the "conversionActions" list so it is either empty or completely absent from the properties, but not sure how it can be done. Can't find any examples in the python library. Here is how it was added in the first place: GA_CLIENT = GoogleAdsClient.load_from_storage('/path/') api_service = GA_CLIENT.get_service('CampaignService', version='v2') operation = GA_CLIENT.get_type('CampaignOperation', version='v2') campaign_data = operation.update campaign_data.resource_name = 'customers/xxx/campaigns/yyy' conversion_actions = campaign_data.selective_optimization.conversion_actions.add() conversion_actions.value = 'customers/xxx/conversionActions/yyy' operation.update_mask.CopyFrom(protobuf_helpers.field_mask(None, operation.update)) api_service.mutate_campaigns('<account_id>', [operation]) I tried doing something like: campaign_data.selective_optimization.conversion_actions.remove('customers/xxx/conversionActions/yyy') But it says "Item to delete not in list". 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 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 "AdWords API and Google Ads 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/dc020cea-d2e2-4231-850b-1a3ee193f091%40googlegroups.com.