From Google:
At the AdWords API v201109 workshop event in New York City, Google Developer Advocate Aaron Karp gives a talk on the recent campaign targeting changes. Slides for this presentation are available at http://goo.gl/8PIzz.
9. New CriteriaIds
PlatformName CriteriaId
Desktop 30000
HighEndMobile 30001
Tablet 30002
LanguageName LanguageCode CriteriaId
English en 1000
German de 1001
Dutch nl 1010
http://code.google.com/apis/adwords/docs/appendix/languagecodes.html
http://code.google.com/apis/adwords/docs/appendix/platforms.html
18. Using the new Criteria
// Create locations. The IDs can be found in the documentation
// or retrieved with the LocationCriterionService.
$tablets = new Platform();
$tablets->id = 30002;
$campaignCriteria[] = new CampaignCriterion($campaignId, tablets);
$mexico = new Location();
$mexico->id = 2484;
$campaignCriteria[] = new CampaignCriterion($campaignId, $mexico);
...
// Create the operations
foreach ($campaignCriteria as $campaignCriterion) {
$operations[] =
new CampaignCriterionOperation($campaignCriterion, 'ADD');
}
...
// Make the mutate request
$result = $campaignCriterionService->mutate($operations);
...