Suddenly not able to mutate?

43 views
Skip to first unread message

phoom...@acommerce.asia

unread,
Sep 5, 2017, 3:01:26 PM9/5/17
to AdWords API Forum
Hello, I was using the adgroupservice->mutate function for a while up until today. Here's the error I got:

[2017-09-05 18:09:19] AW_SOAP.WARNING: clientCustomerId=761-847-2146 operations=
1 service=AdGroupService method=mutate responseTime=237 requestId=0005586f4044d4
200a626e019b0064e9 server=adwords.google.com isFault=1 faultMessage=[OperationAc
cessDenied.ACTION_NOT_PERMITTED @ class com.google.ads.api.serviceimpls.campaign
mgmt.adgroup.MutateAction]
[2017-09-05 18:09:19] AW_SOAP.NOTICE: POST /api/adwords/cm/v201708/AdGroupServic
e?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/7.1.7
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 776
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xm
1:RequestHeader><ns1:clientCustomerId>761-847-2146</ns1:clientCustomerId><ns1:de
veloperToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, goo
gleads-php-lib/29.0.0, PHP/7.1.7)</ns1:userAgent><ns1:validateOnly>false</ns1:va
lidateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></S
OAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>SET</ns1
:operator><ns1:operand><ns1:id>39639838285</ns1:id><ns1:status>PAUSED</ns1:statu
s></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelop
e>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Tue, 05 Sep 2017 11:08:46 GMT
Expires: Tue, 05 Sep 2017 11:08:46 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Head
questId>0005586f4044d4200a626e019b0064e9</requestId><serviceName>AdGroupService<
/serviceName><methodName>mutate</methodName><operations>1</operations><responseT
ime>237</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><fau
ltcode>soap:Server</faultcode><faultstring>[OperationAccessDenied.ACTION_NOT_PER
MITTED @ class com.google.ads.api.serviceimpls.campaignmgmt.adgroup.MutateAction
]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/
adwords/cm/v201708"><message>[OperationAccessDenied.ACTION_NOT_PERMITTED @ class
 com.google.ads.api.serviceimpls.campaignmgmt.adgroup.MutateAction]</message><Ap
plicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xs
i="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OperationAccessDenied"><
fieldPath></fieldPath><trigger></trigger><errorString>OperationAccessDenied.ACTI
ON_NOT_PERMITTED</errorString><ApiError.Type>OperationAccessDenied</ApiError.Typ
e><reason>ACTION_NOT_PERMITTED</reason></errors></ApiExceptionFault></detail></s
oap:Fault></soap:Body></soap:Envelope>

PHP Fatal error:  Uncaught Google\AdsApi\AdWords\v201708\cm\ApiException: [Opera
tionAccessDenied.ACTION_NOT_PERMITTED @ class com.google.ads.api.serviceimpls.ca
mpaignmgmt.adgroup.MutateAction] in C:\Users\Phoomipat.u\Desktop\Atkins\adwordAp
i\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:39
Stack trace:
#0 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\Common\Util\Reflection.php(39): ReflectionClass->newInstanceArgs(
Array)
#1 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\Common\AdsSoapClient.php(165): Google\AdsApi\Common\Util\Reflecti
on->createInstance('Google\\AdsApi\\A...', Array)
#2 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\Common\AdsSoapClient.php(130): Google\AdsApi\Common\AdsSoapClient
->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\AdWords\v201708\cm\AdGroupS in C:\Users\Phoomipat.u\Desktop\Atkin
s\adwordApi\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection
.php on line 39

Fatal error: Uncaught Google\AdsApi\AdWords\v201708\cm\ApiException: [OperationA
ccessDenied.ACTION_NOT_PERMITTED @ class com.google.ads.api.serviceimpls.campaig
nmgmt.adgroup.MutateAction] in C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\goo
gleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php:39
Stack trace:
#0 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\Common\Util\Reflection.php(39): ReflectionClass->newInstanceArgs(
Array)
#1 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\Common\AdsSoapClient.php(165): Google\AdsApi\Common\Util\Reflecti
on->createInstance('Google\\AdsApi\\A...', Array)
#2 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\Common\AdsSoapClient.php(130): Google\AdsApi\Common\AdsSoapClient
->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 C:\Users\Phoomipat.u\Desktop\Atkins\adwordApi\googleads\googleads-php-lib\src
\Google\AdsApi\AdWords\v201708\cm\AdGroupS in C:\Users\Phoomipat.u\Desktop\Atkin
s\adwordApi\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection
.php on line 39

I haven't changed anything regarding the access/authorization and this has left me puzzled for over a day.

Bharani Cherukuri (AdWords API Team)

unread,
Sep 5, 2017, 4:38:59 PM9/5/17
to AdWords API Forum
Hello, 

Based on the logs, OperationAccessDenied.ACTION_NOT_PERMITTED error is encountered when you don't have an authorization to invoke the service methods (get, mutate, etc.). It is possible that you're using the credentials with read-only login to create ads. You will need to have either a standard or administrative access level to make changes to your account. 

If you continue to have an issue with this, could you provide us the email address associated to the refresh token via Reply privately to author option, so we can take a look.

Regards,
Bharani, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages