Hi How can I update the keyword MaxCPC in php via google ads api?
I am using following code, but nothing was changed after trying.
if (!is_null($cpcAmount)) {
$bid = new \Google\AdsApi\AdWords\v201809\cm\CpcBid();
$money = new \Google\AdsApi\AdWords\v201809\cm\Money();
$money->setMicroAmount($cpcAmount * 1000000);
$bid->setBid($money);
$biddingStrategyConfiguration = new
\Google\AdsApi\AdWords\v201809\cm\BiddingStrategyConfiguration();
$biddingStrategyConfiguration->setBids([$bid]);
$adGroup->setBiddingStrategyConfiguration($biddingStrategyConfiguration);
}
// Create ad group operation and add it to the list.
$operation = new AdGroupOperation();
$operation->setOperand($adGroup);
$operation->setOperator(Operator::SET);
$operations[] = $operation;
// Update the ad group on the server.
return $adGroupService->mutate($operations);
Could you please help why it is not updating the changed value?
Thanks
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d37434ec-0a28-45c1-b84d-0a0f9cb63036n%40googlegroups.com.