How to load Campaign location and language settings to keyword targeting idea service function

85 views
Skip to first unread message

Yuechen Zhang

unread,
Nov 30, 2018, 6:48:46 AM11/30/18
to AdWords API and Google Ads API Forum
Hello Guys,

I am very new to Google AdWords API.

Currently, I am trying to get new related SQs from seed keywords.

However, for each seed keyword, I want to load different Language and location targetings, which is very trivial is I do it manually by feeding Location IDs and language IDs.

Therefore, is there anyway I can load the campaign location and language settings to the Targeting Idea Service call?

Many Thanks.

Bests,

Yuechen

Bharani Cherukuri (AdWords API Team)

unread,
Nov 30, 2018, 1:36:18 PM11/30/18
to AdWords API and Google Ads API Forum
Hello Yuechen, 

Welcome to AdWords!!

You will be able to use the TargetingIdeaService based on a number of inputs listed here. You may use the LocationSearchParameter and LanguageSearchParameter to target the Location and Language criteria. The API service will return results based on the different search parameters added to the selector. You may refer to the code samples available in different languages here.

Thanks,
Bharani, AdWords API Team

Yuechen Zhang

unread,
Dec 1, 2018, 3:47:30 AM12/1/18
to AdWords API and Google Ads API Forum
Hi Bharani,

Thanks for your reply.

Yea, I looked into these parameters yesterday, they are awesome, but is there something like, feeding the campaign id to the call, and it will automatically load the location parameter and language parameter from the campaign's setting?

Bests,

Yuechen

Bharani Cherukuri (AdWords API Team)

unread,
Dec 3, 2018, 2:30:33 PM12/3/18
to AdWords API and Google Ads API Forum
Hello Yuechen,

I'm afraid, it is currently not possible to pull the Targeting ideas based on the campaign Id and its targeting criteria. The closest we have is giving the Ad Group ID and retrieve the targeting ideas. You may refer to this guide as a reference for this.

Yuechen Zhang

unread,
Dec 4, 2018, 3:42:50 AM12/4/18
to AdWords API and Google Ads API Forum
Hi Bharani,

For the 'seeding with adgroup ID', it uses keywords in adgroups, rather than given keywords from the parameter settings as the seed keywords right?

Also, does it load the targeting criteria of the given adgroup?

Bests,

Yuechen

Bharani Cherukuri (AdWords API Team)

unread,
Dec 4, 2018, 3:49:15 PM12/4/18
to AdWords API and Google Ads API Forum
Hello Yuechen, 

If you're specifying the AdGroup Id as the search parameter, the AdGroup would be used as a seed for generating new ideas. For example, an AdGroup's keywords would be used to generate new and related keywords. Please check this reference guide for a better idea. Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team

Reply all
Reply to author
Forward
0 new messages