Hi, I was able to update the campaign status with the guide of samples in github <https://github.com/googleads/google-ads-python/blob/main/examples/basic_operations/update_campaign.py> (I posted the code below)
I am trying to update the landing page, I tried campaign.url, and campaign.final_urls, etc.. but those generated error "Unknown field for Campaign". I searched the API documentation and the web, without any luck. thanks for the help -george ''' def update_campaign(client, customer_id, campaign_id, new_status): campaign_service = client.get_service("CampaignService") # Create campaign operation. campaign_operation = client.get_type("CampaignOperation") campaign = campaign_operation.update campaign.resource_name = campaign_service.campaign_path( customer_id, campaign_id ) #campaign.status = client.enums.CampaignStatusEnum.PAUSED campaign.status = new_status # campaign.network_settings.target_search_network = False # Retrieve a FieldMask for the fields configured in the campaign. client.copy_from( campaign_operation.update_mask, protobuf_helpers.field_mask(None, campaign._pb), ) campaign_response = campaign_service.mutate_campaigns( customer_id=customer_id, operations=[campaign_operation] ) ''' -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/fb723588-8e19-49b9-aa25-0f491af9b92fn%40googlegroups.com.