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.