setting up Maximize clicks for Shopping campaigns without cpc bid

153 views
Skip to first unread message

Vijaysinh Parmar

unread,
Jun 2, 2022, 8:45:14 AM6/2/22
to Google Ads API and AdWords API Forum
Hi , 

I am using php google ads api library v10,

I am trying to create a shopping campaign with the bidding strategy  "Maximize clicks" using V10 PHP lib code,

The below code is working fine using target spend with CPC bid, but If I pass target spend as empty then it's not working,

$campaign = new Campaign([
    'resource_name' => ResourceNames::forCampaign($customerId, $campaignId),
    'status' => CampaignStatus::PAUSED,
    'target_spend'=>new TargetSpend(['cpc_bid_ceiling_micros'=>1000000]),
]);

If I pass target spend as empty then it's not working like below,

$campaign = new Campaign([
    'resource_name' => ResourceNames::forCampaign($customerId, $campaignId),
    'status' => CampaignStatus::PAUSED,
    'target_spend'=>new TargetSpend(),
]);

Please find both requests' request and response log in the attached log.

Please let me know how I can use Maximize clicks bidding strategy without setting CPC bid? 
is it possible using API? because in UI we can use the same without setting up CPC bid.

If I use an update campaign then how can I clear CPC bid?

Please find attached request-response log.


google-ads.log

Google Ads API Forum Advisor

unread,
Jun 2, 2022, 1:30:44 PM6/2/22
to er.parm...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team.

Foe this question" how I can use Maximize clicks bidding strategy without setting CPC bid? is it possible using API? " It is not possible. You need to pass to use cpc_bid_ceiling_micros under target spend.

Can you please provide more details on this question "If I use an update campaign then how can I clear CPC bid?"

Thanks,

Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bbE3A:ref

Vijaysinh Parmar

unread,
Jun 3, 2022, 1:49:13 AM6/3/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com

Please find attached a screenshot,

I mean to say if I want to remove max CPC bid using API then it's not working, is it correct behavior from API? it's not giving an error and API is giving the correct response but there is no change in CPC.

You can refer to my previous mail for the request and response log.


Thanks & Regards,
Vijaysinh Parmar,
  


Settings-Vijaysinh-Developmet-adwords-acc-Google-Ads.png

Google Ads API Forum Advisor

unread,
Jun 3, 2022, 9:50:31 AM6/3/22
to er.parm...@gmail.com, adwor...@googlegroups.com
Hi Vijaysinh,

Thank you for getting back to us.

Moving forward, you may try the 2 options below for removing bids:
  • As per this documentation, to remove a bid, update its field back to null.
  • Include the specific field that you want to remove in the "updatemask" field but not to include it in the update operation.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bbE3A:ref
Reply all
Reply to author
Forward
0 new messages