AttributePrefixUnbound?v:searchParameters

58 views
Skip to first unread message

18824...@163.com

unread,
Mar 5, 2018, 4:22:33 AM3/5/18
to AdWords API Forum
Hi,
   I want to implement the 'Get keyword ideas' with Node.

And I got a problem,This is my code. I want know where is my mistake,And what's the specific method of 'Get keyword ideas'.
    <x:Header>
        <v:RequestHeader>
            <cm:clientCustomerId>XXX-XXX-XXX</cm:clientCustomerId>
            <cm:developerToken>XXXXXXXXXX</cm:developerToken>
            <cm:userAgent>test</cm:userAgent>
            <cm:validateOnly>false</cm:validateOnly>
            <cm:partialFailure>false</cm:partialFailure>
        </v:RequestHeader>
    </x:Header>
    <x:Body>
        <v:get>
            <v:selector>
                <v:searchParameters xmlns:ns2="https://adwords.google.com/api/adwords/o/v201802" xsi:type="ns2:RelatedToQuerySearchParameter">
                    <v:queries>bakery</v:queries>
                    <v:queries>pastries</v:queries>
                    <v:queries>birthday cake</v:queries>
                </v:searchParameters>
                <v:ideaType>KEYWORD</v:ideaType>
                <v:requestType>IDEAS</v:requestType>
                <v:requestedAttributeTypes>AVERAGE_CPC</v:requestedAttributeTypes>
                <v:requestedAttributeTypes>KEYWORD_TEXT</v:requestedAttributeTypes>
                <v:requestedAttributeTypes>SEARCH_VOLUME</v:requestedAttributeTypes>
            </v:selector>
        </v:get>
    </x:Body>
</x:Envelope>

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 5, 2018, 3:00:20 PM3/5/18
to AdWords API Forum
Hi, 

To get the keyword ideas, you could use the TargetingIdeaService and specify the request type as "IDEAS". Please check this guide for more details about the service. You need to include the following name space in your SOAP envelope : "xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance". You will also need to set the Paging which is a required attribute for the TargetingIdeaService. Please find the complete SOAP logs attached for your reference. The code samples for this service can be found here

Thanks,
Sreelakshmi, AdWords API Team
request_SOAP.xml

18824...@163.com

unread,
Mar 6, 2018, 1:57:19 AM3/6/18
to AdWords API Forum
Hi,
Thank you for your reply,And the 'request_SOAP.xml' is worked.
However the Keywords in 'response_soap.xml' are different with the picture,And I don't get the 'Relevance' field in the 'response_soap.xml'.
At last I do not know how to enter a related website with 'request_soap.xml'
request_soap.xml
response_soap.xml

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 6, 2018, 11:35:48 AM3/6/18
to AdWords API Forum
Hi, 

Could you please confirm if the screenshot shared corresponds to the Keyword Planner tool of the AdWords UI? If so, could you share a screenshot with the complete UI view? 

The TargetingIdeaService will help you achieve similar goals as Keyword Planner in the AdWords API. This service allows you to retrieve targeting ideas from your own tool/platform to help automate account optimization.The Search Parameters that can be set using the TargetingIdeaService are the ones listed here. To set a search parameter that specifies a set of URLs in which the results should in some way be related to, you could use RelatedToUrlSearchParameter. The response of this service can contain any of the keys and its corresponding values specified here. Relevance is not one of the attributes that this service returns. 

If the screenshot is from any third party tool, my suggestion is to reach-out to the customer care of that tool. If you have any further questions specific to AdWords API, please let me know. 

18824...@163.com

unread,
Mar 6, 2018, 10:01:13 PM3/6/18
to AdWords API Forum
Hi,
The screenshot shared is part of the AdWords Create UI.
 Here is the complete UI view.
first_step.PNG
second_step.PNG

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Mar 7, 2018, 11:10:40 AM3/7/18
to AdWords API Forum
Hi, 

Thank you for sharing the screenshots. I see that you are creating a Display campaign and trying to get the keyword ideas as shown in that UI view. The TargetingIdeaService in AdWords API is analogous to the Keyword Planner in the UI, which can be used to get keyword ideas for Search Network Campaigns. The TargetingIdeaService cannot be used to get estimates or targeting ideas for display campaigns in a similar manner as the results might not include stats for display network. There might not be a way to get keyword ideas for Display Network using AdWords API at the moment. You could try using the Display Planner to get targeting ideas for your Display Network Campaigns. 

Please keep an eye on our blog for any updates or announcements about this feature. 

18824...@163.com

unread,
Mar 7, 2018, 10:12:04 PM3/7/18
to AdWords API Forum
Hi,
I understand, thank you for your help
Reply all
Reply to author
Forward
0 new messages