OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS

147 views
Skip to first unread message

Juergen Henning

unread,
Feb 12, 2016, 7:28:07 AM2/12/16
to AdWords API Forum
Hi,

I have a problem mutating campaigns (and adgroups) for some of our customers. I got an error message (see below), and I don't know how to deal with. My assumption is, that the customer has rejected any kind of changes in the OAuth2 credentials. Is there any way to determine the ability to make changes via the api before the errors occurs?

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201509" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>xxx-xxx-xxxx</ns1:clientCustomerId>
            <ns1:developerToken>##</ns1:developerToken>
            <ns1:userAgent></ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <operations>
                <operator>SET</operator>
                <operand>
                    <id>238487682</id>
                    <trackingUrlTemplate>https://www.....</trackingUrlTemplate>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201509">
            <requestId>00052b8bec78b7400ac49484c907466b</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>mutate</methodName>
            <operations>5</operations>
            <responseTime>44</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201509">
                    <message>[OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS, OperationAccessDenied.SET_OPERATION_NOT_PERMITTED @ class campaignmgmt.campaign.MutateAction (SET) requires UPDATE_CAMPAIGNS]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OperationAccessDenied">
                        <fieldPath>operations[0]</fieldPath>
                        <trigger/>
                        <errorString>OperationAccessDenied.SET_OPERATION_NOT_PERMITTED</errorString>
                        <ApiError.Type>OperationAccessDenied</ApiError.Type>
                        <reason>SET_OPERATION_NOT_PERMITTED</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soapenv:Envelope>

Yin Niu

unread,
Feb 12, 2016, 10:44:47 AM2/12/16
to AdWords API Forum
Hello, 

It appears that you have read-only access to that account. You won't be able to check access level in API though.

Thanks,
Yin, AdWords API Team.   

Juergen Henning

unread,
Feb 12, 2016, 11:36:33 AM2/12/16
to AdWords API Forum
Hello Yin,

hmm - so I have to implement a workaround for this topic...

Thanks
Juergen
Reply all
Reply to author
Forward
0 new messages