Hi,

I'm using the lastest adwords api v201209 with the php client software.

Using the same code in sandbox instead of the production server fails with 
the following message: Fatal error: Uncaught SoapFault exception: 
[soap:Server] [CriterionError.INVALID_CRITERION_ID @ 
selector.searchParameters[2].locations[0]; trigger:'2276']

In v201206 it still works in production and also in sandbox.

Greetings

$selector = new TargetingIdeaSelector();
$selector->requestType = 'STATS';
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'COMPETITION', 
'SEARCH_VOLUME');
$selector->localeCode = 'de_DE';
$selector->currencyCode = 'EUR';

$paging = new Paging();
$paging->startIndex = 0;
$paging->numberResults = 500;
$selector->paging = $paging;

$relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
$relatedToQuerySearchParameter->queries = $kwList;

$location = new Location();
$location->id = 2276; //2040

$locationSearchParameter = new LocationSearchParameter();
$locationSearchParameter->locations = array( $location );

$language = new Language();
$language->id = 1001;

$languageSearchParameter = new LanguageSearchParameter();
$languageSearchParameter->languages = array( $language );

$selector->searchParameters = 
array($relatedToQuerySearchParameter,$locationSearchParameter,$languageSearchParameter);

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