Setting AdGroup bid not permitted

31 views
Skip to first unread message

david...@mtt.hu

unread,
Jul 20, 2017, 7:53:17 AM7/20/17
to AdWords API Forum
Hi,

I'm trying to modify the CPM bid of an adgroup through the PHP API but i'm getting this error:

[2017-07-20 09:28:28] AW_SOAP.WARNING: clientCustomerId=6166649032 operations=1 service=AdGroupService method=mutate responseTime=297 requestId=000554bab1deb8990a37cc50c20d3e39 server=adwords.google.com isFault=1 faultMessage=[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'DISPLAY']

Which I guess means the operations failed because it is not permitted on display campaigns, but on the adwords website it IS permitted, so I really don't get this error.

Heres the relevant code:

$cpmBid = $adGroup->getBiddingStrategyConfiguration()->getBids()[0];
$cpmBid->getBid()->setMicroAmount(10*1000000);

$operation = new AdGroupOperation();
$operation->setOperand($adGroup);
$operation->setOperator(Operator::SET);

$operations[] = $operation;
$adGroupService->mutate($operations);

Where am I going wrong?

Thank you in advance!

MTT Media Kft.
Cím: H-2161 Csomád, Verebeshegy u. 12.
Telefon: +36 1 67 77 400
Internet: www.mtt.hu

Ez a közlemény kizárólagos információkat tartalmaz, melyeket csak a címzett / természetes vagy jogi személy/jogosult fogadni. Ez lehet bizalmas vagy jogilag privilegizált információ. Ha Ön nem a címzett, úgy kérjük azt vegye figyelembe, hogy az információ nyilvánosságra hozatala, másolása, terjesztése szigorúan tilos és jogellenes. Ha már kommunikációs hiba folytán megkapta, kérem értesítsen minket azonnal úgy, hogy válaszol erre az emailre és törölje a rendszeréből. Az MTT Media Kft. nem vállal felelősséget a közleményben szereplő információk teljes továbbításáért, sem pedig azok késedelmes átvételéért. 

This communication contains information intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient please be aware that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this e-mail and then delete it from your system. MTT Media Kft. is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jul 20, 2017, 11:48:48 AM7/20/17
to AdWords API Forum
Hi David,

Could you enable logging and share the complete SOAP logs so that I can take a look? You could Reply privately to the author while responding. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages