Hi Team,
I’m trying to update a campaign’s bid strategy from
MAXIMIZE_CONVERSION_VALUE to MAXIMIZE_CONVERSIONS using the Python SDK, but
I’m encountering the following error
*Request:*
update_mask {
paths: "resource_name"
paths: "maximize_conversions"
}
update {
resource_name: "customers/5X8XXX4X4X/campaigns/2X5X3XXX6X8"
maximize_conversions {
}
}
*Error:*
error_code {
field_mask_error: *FIELD_HAS_SUBFIELDS*
}
message: "*The field mask updated a field with subfields:
\'maximize_conversions\'."*
location {
field_path_elements {
field_name: "operations"
index: 0
}
}
*Snippet:*
bidding_operation = self.google_adapter.client.get_type("CampaignOperation")
bidding_campaign = bidding_operation.update
bidding_campaign.resource_name = campaign_resource
bidding_campaign.maximize_conversions.SetInParent()
field_mask = bidding_operation.update_mask
field_mask.paths.append("resource_name")
field_mask.paths.append("maximize_conversions")
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/adwords-api/3796dfa9-bcf1-47df-919c-697786410374n%40googlegroups.com.