just add more elements to the array
like:

 $keyword = new Keyword();
 $keyword->text = 'sample phrase';
 $keyword->matchType = 'EXACT';
 $k2 = new Keyword();
 $k2->text = 'other sample phrase';    // ensure to not repeat keywords
 $k2->matchType = 'EXACT';

 $keyword_array = array($keyword, $k2);







2010/5/2 Phenix <[email protected]>:
> Hello,
>
> I'm new on Google Adwords API and i would like to get the targeted
> monthly searches for keywords. I've managed to get this statistic with
> this code (PHP with client library) :
>
>  (...)
>  $targetingIdeaService = $user->GetTargetingIdeaService('v200909');
>
>  // Create seed keyword.
>  $keyword = new Keyword();
>  $keyword->text = 'sample phrase';
>  $keyword->matchType = 'EXACT';
>
>  $keyword_array = array($keyword);
>
>  $relatedToKeywordSearchParameter = new
> RelatedToKeywordSearchParameter($keyword_array);
>
>  $countryTargetSearchParameter = new CountryTargetSearchParameter();
>  $countryTargetSearchParameter->countryTargets = array(new
> CountryTarget("FR"));
>
>  $languageTargetSearchParameter = new
> LanguageTargetSearchParameter();
>  $languageTargetSearchParameter->languageTargets = array(new
> LanguageTarget("fr"));
>
>  $targetingIdeaSelector = new TargetingIdeaSelector();
>  $targetingIdeaSelector->searchParameters = array(
>        $relatedToKeywordSearchParameter,
>        $countryTargetSearchParameter,
>        $languageTargetSearchParameter
>    );
>
>  $targetingIdeaSelector->ideaType = 'KEYWORD';
>  $targetingIdeaSelector->requestType = 'STATS';
>  $targetingIdeaSelector->requestedAttributeTypes =
> array('KEYWORD','AVERAGE_TARGETED_MONTHLY_SEARCHES','TARGETED_MONTHLY_SEARCHES');
>  $targetingIdeaSelector->paging = new Paging(0,800);
>
>  $keywordPage = $targetingIdeaService->get($targetingIdeaSelector);
>
> I would like to get the same data for a group of keywords (keyword1,
> keyword2, ...) in one api call. First of all, is it possible? I saw
> some doc on bulks but i think this is to manage a lot of api calls, i
> don't know if it can helps me.
>
> Thanks a lot for your help,
>
> Best regards,
>
> Nicolas
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 [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
>

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