hi, I want to mutate keyword status by creating AdGroupCriterionOperation using python code As I know if the keyword text is same, they will have same adgroup_criterion.criterion_id. but they might be used in different ad groups and campaigns. Therefore, if in the agc_service_ad_group_path only contain customer_id and adgroup_criterion_id, I think all of the keywords with that id will muate in the same time, even though they are under different ad groups or campaigns.
Is there a method for adding resource_name with campaign id or adgroup id, and criterion_id in one resource name? sample code is below: def get_keyword_status_operations(client, customer_id ): operations = [] agc_service = client.get_service("AdGroupCriterionService") agc_operation = client.get_type("AdGroupCriterionOperation") updated_agc = agc_operation.update updated_agc.resource_name = agc_service.ad_group_path( customer_id, adgroup_criterion.criterion_id) updated_agc.status = 'ENABLED' client.copy_from( agc_operation.update_mask, protobuf_helpers.field_mask(None, updated_agc._pb)) operations.append(agc_service) return operations 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 "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/df30ee10-1a19-4719-b05e-3d152fd942afn%40googlegroups.com.