/**
* Test whether we can catch required search parameter error in selector.
*/
public void testGetAdTeypSearchParameter() throws Exception {
TargetingIdeaSelector selector = new TargetingIdeaSelector();
AdTypeSearchParameter adTypeSearchParameter = new AdTypeSearchParameter();
adTypeSearchParameter.setAdTypes(
new SiteConstantsAdType[] {SiteConstantsAdType.DISPLAY});
RelatedToUrlSearchParameter relatedToUrlSearchParameter =
new RelatedToUrlSearchParameter();
relatedToUrlSearchParameter.setUrls(new String[] {"http://news.google.com"});
selector.setSearchParameters(new SearchParameter[] {adTypeSearchParameter,
relatedToUrlSearchParameter});
selector.setIdeaType(IdeaType.PLACEMENT);
selector.setRequestType(RequestType.IDEAS);
Paging paging = new Paging(0, 1);
selector.setPaging(paging);
TargetingIdeaPage page = service.get(selector);
}