Re: Get keywords return 0 keywords found

9 views
Skip to first unread message
Message has been deleted

Peter Oliquino

unread,
Aug 16, 2016, 1:50:47 AM8/16/16
to AdWords API Forum
Hi Abdurrahman,

Your soap request should look something similar to the one below :

<?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/v201607" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>XXX-XXX-XXXX</ns1:clientCustomerId>
            <ns1:developerToken>XXXXXXXXXX</ns1:developerToken>
            <ns1:userAgent>metesting (AwApi-Java, AdWords-Axis/2.17.0, Common-Java/2.17.0, Axis/1.4, Java/1.8.0-google-v7, jars, SelectorBuilder, SelectorField)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <get xmlns="https://adwords.google.com/api/adwords/cm/v201607">
            <serviceSelector>
                <fields>Id</fields>
                <fields>CriteriaType</fields>
                <fields>KeywordMatchType</fields>
                <fields>KeywordText</fields>
                <predicates>
                    <field>AdGroupId</field>
                    <operator>IN</operator>
                    <values>XXXXXXXXXXX</values>
                </predicates>
                <predicates>
                    <field>CriteriaType</field>
                    <operator>IN</operator>
                    <values>KEYWORD</values>
                </predicates>
            </serviceSelector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>

You may also refer to our GetKeywords example in .NET. Also, I noticed in your SOAP request and response that you are using your MCC account ID. Please use a client account ID instead of your MCC ID since information such as keywords are available only at client account level. I also removed your initial post due to this, since your MCC ID is considered sensitive information and was exposed in your attachment. Please refer to our forum posting guidelines for more information.

Additionally, I could see that you are currently using v201603. This version has been deprecated and will be sunset soon. I would strongly recommend to migrate to our latest version (v201607) to avoid any other issues.

Best regards,
Peter
AdWords API Team

Reply all
Reply to author
Forward
0 new messages