# Set the bidding strategy and budget.
campaign.manual_cpc.enhanced_cpc_enabled.value = False
campaign.campaign_budget.value = campaign_budget_response.results[0].resource_name
campaign.bidding_strategy_type = client.get_type('BiddingStrategyTypeEnum', version='v1').MANUAL_CPM
# Set the campaign network options.
campaign.network_settings.target_google_search.value = False
campaign.network_settings.target_search_network.value = False
campaign.network_settings.target_content_network.value = True
campaign.network_settings.target_partner_search_network.value = False
When I run this, the program runs fine, but when I open the UI , it shows me the "Bidding" set to "Manual CPC".
Could you please check on the same and revert ? Is it some known issue with the API ?
Thanks and Regards,
Vinutha Nayak
Hi Vinutha,
Thanks for posting your concern.
Could you clarify first whether you are using the AdWords API or Google Ads API? If you are using AdWords API, would you mind providing the complete SOAP request and response logs together with the customer ID via Reply privately to author option? You may refer to the readMe section of the respective client library for instructions on how to enable SOAP logging.
Also, could provide the screenshot of the created campaign in the UI including the campaign name and the campaign type.
Regards,
Ejay
Google Ads API Team
campaign.manual_cpc.enhanced_cpc_enabled.value = False campaign.campaign_budget.value = campaign_budget_response.results[0].resource_name campaign.bidding_strategy_type = client.get_type('BiddingStrategyTypeEnum', version='v1').MANUAL_CPM
campaign.manual_cpm = True
or
campaign.manual_cpm = "ManualCpm"
I get following error
AttributeError: Assignment not allowed to field "manual_cpm" in protocol message object.
I have referred to this documentation "https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.resources#campaign" wherever I have done the setting for different parameters.
From the documentation also it's not clear what should be used. Could you guide me there please ?
Thanks and Regards,
Vinutha Nayak
campaign.manual_cpm = client.get_type('ManualCpm', version='v1')Let me know if this works for you.