We are unable to link a contact based audience to the ad group. The 
following the SOAP request and response. Could you please help?

SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/v201809"; 
soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>133-941-2293</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>PMM Test Account (AwApi-Java, 
AdWords-Axis/4.1.0, Common-Java/4.1.0, Axis/1.4, Java/1.8.0_201, 
maven)</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/v201809";>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns2="
https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns2:BiddableAdGroupCriterion">
                    <ns2:adGroupId>64826395566</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:CriterionUserList">
                        <ns2:userListId>759790067</ns2:userListId>
                    </ns2:criterion>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>

[31 Jan 2019 16:45:47,787-soapXmlLogger:INFO:main] SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader xmlns="
https://adwords.google.com/api/adwords/cm/v201809";>
            <requestId>000580bf25f3026e0a6293981602b8b2</requestId>
            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>146</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            
<faultstring>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE 
@ operations[0].operand.criterion.userListId; 
trigger:'759790067']</faultstring>
            <detail>
                <ApiExceptionFault xmlns="
https://adwords.google.com/api/adwords/cm/v201809";>
                    
<message>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE 
@ operations[0].operand.criterion.userListId; trigger:'759790067']</message>
                    
<ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:type="OperationAccessDenied">
                        
<fieldPath>operations[0].operand.criterion.userListId</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>criterion</field>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>userListId</field>
                        </fieldPathElements>
                        <trigger>759790067</trigger>
                        
<errorString>OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE</errorString>
                        <ApiError.Type>OperationAccessDenied</ApiError.Type>
                        
<reason>OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Request failed due to ApiException. Underlying ApiErrors:
  Error 0: OperationAccessDenied{apiErrorType=OperationAccessDenied, 
errorString=OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, 
fieldPath=operations[0].operand.criterion.userListId, 
fieldPathElements=[FieldPathElement{field=operations, index=0}, 
FieldPathElement{field=operand}, FieldPathElement{field=criterion}, 
FieldPathElement{field=userListId}], 
reason=OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, trigger=759790067}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/3e03bcc8-f558-4900-9979-812799a3f2e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Unable ... Srinivas Giduthuri
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Srinivas Giduthuri
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... Srinivas Giduthuri
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... Srinivas Giduthuri
      • ... nitin . n . gupta
      • ... nitin . n . gupta
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to