retrieve keyword ideas in bulk - using AdWords API / TargetingIdeaService

361 views
Skip to first unread message

javier...@woow.com.uy

unread,
Nov 25, 2016, 1:30:50 AM11/25/16
to AdWords API Forum

I've been able to setup an access to Google Adwords API to get Keyword Ideas from one seed keyword.

I need to go trough our DB to obtain keywords ideas to all the entries (to be used as meta tags...)

Do I have to loop and access the API once for each keyword? Or is there any way to grab these in bulk mode?

I've found info about getBulkKeywordIdeas but it's depecrated since v201409 [https://developers.google.com/adwords/api/docs/reference/archived-release-notes] where it states:

TargetingIdeaService.getBulkKeywordIdeas was removed, use the get method instead

I can't figure out how to use the GET method in bulk mode - or if this is not intended to be used this way...

/thanks

/javier

Peter Oliquino

unread,
Nov 25, 2016, 2:27:46 AM11/25/16
to AdWords API Forum
Hi Javier,

The TargetingIdeaService.get will still provide you your expected results. As mentioned in the document, however, you will also need to implement Paging as large result require to be compressed through multiple calls using this method. You may refer to our targeting ideas guide and our GetKeywordIdeas exampe (other languages are also available in the link) for more information. I hope this helps and please let me know if you have any other concerns.

Thanks and regards,
Peter
AdWords API Team

javier...@woow.com.uy

unread,
Nov 25, 2016, 8:50:14 AM11/25/16
to AdWords API Forum
Hi Peter,
thanks for a quick answer!
Unfortunately id does not help me (maybe I'm not clear enough):

your examples are all about ONE keyword (or several keywords related to ONE entity) and how to make an API call to retrieve ideas for that keyword.

Your example (in PHP) states something like this:
RelatedToQuerySearchParameter relatedToQuerySearchParameter =
   
new RelatedToQuerySearchParameter();
relatedToQuerySearchParameter
.setQueries(new String[]
   
{"bakery", "pastries", "birthday cake"});

What I understand these keywords are all related to the same "entity" for which it tries to retrieve ideas...

The Paging is about how many ideas I want to retrieve, right? (I only want 5)


We are running an e-commerce site and have 10k deals. Do we need to make an API call for each deal?


thanks again
/best regards
/javier

Michael Cloonan (AdWords API Team)

unread,
Nov 28, 2016, 9:04:09 AM11/28/16
to AdWords API Forum
Hello,

Each call to the TargetingIdeaService is only able to provide results for a single separate query. If you have 10k unique entities that each require separate contexts for the TargetingIdeaService, then unfortunately, yes, you will need to make 10k different calls.

Regards,
Mike, AdWords API Team

javier...@woow.com.uy

unread,
Nov 28, 2016, 1:52:57 PM11/28/16
to AdWords API Forum
Hie Mike,
thanks for reaching out.
I've implemented it that way now (one call for each deal).

But I would like to be certain about one thing you mention:
quote "unique entities that each require separate contexts for the TargetingIdeaService"

I am creating one TargetingIdeaService and  reusing it while I iterate my deals changing the keyword passed as parameter in RelatedToQuerySearchParameter->queries .

Is this a correct use of TargetingIdeaService ?
Does this imply that theses entities are using "separate contexts" as you name it?


Also I would like to know what is the default order in the keywords ideas list I'm retrieving, compared to Keyword Planner which order these by relevance...


Thanks again
/best
/javier

Michael Cloonan (AdWords API Team)

unread,
Nov 28, 2016, 2:47:00 PM11/28/16
to AdWords API Forum
Hello,

Yes, this is a correct usage. Each get request to the TargetingIdeaService is treated independently. You can use the same instance of TargetingIdeaService in your local code for each request.

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