Dear All,

I just tried this example PHP script :
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201008/GetRelatedKeywords.php

and add this line to get Country and Language more custom :

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

  // Create language service.
  $languageService = new LanguageTarget();
  $languageService->languageCode='de';
  $languageService->TargetType='de';

  // Create country service.
  $countryService = new CountryTargetSearchParameter();
  $countryService->countryTargets='DE';

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

then I also add this 2 variables on the selector and hopefully I got
keywords in German language :

  $selector->searchParameters =
      array($relatedToKeywordSearchParameter,
$keywordMatchTypeSearchParameter, $languageService, $countryService);


that's it... I didn't touch any other codes but here's the error what
I've got :

InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
[Ljava.lang.StackTraceElement;@7f03fc


anybody can help me to solve this problem? please...

Thanks!

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