Skip to content

Commit a53ee09

Browse files
yangdaBenRKarl
authored andcommitted
Remove the usage of eCPC bidding because of its deprecation
To align with the [code example change](googleads/google-ads-java#742) requested for the Java client library. As seen in this [blog announcement](https://ads-developers.googleblog.com/2023/09/google-ads-shopping-campaign-enhanced.html), any Shopping campaigns using Enhanced cost-per-click (eCPC) will behave as if they are using Manual cost-per-click (CPC) bidding. Because of the change, I'm updating the examples related to the announcement to reflect the new recommended practice.
1 parent 310a10b commit a53ee09

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/shopping_ads/add_shopping_product_ad.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,15 @@ def add_standard_shopping_campaign(
187187
# and the ads are ready to serve.
188188
campaign.status = client.enums.CampaignStatusEnum.PAUSED
189189

190-
# Sets the bidding strategy to Manual CPC (with eCPC enabled)
190+
# Sets the bidding strategy to Manual CPC (with eCPC disabled). eCPC for
191+
# standard Shopping campaigns is deprecated. If eCPC is set to true, Google
192+
# Ads ignores the setting and behaves as if the setting was false. See this
193+
# blog post for more information:
194+
# https://ads-developers.googleblog.com/2023/09/google-ads-shopping-campaign-enhanced.html
191195
# Recommendation: Use one of the automated bidding strategies for Shopping
192196
# campaigns to help you optimize your advertising spend. More information
193197
# can be found here: https://support.google.com/google-ads/answer/6309029
194-
campaign.manual_cpc.enhanced_cpc_enabled = True
198+
campaign.manual_cpc.enhanced_cpc_enabled = False
195199

196200
# Sets the budget.
197201
campaign.campaign_budget = budget_resource_name

0 commit comments

Comments
 (0)