Hello, 

Based on the logs, OperationAccessDenied.ACTION_NOT_PERMITTED 
<https://developers.google.com/adwords/api/docs/reference/v201609/AdGroupAdService.OperationAccessDenied#reason>
 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 
<https://support.google.com/adwords/answer/1704346> 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.

On Tuesday, September 5, 2017 at 3:01:26 PM UTC-4, phoom...@acommerce.asia 
wrote:
>
> 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
> Host: adwords.google.com
> 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
> lns:ns1="https://adwords.google.com/api/adwords/cm/v201708
> "><SOAP-ENV:Header><ns
>
> 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
> er><ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201708";><re
>
> 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.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e4a69c51-14ca-42e5-93ea-0dcb03b6f190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Suddenly not ... phoomipat . u
    • Re: Sudd... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum

Reply via email to