I was using v13 to get keywords ideas from urls (frequently) and am
struggling with the new methods.

I'm getting the error message INSUFFICIENT_SEARCH_PARAMETERS when I
used the following php code:
I suspect I haven't defined RelatedToUrlSearchParameter properly.  Any
help would be greatly appreciated.

 $selector = new TargetingIdeaSelector();
  $selector->requestType = 'IDEAS';
  $selector->ideaType = 'KEYWORD';
  $selector->RelatedToUrlSearchParameter = array
('','[target_site','false');
  $selector->requestedAttributeTypes = array('KEYWORD',
'GLOBAL_MONTHLY_SEARCHES');

  // Set selector paging (required for targeting idea service).
  $paging = new Paging();
  $paging->startIndex = 0;
  $paging->numberResults = 10;
  $selector->paging = $paging;

  // Get related keywords.
  $page = $targetingIdeaService->getBulkKeywordIdeas($selector);

 if (isset($page->entries)) {
    foreach ($page->entries as $targetingIdea) {
      $keyword = $targetingIdea->data[0]->value->value;
      $search_vol = $targetingIdea->data[1]->value->value;
        print 'Keyword with text "' . $keyword->text . '" and match
type "'
          . $keyword->matchType . "\" was found.  search vol:
$search_vol\n";
    }
  } else {
    print "No related keywords were found.\n";
  }
} catch (Exception $e) {
  print_r($e);

--

You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en.


Reply via email to