Hi Miguel,
Thanks for the question. The Java and PHP libraries are setting the
maximum_conversion_value field, not the maximize_conversions field. These are
technically two different bidding strategies, but below are examples of how to
set both:
maximize_conversion_value:
campaign.maximize_conversion_value.target_roas.value = 3.5
maximize_conversions:
This field admittedly has a very confusing interface because it's represented
by an empty proto object, as defined here. In the Python implementation of
protobufs you can't assign to nested proto objects directly, you need to use
the CopyFrom method:
max_conversions_proto = client.get_type('MaximizeConversions')
campaign.maximize_conversions.CopyFrom(max_conversions_proto)
If you were to log the campaign object after this sequence it should look
something like this:
maximize_conversions {
}
Hope that helps! If you have additional questions or feedback related to the
Python library please feel free to open an Issue on the GitHub repository
directly.
Best,
Ben Karl, Google Ads API Team
ref:_00D1U1174p._5001UBo9Ix: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/h7N5l000000000000000000000000000000000000000000000PUCC5E00yyn7ex29RpSLUlHeOLPXbg%40sfdc.net.