Hi, Thanks for the reply. I am adding bid like this in CampaignService
$campaign->setAdvertisingChannelType(AdvertisingChannelType::SEARCH); // Set shared budget (required). $campaign->setBudget(new Budget()); $campaign->getBudget()->setBudgetId($budget->getBudgetId()); $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); $biddingStrategyConfiguration->setBiddingStrategyType( BiddingStrategyType::TARGET_SPEND ); // You can optionally provide a bidding scheme in place of the type. $biddingScheme = new TargetSpendBiddingScheme(); $biddingScheme->setBidCeiling($_GET['cpc'] * 1000000); $biddingScheme->setSpendTarget($_GET['cpc'] * 1000000); $bid = new CpcBid(); $money = new Money(); $money->setMicroAmount($_GET['cpc'] * 1000000); $bid->setBid($money); $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); $biddingStrategyConfiguration->setBids([$bid]); $biddingStrategyConfiguration->setBiddingScheme($biddingScheme); $campaign->setBiddingStrategyConfiguration($biddingStrategyConfiguration); but this now throws an error PHP Fatal error: Uncaught Google\\AdsApi\\AdWords\\v201809\\cm\\ApiException: [OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.biddingStrategyConfiguration.bids; trigger:'SEARCH'] On Thu, Mar 19, 2020 at 1:04 AM Google Ads API Forum Advisor Prod < adsapiforumadvi...@gmail.com> wrote: > Hi Asif, > > Thank you for reaching out. You can use the CampaignService > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService> > to set the CpcBid > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.CpcBid> > of your campaign. This is the maximum cost per click value. > > Regards, > Mitchell > Google Ads API Team > > ref:_00D1U1174p._5001UXVQyv:ref > -- Regards Asif Saeed *Software Engineer* Skype : a.saeed.vm -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/CA%2B%2BfzCvQ-Du-NcY5ecdT_aJM3LiWQf6tw8x9fDG1L9GXBdQLiQ%40mail.gmail.com.