Please help me here, I have no idea how to get getBulkTargetIdeas to work without erroring out. I've had no problems getting keywords from a simple get, but I can't get getBulkTargetIdeas to work
I am trying to call getBulkTargetIdeas to get related keywords in bulk but I keep getting errors [message:protected] => [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ selector.selector.searchParameters[1]; trigger:'KeywordMatchType'] This is my code $selector = new TargetingIdeaSelector(); $selector->requestType = 'IDEAS'; $selector->ideaType = 'KEYWORD'; $url = 'www.google.com'; $paging = new Paging(); $paging->startIndex = 0; $paging->numberResults = 10; $selector->paging = $paging; $relatedToKeywordSearchParameter = new RelatedToUrlSearchParameter(); $relatedToKeywordSearchParameter->urls = array($url); $keywordMatchTypeSearchParameter = new KeywordMatchTypeSearchParameter(); $keywordMatchTypeSearchParameter->keywordMatchTypes = array($type); $keywordMatchTypeSearchParameter->keywords = array($mykeyword); $selector->searchParameters = array($relatedToKeywordSearchParameter, $keywordMatchTypeSearchParameter); $selector->requestedAttributeTypes = array('KEYWORD', 'AVERAGE_TARGETED_MONTHLY_SEARCHES'); $page = $targetingIdeaService->getBulkKeywordIdeas($selector); ----- - When I call this: I get the soap error I mentioned above $selector->searchParameters = array($relatedToKeywordSearchParameter, $keywordMatchTypeSearchParameter); - If I try only passing the keyword parameter, I get another SOAP error $selector->searchParameters = array($keywordMatchTypeSearchParameter); [TargetingIdeaError.INSUFFICIENT_SEARCH_PARAMETERS @ selector.selector, TargetingIdeaError.INSUFFICIENT_SEARCH_PARAMETERS @ selector.selector.searchParameters] - and if I only pass $selector->searchParameters = array($relatedToKeywordSearchParameter), I don't get the keyword results I'm after and another question, afaik RelatedToUrlSearchParameter is required for bulk calls, and RelatedToUrlSearchParameter cannot be null. How could I get keywords from any URL while using getBulkKeywordIdeas? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en