Re: "TypeError: Parameter to MergeFrom() must be instance of same class" during campaign mutate

2021-10-28 Thread Bob Rzadzki
Thanks for pointing me in the right direction! On Wednesday, October 27, 2021 at 12:04:52 PM UTC-5 adsapi wrote: > Hi Bob, > > This support chanel handles API communications, for help with the Ads > API Python client library you can go to their issue tracker >

"TypeError: Parameter to MergeFrom() must be instance of same class" during campaign mutate

2021-10-26 Thread Bob Rzadzki
The code below loops over a list `response` containing tuples where the first element (`c[0]` in the snippet) is a campaign ID: for c in response: campaign_operation = client.get_type('CampaignOperation') operation = campaign_operation.update operation.resource_name = campaign_service.ca