Was able to update the field mask manually. Am running into issues clearing 
the bidding_strategy from the campaign. I had thought getting manual_cpc in 
the field mask might resolve this and is has not. I am getting the 
following response:

error_code {

    field_error: FIELD_CANNOT_BE_CLEARED

  }

  message: "The field cannot be cleared."

  location {

    field_path_elements {

      field_name: "operations"

      index: 0

    }

    field_path_elements {

      field_name: "update"

    }

    field_path_elements {

      field_name: "bidding_strategy"

    }

  }

On Thursday, December 2, 2021 at 3:48:21 PM UTC-5 Will Schymik wrote:

> Seems as if the issue I am running into is the same one discussed in this 
> post but for the python library: 
> https://groups.google.com/g/adwords-api/c/GB4sReLzky4/m/_gk6ifgvBwAJ
>
> Currently trying to figure out how to manually update the field mask to 
> add these values. If anyone has any pointers as to how to do this in python 
> I would appreciate it.
>
> On Thursday, December 2, 2021 at 2:37:56 PM UTC-5 Will Schymik wrote:
>
>> I am using the python SDK, and it seems as if when I specify manual_cpc 
>> on the campaign it does not appear on the field mask when I use the 
>> suggested protobuf_helpers.field_mask to construct it:
>>
>> protobuf_helpers.field_mask(None, campaign._pb)
>>
>> It does however appear in the resulting campaign_operation when I copy 
>> the update_mask into it. For example here is what the resulting operation 
>> looks like:
>>
>> update {
>>
>>   resource_name: "customers/REDACTED/campaigns/REDACTED"
>>
>>   status: PAUSED
>>
>>   manual_cpc {
>>
>>     enhanced_cpc_enabled: false
>>
>>   }
>>
>>   dynamic_search_ads_setting {
>>
>>   }
>>
>>   name: "Test Campaign1638491806"
>>
>>   campaign_budget: "customers/REDACTED/campaignBudgets/REDACTED"
>>
>> }
>>
>> update_mask {
>>
>>   paths: "resource_name"
>>
>>   paths: "name"
>>
>>   paths: "status"
>>
>>   paths: "campaign_budget"
>>
>> }
>>
>>
>> On Thursday, December 2, 2021 at 11:45:56 AM UTC-5 Will Schymik wrote:
>>
>>> Sent a "reply to author" with the requests for creating and updating the 
>>> campaign. Let me know if you did not receive it as I cannot seem to figure 
>>> out where the message is viewed.
>>>
>>> On Thursday, December 2, 2021 at 10:29:26 AM UTC-5 adsapi wrote:
>>>
>>>> Hi Will,
>>>>
>>>> I was able to change from portfolio bidding to standard bidding by just 
>>>> entering a standard bid and update mask of the standard bid to the new bid 
>>>> strategy. To address your use case, could you privately send us a request 
>>>> and response log of API communication that returns this error? 
>>>>
>>>> The request and response appears similar to the JSON Mappings in our 
>>>> REST documentation 
>>>> <https://developers.google.com/google-ads/api/rest/design/json-mappings?hl=en>.
>>>>  
>>>> Our client libraries have loggers with logging instructions, to see these 
>>>> instructions you can click on the client library you use in the sidebar of 
>>>> our client library guide 
>>>> <https://developers.google.com/google-ads/api/docs/client-libs?hl=en> and 
>>>> click on "Logging". Setting the logger to 'DEBUG' will get the desired log.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> [image: Google Logo] 
>>>> Aryeh Baker 
>>>> Google Ads API Team 
>>>>   
>>>>
>>>> ref:_00D1U1174p._5004Q2Rw2hc:ref
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c9709a90-17d2-4739-9dff-e02163c57d2cn%40googlegroups.com.
  • Re... Will Schymik
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Will Schymik
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... Will Schymik
            • ... Will Schymik
              • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Will Schymik
                • ... Will Schymik
                • ... Will Schymik
                • ... Will Schymik
            • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
              • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Will Schymik
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Will Schymik
                • ... Will Schymik
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... Will Schymik
                • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to