Hi dotnetprogrammer,
all language and country codes are described at
http://www.google.com/apis/adwords/developer/adwords_api_geotarget.html
These give you the codes and labels for your dialog boxes.
There is no programmable way to get this data from our side, which
makes sense since these are constants and not subject to change (for
the time scales we're interested in, 10 years: I don't want to reopen
the "end of history" debate from a few years ago, I haven't read nor
endorse Fukuyama :-)
So you can populate your dialog boxes with these hardcoded values that
you can find on the web site without any remorse:-)
Do such prepopulated boxes exist in
VB.NET? I don't think so but that
would be a nice open source project to create:-)
In the java open source client library for Adwords that we released a
few months ago,
http://www.google.com/apis/adwords/javaclient.html,
there are no enumeration defined for these types (from
CampaignServiceDemo.java in that project).
// Target the campaign at France and Spain.
// Only one kind of geotargeting can be specified.
GeoTarget g_target = new GeoTarget();
String[] countries = {"FR", "ES"};
// g_target.setRegions(regions);
g_target.setCountries(countries);
newCampaign.setGeoTargeting(g_target);
// Target the campaign at English, French and Spanish.
LanguageTarget l_target= new LanguageTarget();
String[] languages = {"en", "fr", "es"};
l_target.setLanguages(languages);
newCampaign.setLanguageTargeting(l_target);
I hope this helps.
P@
--
-- Patrick Chanezon, AdWords API evangelist
http://blog.chanezon.com/
http://www.google.com/apis/adwords/