Thanks for the response!
Setting "enhanced_cpc_enabled = True" does seem to add it to the field
mask, however I was able to figure out how to do this manually. Even with
it added to the field mask I am getting the issue with removing the
bidding_strategy field as noted above.
In regards to "That field can only be deleted by replacement with another
of the union fields." - the documentation shows that manual_cpc is another
one of the union fields. Shouldn't I be able to remove bidding_strategy
while I am setting manual_cpc?
My current request body that is getting the FIELD_CANNOT_BE_CLEARED
response is:
update {
resource_name: "customers/REDACTED/campaigns/REDACTED"
status: PAUSED
manual_cpc {
enhanced_cpc_enabled: true
}
dynamic_search_ads_setting {
}
name: "Test Campaign1638572728"
campaign_budget: "customers/REDACTED/campaignBudgets/REDACTED"
}
update_mask {
paths: "bidding_strategy"
paths: "manual_cpc.enhanced_cpc_enabled"
}
On Friday, December 3, 2021 at 12:46:56 PM UTC-5 adsapi wrote:
> Hi Will,
>
> The 'bidding strategy
> <https://developers.google.com/google-ads/api/reference/rpc/v9/Campaign?hl=en#bidding_strategy>'
>
> field is one of the possible union fields of campaign_bidding_strategy
> <https://developers.google.com/google-ads/api/reference/rpc/v9/Campaign?hl=en#campaign_bidding_strategy%20union>.
>
> That field can only be deleted by replacement with another of the union
> fields.
>
>
> 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/73a4cb2e-5462-4795-8bcc-848c1b579005n%40googlegroups.com.