Skip to content

Commit

Permalink
Remove the usage of eCPC bidding because of its deprecation (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangda authored Nov 7, 2023
1 parent c4ef21f commit 94b3b76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/shopping_ads/add_shopping_product_ad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,13 @@ def add_standard_shopping_campaign(

campaign.status = :PAUSED

# Sets the bidding strategy to Manual CPC (with eCPC disabled). eCPC for standard
# Shopping campaigns is deprecated. If eCPC is set to true, Google Ads ignores the
# setting and behaves as if the setting was false. See this blog post for more
# information:
# https://ads-developers.googleblog.com/2023/09/google-ads-shopping-campaign-enhanced.html
campaign.manual_cpc = client.resource.manual_cpc do |manual_cpc|
manual_cpc.enhanced_cpc_enabled = true
manual_cpc.enhanced_cpc_enabled = false
end

campaign.campaign_budget = budget_name
Expand Down

0 comments on commit 94b3b76

Please sign in to comment.