API for Keyword Search and Sample Java code with libraries

36 views
Skip to first unread message

rlved...@gmail.com

unread,
Jul 31, 2018, 5:12:56 AM7/31/18
to AdWords API and Google Ads API Forum
Hello,

When i logged in to the adword account and selecting the keywords and keyword planner ,it will navigate to keyword search.when i have searched for any keyword for example Java  it will fetch  almost 700 records per request.
Please find the attachment for the reference.
this is one of my business requirement.
is there any API for this?
is it possible to trigger this service directly with help of postman without using any client libraries ?
if not possible can i have client libraries and sample java code for this requirement.

Waiting for response,Thank you in advance:)

Regards,
Rajyalakshmi
 


Adword_Keyword_Search.PNG

Dhanya Sundararaju (AdWords API Team)

unread,
Jul 31, 2018, 3:26:38 PM7/31/18
to AdWords API and Google Ads API Forum
Hi Rajyalakshmi,

The TargetingIdeaService and TrafficEstimatorService can be used to retrieve targeting ideas and traffic estimates similar to Keyword Planner. The GetKeywordIdeas Java example shows how to retrieve keyword ideas and the EstimateKeywordTraffic Java example shows how to get keyword traffic estimates. 

You can also use the sample request below in postman with URL as https://adwords.google.com/api/adwords/o/v201806/TargetingIdeaService to pull up the information based on queries:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/o/v201806" soapenv:mustUnderstand="0">
            <ns2:clientCustomerId xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201806">*****</ns2:clientCustomerId>
            <ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201806">REDACTED</ns3:developerToken>
            <ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201806">unknown (AwApi-Java, AdWords-Axis/3.15.0, Common-Java/3.15.0, Axis/1.4, Java/1.8.0_151-google-v7, jars)</ns4:userAgent>
            <ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201806">false</ns5:validateOnly>
            <ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201806">false</ns6:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <selector>
                <searchParameters xmlns:ns7="https://adwords.google.com/api/adwords/o/v201806" xsi:type="ns7:RelatedToQuerySearchParameter">
                    <ns7:queries>hotels in roma</ns7:queries>
                </searchParameters>
                <searchParameters xmlns:ns8="https://adwords.google.com/api/adwords/o/v201806" xsi:type="ns8:NetworkSearchParameter">
                    <ns8:networkSetting>
                        <ns9:targetGoogleSearch xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201806">true</ns9:targetGoogleSearch>
                        <ns10:targetSearchNetwork xmlns:ns10="https://adwords.google.com/api/adwords/cm/v201806">false</ns10:targetSearchNetwork>
                        <ns11:targetContentNetwork xmlns:ns11="https://adwords.google.com/api/adwords/cm/v201806">false</ns11:targetContentNetwork>
                        <ns12:targetPartnerSearchNetwork xmlns:ns12="https://adwords.google.com/api/adwords/cm/v201806">false</ns12:targetPartnerSearchNetwork>
                    </ns8:networkSetting>
                </searchParameters>
                <ideaType>KEYWORD</ideaType>
                <requestType>STATS</requestType>
                <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
                <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
                <requestedAttributeTypes>AVERAGE_CPC</requestedAttributeTypes>
                <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
                <requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</requestedAttributeTypes>
                <paging>
                    <ns13:startIndex xmlns:ns13="https://adwords.google.com/api/adwords/cm/v201806">0</ns13:startIndex>
                    <ns14:numberResults xmlns:ns14="https://adwords.google.com/api/adwords/cm/v201806">10</ns14:numberResults>
                </paging>
            </selector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>

Please refer this API call structure guide to make direct calls without the client libraries. Please let me know if you have any further questions.

Regards,
Dhanya, AdWords API Team
Reply all
Reply to author
Forward
0 new messages