Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set bid strategy to just "Maximize conversion value"? #910

Open
patreeceeo opened this issue Feb 12, 2025 · 0 comments
Open

How to set bid strategy to just "Maximize conversion value"? #910

patreeceeo opened this issue Feb 12, 2025 · 0 comments
Labels
question Further information is requested

Comments

@patreeceeo
Copy link

I'm trying to use the google ads python library to create a campaign with a "maximize conversion value" bidding strategy using version 25.1.0 of this library. In the Ads web interface, I have a campaign I created manually with such a bidding strategy. The closest I've come to that with python is a campaign that the web UI says has a "Maximize conversion value (Target ROAS)" bidding strategy that was achieved with the following line in my script:

campaign.maximize_conversion_value.target_roas = 1.0

My confusion lies in how to use the Campaign class in the Python code. There doesn't seem to be a way to express "I just want maximize conversion value without specifying a target ROAS," which is what I'm after.

You might think the following line would do it.

campaign.bidding_strategy_type = BiddingStrategyTypeEnum.BiddingStrategyType.MAXIMIZE_CONVERSION_VALUE

But that resulted in the following error.

Error with message "The required field was not present.".
                On field: operations
                On field: create
                On field: campaign_bidding_strategy

But no matter what I set the campaign's campaign_bidding_strategy to, I get

AttributeError: Unknown field for Campaign: campaign_bidding_strategy
@patreeceeo patreeceeo added the question Further information is requested label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant