Hi.

In PHP:

<?
    $user = new AdWordsUser();

    // Log SOAP XML request and response.
    $user->LogDefaults();

    // Get the TargetingIdeaService.
    $targetingIdeaService = $user->GetTargetingIdeaService('v201008');

    $countryTarget = new CountryTarget('US', false);
    $countryTargetSearchParameter = new
CountryTargetSearchParameter();
    $countryTargetSearchParameter->countryTargets =
array($countryTarget);

    // Take look here !
    $monthSearchVolume = new GlobalMonthlySearchesSearchParameter(new
LongComparisonOperation('1000'));

    // Create seed keyword.
    $keyword = new Keyword();
    $keyword->text = 'mars cruise';
    $keyword->matchType = 'BROAD';

    // Create selector.
    $selector = new TargetingIdeaSelector();
    $selector->requestType = 'IDEAS';
    $selector->ideaType = 'KEYWORD';
    $selector->requestedAttributeTypes =
    array('KEYWORD', 'AVERAGE_TARGETED_MONTHLY_SEARCHES');

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

    // Create related to keyword search parameter.
    $relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter();
    $relatedToKeywordSearchParameter->keywords = array($keyword);

    // Create keyword match type search parameter to ensure unique
results.
    $keywordMatchTypeSearchParameter = new
KeywordMatchTypeSearchParameter();
    $keywordMatchTypeSearchParameter->keywordMatchTypes =
array('BROAD');

    // And here !
    $selector->searchParameters =
    array($relatedToKeywordSearchParameter,
$keywordMatchTypeSearchParameter, $countryTargetSearchParameter,
$monthSearchVolume);

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

?>

If your language is not PHP - research this link
http://code.google.com/intl/ru-RU/apis/adwords/docs/reference/v201008/TargetingIdeaService.TargetingIdeaSelector.html

Regards,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to