I'll admit that I'm just getting into this myself so I may be off
here, but:

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

First of all, you need to use LanguageTargetSearchParameter to create
the parameter for the TargetingIdeaService, and use your language
target that you've created in there:

$languageTargetSearchParameter = new LanguageTargetSearchParameter();
$languageTargetSearchParameter->languageTargets =
array($languageService);

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

Second of all, the countryTargets property of the
CountryTargetSearchParameter doesn't take a string (like 'DE'), it
takes an array of CountryTargets:

$countryService->countryTargets = array(new CountryTarget('DE')); //
this should replace $countryService->countryTargets='DE';

... if you make those two changes, and make sure to change
$languageService to $languageTargetSearchParameter in the
searchParameters array, I believe that will get you where you want to
go.  Again, still new to this myself so there may be another
implementation error that I'm not aware of, but that should get you
started.

-Jason

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