Java: Type mismatch: cannot convert from SeedAdGroupIdSearchParameter to SearchParameter

9 views
Skip to first unread message

maarte...@live.nl

unread,
Nov 17, 2015, 3:54:53 PM11/17/15
to AdWords API Forum
Hi all,

I'm trying to run the SeedAdGroupIdSearchParameter function with the TargetingIdeaSelector using Java.

Long adGroupId = Long.parseLong("your-adgroup-ID");
SeedAdGroupIdSearchParameter seedAdGroupIdSearchParameter =
       new SeedAdGroupIdSearchParameter(null, adGroupId);

selector.setSearchParameters(new SearchParameter[] {seedAdGroupIdSearchParameter});

I'm constantly getting the error message: "Type mismatch: cannot convert from SeedAdGroupIdSearchParameter to SearchParameter"
which I can't resolve.

Similar scripts using the TargetingIdeaSelecter are working correctly.
Spending hours on it already, so help would be highly appreciated!

Any suggestions?

Cheers,
Maarten

Umesh Dengale

unread,
Nov 17, 2015, 5:35:53 PM11/17/15
to AdWords API Forum
Hi Maarten,

Could you please check the selector is of type TargetingIdeaSelector?  Please check out GetKeywordIdeas Java example from the client library.

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