Hi Adrián,
Thank you for reaching out to the Google Ads API Support Team.
For issues regarding the Java client library, I'm afraid we're unable to further comment on it as it is more related to the implementation of the client library itself rather than the Google Ads API. Please note that our team can only be able to assist on technical issues and implementations of the said API <https://developers.google.com/google-ads/api/docs/start>. With that said, I would recommend reaching out to the developer that maintains our client libraries for further assistance on your concern. You may do so via this link <https://github.com/googleads/google-ads-java/issues> via the Issues tab.
As for setting the bidding strategy of the campaign, you can check the CampaignService <https://developers.google.com/google-ads/api/reference/rpc/v14/CampaignService> in order to update your campaign's bidding_strategy <https://developers.google.com/google-ads/api/reference/rpc/v14/Campaign#bidding_strategy>. Based on this guide <https://developers.google.com/google-ads/api/docs/campaigns/bidding/strategy-types>, please note that EnhancedCpc <https://developers.google.com/google-ads/api/reference/rpc/v14/EnhancedCpc> is deprecated and cannot be created anymore. Use ManualCpc with enhanced_cpc_enabled set to true for equivalent functionality.
Kindly try this on your end if it works for you or let us know if you have any clarifications.
![]() |
Google Ads API Team |