Hi there.

I tried to add a criterion to the existing adgroup using raw SOAP queries. 
When I try to add the keyword criterion it returns 
me [AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand]. 
But when I add any other criterion it works as well.

My SOAP request is:
<s11:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:s11="http://schemas.xmlsoap.org/soap/envelope/";>
    <s11:Header>
        <ns1:RequestHeader 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809";>
            <ns1:clientCustomerId>xxxxxxxxxx</ns1:clientCustomerId>
            <ns1:developerToken>xxxxxxxxxx</ns1:developerToken>
            <ns1:userAgent>xxxxxxxxxx</ns1:userAgent>
            <ns1:validateOnly>xxxxxxxxxx</ns1:validateOnly>
            <ns1:partialFailure>xxxxxxxxxx</ns1:partialFailure>
        </ns1:RequestHeader>
    </s11:Header>
    <s11:Body>
        <ns1:mutate 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809";>
            <ns1:operations>
                <ns1:operator>ADD</ns1:operator>
                <ns1:operand>
                    <ns1:adGroupId>82965021580</ns1:adGroupId>
                    <ns1:criterion 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"; 
xsi:type="ns2:Keyword">
                        <ns2:text>title1</ns2:text>
                        <ns2:matchType>EXACT</ns2:matchType>
                    </ns1:criterion>
                </ns1:operand>
            </ns1:operations>
        </ns1:mutate>
    </s11:Body>
</s11:Envelope>

SOAP response is:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
            <requestId>000596975d436e9c0ac7c2c31304c51a</requestId>
            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>140</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>[AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ 
operations[0].operand]</faultstring>
            <detail>
                <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
                    <message>[AdGroupCriterionError.CONCRETE_TYPE_REQUIRED 
@ operations[0].operand]</message>
                    
<ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="AdGroupCriterionError">
                        <fieldPath>operations[0].operand</fieldPath>
                        <fieldPathElements>
                            <field>operations</field>
                            <index>0</index>
                        </fieldPathElements>
                        <fieldPathElements>
                            <field>operand</field>
                        </fieldPathElements>
                        <trigger></trigger>
                        
<errorString>AdGroupCriterionError.CONCRETE_TYPE_REQUIRED</errorString>
                        <ApiError.Type>AdGroupCriterionError</ApiError.Type>
                        <reason>CONCRETE_TYPE_REQUIRED</reason>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Can you please give me a right SOAP object for that query?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/50d36711-8715-4fdb-987b-4daf5e18444c%40googlegroups.com.
  • AdGroupCriteri... 'Dmitry Omelyusik' via AdWords API and Google Ads API Forum
    • RE: AdGro... Google Ads API Forum Advisor Prod
      • Re: A... 'Dmitry Omelyusik' via AdWords API and Google Ads API Forum

Reply via email to