Hi,

We're getting an OperationAccessDenied.ACTION_NOT_PERMITTED error when 
using the AdGroupAdService to "get" ads, even though the same credentials 
allow access to other services.

Our daily import process uses the CustomerSyncService to identify changed 
objects, then each object is queried to find its current state. The two ads 
mentioned below (41164926507 and 42420861147) were identified as changed 
(request ID 0004f51f78a4f7180adb1ce400000973 or 
0004f51f78a9c9780adb216700001f2a), but we were blocked from getting those 
ads from the AdGroupAdService.

Could you please advise?


POST /api/adwords/cm/v201309/AdGroupAdService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.4.8
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1907

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201309";><SOAP-ENV:Header><ns1:RequestHeader><ns1:authToken>REDACTED</ns1:authToken><ns1:clientCustomerId>8100413935</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>ICC
 
NTL</ns1:userAgent></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:get><ns1:serviceSelector><ns1:fields>Id</ns1:fields><ns1:fields>Status</ns1:fields><ns1:fields>Url</ns1:fields><ns1:fields>DisplayUrl</ns1:fields><ns1:fields>Name</ns1:fields><ns1:fields>SourceUrl</ns1:fields><ns1:fields>ImageCreativeName</ns1:fields><ns1:fields>Headline</ns1:fields><ns1:fields>Description1</ns1:fields><ns1:fields>Description2</ns1:fields><ns1:fields>MobileAdHeadline</ns1:fields><ns1:fields>MobileAdDescription</ns1:fields><ns1:fields>PromotionLine</ns1:fields><ns1:fields>RichMediaAdName</ns1:fields><ns1:fields>RichMediaAdSourceUrl</ns1:fields><ns1:fields>TemplateAdName</ns1:fields><ns1:predicates><ns1:field>AdGroupId</ns1:field><ns1:operator>EQUALS</ns1:operator><ns1:values>7961866467</ns1:values></ns1:predicates><ns1:predicates><ns1:field>Status</ns1:field><ns1:operator>IN</ns1:operator><ns1:values>ENABLED</ns1:values><ns1:values>PAUSED</ns1:values><ns1:values>DISABLED</ns1:values></ns1:predicates><ns1:predicates><ns1:field>Id</ns1:field><ns1:operator>IN</ns1:operator><ns1:values>41164926507</ns1:values><ns1:values>42420861147</ns1:values></ns1:predicates></ns1:serviceSelector></ns1:get></SOAP-ENV:Body></SOAP-ENV:Envelope>



HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Fri, 21 Mar 2014 15:23:45 GMT
Expires: Fri, 21 Mar 2014 15:23:45 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked

<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";><requestId>0004f51f78b504780ae064c900006e39</requestId><serviceName>AdGroupAdService</serviceName><methodName>get</methodName><operations>0</operations><responseTime>250</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[OperationAccessDenied.ACTION_NOT_PERMITTED
 
@ class 
com.google.ads.api.serviceimpls.campaignmgmt.ad.adgroupad.GetAction]</faultstring><detail><ApiExceptionFault
 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";><message>[OperationAccessDenied.ACTION_NOT_PERMITTED
 
@ class 
com.google.ads.api.serviceimpls.campaignmgmt.ad.adgroupad.GetAction]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="OperationAccessDenied"><fieldPath></fieldPath><trigger></trigger><errorString>OperationAccessDenied.ACTION_NOT_PERMITTED</errorString><ApiError.Type>OperationAccessDenied</ApiError.Type><reason>ACTION_NOT_PERMITTED</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to