googleads / google-ads-python

Google Ads API Client Library for Python
Apache License 2.0
526 stars 480 forks source link

Issue with Setting Bidding Strategy for Smart Campaigns Using API #877

Open HaitianLi opened 3 months ago

HaitianLi commented 3 months ago

What is your question?

I am currently working with the Google Ads API and trying to create a Smart Campaign using the example provided in examples/advanced_operations/add_smart_campaign.py. However, I have encountered some issues regarding the bidding strategy settings.

When using the provided example to create a Smart Campaign, I noticed that the bidding strategy is not set, which prevents the campaign from running. To address this, I attempted to use campaign.manual_cpc.enhanced_cpc_enabled = True. While this allowed the campaign to be created, the bidding strategy was not as expected. The strategy set by the API differed from the one configured manually through the Google Ads website.

A standard Smart Campaign should aim to maximize clicks. However, the API sets the bidding strategy to Enhanced CPC, which focuses on the cost-per-click. This discrepancy is affecting the campaign's performance and objectives.

Could you please provide guidance on how to correctly set the bidding strategy to maximize clicks when creating a Smart Campaign via the Google Ads API? Any detailed instructions or corrections to the example script would be greatly appreciated.

Thank you for your assistance.