Offline conversions uploaded via API OperationAccessDenied.ACTION_NOT_PERMITTED

119 views
Skip to first unread message

wal...@sailogy.com

unread,
Sep 18, 2015, 10:57:52 AM9/18/15
to AdWords API Forum

Hello,

I am trying to use the SOAP API to track offline conversions.

My Developer Token has been approved this morning and according to my Api Center profile, my Access Level is Basic.


But when I execute my code I am getting this error:

/Users/uolter/src/google_adwords/venv/bin/python /Users/uolter/src/google_adwords/upload_offline_conversions.py
No handlers could be found for logger "suds.client"
Traceback (most recent call last):
  File "/Users/uolter/src/google_adwords/upload_offline_conversions.py", line 88, in <module>
    main(adwords_client, CONVERSION_NAME, CLICK_ID, CONVERSION_TIME, CONVERSION_VALUE)
  File "/Users/uolter/src/google_adwords/upload_offline_conversions.py", line 57, in main
    response = conversion_tracker_service.mutate([upload_conversion_operation])
  File "/Users/uolter/src/google_adwords/venv/lib/python2.7/site-packages/googleads/common.py", line 296, in MakeSoapRequest
    for arg in args])
  File "/Users/uolter/src/google_adwords/venv/lib/python2.7/site-packages/suds/client.py", line 521, in __call__
    return client.invoke(args, kwargs)
  File "/Users/uolter/src/google_adwords/venv/lib/python2.7/site-packages/suds/client.py", line 581, in invoke
    result = self.send(soapenv)
  File "/Users/uolter/src/google_adwords/venv/lib/python2.7/site-packages/suds/client.py", line 619, in send
    description=tostr(e), original_soapenv=original_soapenv)
  File "/Users/uolter/src/google_adwords/venv/lib/python2.7/site-packages/suds/client.py", line 670, in process_reply
    raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: '[OperationAccessDenied.ACTION_NOT_PERMITTED @ class com.google.ads.api.serviceimpls.campaignmgmt.conversiontracking.conversion]'

Process finished with exit code 1



What should it be the cause of this error?

Please help me 

Thanks a lot.

Walter

Anthony Madrigal

unread,
Sep 18, 2015, 11:50:05 AM9/18/15
to AdWords API Forum
Hello Walter,

The error you are receiving implies that you are using the REMOVE operator, which is not supported for the ConversionTrackerService

However, if you are using the ADD or SET operator here and are getting this error, then could you please send me through reply privately to author your SOAP XML request and response, so that I could try and see what is causing this issue?

Thanks,
Anthony
AdWords API Team

wal...@sailogy.com

unread,
Sep 21, 2015, 3:53:25 AM9/21/15
to AdWords API Forum, Walter Traspadini
Hello Anthony,

I can send to you here the request and response. It's not a secret. I just removed from the request my developer token:

Request

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Header>
<tns:RequestHeader>
<tns:clientCustomerId>402-453-8112</tns:clientCustomerId>
<tns:developerToken>xxxxxxxxxxxxx</tns:developerToken>
<tns:userAgent>python (AwApi-Python, googleads/3.7.0, Python/2.7.5)</tns:userAgent>
<tns:validateOnly>false</tns:validateOnly>
<tns:partialFailure>false</tns:partialFailure>
</tns:RequestHeader>
</SOAP-ENV:Header>
<ns0:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand>
<ns1:googleClickId>CJ7A0_6K_scCFcWVGwodyB8IHA</ns1:googleClickId>
<ns1:conversionName>First Payment</ns1:conversionName>
<ns1:conversionTime>20150917 150000</ns1:conversionTime>
<ns1:conversionValue>1</ns1:conversionValue>
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</ns0:Body>
</SOAP-ENV:Envelope>


Response



<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<requestId>0005203cfb41a8400a819e47d0027667</requestId>
<serviceName>OfflineConversionFeedService</serviceName>
<methodName>mutate</methodName>
<operations>1</operations>
<responseTime>25</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>
[OperationAccessDenied.ACTION_NOT_PERMITTED @ class com.google.ads.api.serviceimpls.campaignmgmt.conversiontracking.offlinecon]
</faultstring>
<detail>
<message>
[OperationAccessDenied.ACTION_NOT_PERMITTED @ class com.google.ads.api.serviceimpls.campaignmgmt.conversiontracking.offlinecon]
</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>


I am using the python code example listed in this page:



Please help me to sort out this issue since the request looks fine to me so I can't understand the error.

Thanks,

Walter

Anthony Madrigal

unread,
Sep 21, 2015, 10:24:09 AM9/21/15
to AdWords API Forum, wal...@sailogy.com
Hello Walter,

When you are adding a ConversionTracker, please make sure you meet the following conditions. I noticed that the clientCustomerId in your header belongs to an MCC account. Try to change it to the client account which the ConversionTracker belongs to.

Regards,
Anthony
AdWords API Team

Walter Traspadini

unread,
Sep 21, 2015, 10:28:24 AM9/21/15
to Anthony Madrigal, AdWords API Forum, Sara Vigoni
Hello Anthony,

I sorted out the issue just before midday.

Now, it works pretty good to me.

Thank you very much for the support.

We are going to change our CMS in django admin and put this api call in production.

Cheers,

Walter Traspadini
Reply all
Reply to author
Forward
0 new messages