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
/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <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>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201509";>
            <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>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/1f68f388-1680-4446-8616-6c43457fe679%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to