Setting Bid Strategy through API brings up different one in UI

281 views
Skip to first unread message

Vinutha Nayak

unread,
Jun 3, 2019, 9:46:15 AM6/3/19
to AdWords API and Google Ads API Forum
Hi,

I have used the following setting in my code :

# 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

Google Ads API Forum Advisor Prod

unread,
Jun 3, 2019, 3:56:53 PM6/3/19
to nayakv...@gmail.com, adwor...@googlegroups.com
Hello Vinutha, 

Based on the code snippet shared, it looks like you are setting both Manual CPC and Manual CPM bid strategies. You will be able to set either the Portfolio Bid strategy using the bidding_strategy field or the Standard bid strategy by setting the bidding scheme. Please refer to the note under the bidding_strategy for more information. Could you please take a look and let me know if you have any questions?

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UBl9Bo:ref

Vinutha Nayak

unread,
Jun 4, 2019, 12:28:14 AM6/4/19
to AdWords API and Google Ads API Forum
Hi ,

I would like to understand how am I setting both Manual CPC and Manual CPM bid strategies ? Since I have shared the code,  could you please point out what is causing both of the bidding strategy to be set ?

campaign.manual_cpc.enhanced_cpc_enabled.value = False

campaign.bidding_strategy_type = client.get_type('BiddingStrategyTypeEnum', version='v1').MANUAL_CPM


1 . One is false and one is true, how are both getting set in the code shared earlier ?  
2.  Also,  when bidding_strategy can be one of the different things, how can a API allow 2 options to be set ? wouldn't it flag an error ? 

In any case, I would like to know how  MANUAL_CPC is getting set, considering I am doing no such thing in the code. 


Thanks and Regards,
Vinutha Nayak


Vinutha Nayak

unread,
Jun 4, 2019, 10:17:57 AM6/4/19
to AdWords API and Google Ads API Forum
Hi,

Can  anyone  help  please ? 


Thanks and Regards,
Vinutha

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2019, 1:46:59 PM6/4/19
to nayakv...@gmail.com, adwor...@googlegroups.com
Hello Vinutha, 

Thank you for clarifying this. The bidding strategy field is a read-only field and you will not be able to set this. A bidding strategy can be created by setting either the bidding scheme to create a standard bidding strategy or the bidding_strategy field to create a portfolio bidding strategy. If you're setting both the fields, only the bidding_strategy field is applied to the campaign. The bidding_strategy_type is ignored when set through the API. 

Let me know if you have any questions.

Regards,

Vinutha Nayak

unread,
Jun 5, 2019, 4:13:19 AM6/5/19
to AdWords API and Google Ads API Forum
Hi,

Can you just  let me know how to set manual_cpm field in that case ?

campaign.campaign_bidding_strategy.manual_cpm = "ManualCpm".
campaign.manual_cpm = "ManualCpm".

I tried to set as above, but both are not working. I want to set Standard Manual CPM bidding strategy.


Thanks and Regards,
Vinutha Nayak



Google Ads API Forum Advisor Prod

unread,
Jun 5, 2019, 3:24:42 PM6/5/19
to nayakv...@gmail.com, adwor...@googlegroups.com

Hello Vinutha, 

You will be able to set the Manual CPM bid strategy using the ManualCpm builder. Please find the code snippet below in Java as a reference:

Campaign.newBuilder()
.setName(StringValue.of("Interplanetary Cruise #" + System.currentTimeMillis())) 
.setAdvertisingChannelType(AdvertisingChannelType.DISPLAY)
.setStatus(CampaignStatus.PAUSED)
.setManualCpm(ManualCpm.newBuilder().build())
.setCampaignBudget(StringValue.of(budgetResourceName))
.setNetworkSettings(networkSettings)
.setStartDate(StringValue.of(new DateTime().plusDays(1).toString("yyyyMMdd")))
.setEndDate(StringValue.of(new DateTime().plusDays(30).toString("yyyyMMdd")))
.build();

Let me know if you have any questions.

Thanks,

Vinutha Nayak

unread,
Jun 6, 2019, 1:28:27 AM6/6/19
to AdWords API and Google Ads API Forum
Hi,

Could you please help the same with python ? As you can see from my code above, it's python.

I tried to check different forums and even github to find the right syntax,  but there is no hint of anything anywhere. 
Could you please point me to right way of doing it in python ?  If not , point to someone who can help with the same .


Thanks and Regards,
Vinutha Nayak 

Google Ads API Forum Advisor Prod

unread,
Jun 6, 2019, 4:35:04 PM6/6/19
to nayakv...@gmail.com, adwor...@googlegroups.com
Hi Vinutha,

You should be able to use this something like:

campaign.bidding_strategy_type = client.get_type('BiddingStrategyTypeEnum').MANUAL_CPM

I'm not sure from the email if this alone addresses your issue, so if there are more issues, feel free to let me know.

Cheers
Anash

ref:_00D1U1174p._5001UBl9Bo:ref

Vinutha Nayak

unread,
Jun 7, 2019, 1:21:35 AM6/7/19
to AdWords API and Google Ads API Forum
Hi Anash,

That was the first thing I did  ( please check the first mail from me in this thread ) .But I saw discrepancy in the UI  which was getting set as "MANUAL_CPC" and that is why I raised this issue in the first place.

I was told that  campaign.bidding_strategy_type is a read only field and needs to be set differently and what is the alternative of setting it so the setting through  API and UI  shows up the same was 
my question. 

Could you please go through the thread and let me know how else do we need to set it  ?


Thanks and Regards,
Vinutha Nayak
 


Google Ads API Forum Advisor Prod

unread,
Jun 7, 2019, 2:04:38 PM6/7/19
to nayakv...@gmail.com, adwor...@googlegroups.com
HI Vinutha,

Apologies that I missed the original post. I'm checking with the relevant teams to get an answer. Thanks for your patience.

Vinutha Nayak

unread,
Jun 10, 2019, 1:44:12 AM6/10/19
to AdWords API and Google Ads API Forum
Hi Anash,

Could you please let me know if you were able to find anything on the same ?

Vinutha Nayak

unread,
Jun 11, 2019, 9:08:34 AM6/11/19
to AdWords API and Google Ads API Forum
Hi Anash,

Can you get back on this please ?

Thanks and Regards,
Vinutha Nayak

Vinutha Nayak

unread,
Jun 12, 2019, 9:31:57 AM6/12/19
to AdWords API and Google Ads API Forum
Hi Anash,

It's 5 days without any response. Can someone atleast respond if someone is looking on this or I am waiting without any hope ?

Thanks and Regards,
Vinutha Nayak

Vinutha Nayak

unread,
Jun 18, 2019, 11:51:50 PM6/18/19
to AdWords API and Google Ads API Forum
Hello Google ,

With due respect, if you do not have an answer please confirm the same.

If this was missed by any chance,  then please let me know the answer to the same. 

I wouldn't want to close this discussion without having a logical conclusion to the query raised. It is really disheartening to see things being put off just like that.

Thanks and Regards,
Vinutha Nayak


Reply all
Reply to author
Forward
0 new messages