PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Code of languages
  • Code of countries
  • Possible error cases:
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
GglAdWGetKeywordVariation (Function)
In French: GglAdWRécupèreVariationMotClé
Warning
From version 17, this feature is not available anymore. To use Google AdWords, see the corresponding Google API: https://developers.google.com/adwords/api/docs/guides/start
Retrieves the variations (or suggestions) for the specified keywords. You also have the ability to retrieve the synonyms. This function is using the keyword generator and it allows you to get keyword suggestions for your ads.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..SandboxMode = True

arrKeyword is array of gglAdWSeedKeyword
Keyword is gglAdWSeedKeyword
Keyword..Text = "WinDev"
Keyword..Type = "Exact"
Add(arrKeyword, Keyword)
MyLanguages is array of strings
Add(MyLanguages, "fr-fr")
MyCountries is array of strings
Add(MyCountries, "FR")
Variations is gglAdWKeywordVariationsCollection
Variations = GglAdWGetKeywordVariation(Cnt, arrKeyword, False, MyLanguages, MyCountries)
Var is gglAdWKeywordVariation
FOR EACH Var OF Variations..AdditionalToConsider
Trace(Var..Text)
END
Syntax
<Result> = GglAdWGetKeywordVariation(<AdWords Connection> , <Source Keywords> , <Synonyms> , <Languages> , <Country>)
<Result>: gglAdWKeywordVariationsCollection variable
Name of gglAdWKeywordVariationsCollection variable containing the variations of specified keywords.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Source Keywords>: Array of gglAdWSeedKeyword variable
Name of gglAdWSeedKeyword variable containing the source keywords. The keyword generator will propose variations for these keywords. The maximum number of proposed source keywords is set to 10.
<Synonyms>: Boolean
  • True to include the synonyms in the variations of keywords,
  • False otherwise.
<Languages>: Array variable
Array of string containing the codes of the languages for which the keywords will be generated. This parameter corresponds to the languages used by the ads for which the keywords must be generated. See the Notes for more details.
<Country>: Array variable
Array of strings containing the codes of the countries for which the keywords will be generated. This parameter corresponds to the recipient countries of the ads for which the keywords must be generated. See the Notes for more details.
Remarks

Code of languages

The identifiers of the languages to target are as follows:
Identifier - LanguageIdentifier - Language
"ar" - Arabic"bg" - Bulgarian
"ca" - Catalan"cs" - Czech
"da" - Danish"de" - German
"el" - Greek"en" - English
"es" - Spanish"et" - Estonian
"fi" - Finnish"fr" - French
"hi" - Hindi"hr" - Croatian
"hu" - Hungarian"id" - Indonesian
"is" - Icelandic"it" - Italian
"iw" - Hebrew"ja" - Japanese
"ko" - Korean"lt" - Lithuanian
"lv" - Latvian"nl" - Dutch
"no" - Norwegian"pl" - Polish
"pt" - Portuguese"ro" - Romanian
"ru" - Russian"sk" - Slovak
"sl" - Slovenian"sr" - Serbian
"sv" - Swedish"tl" - Filipino
"th" - Thai"tr" - Turkish
"uk" - Ukrainian"ur" - Urdu
"vi" - Vietnamese"zh_CN" - Simplified Chinese
"zh_TW" - Traditional Chinese
This list is the one supported when this documentation was published. To find out the exhaustive list of supported languages, see http://code.google.com/intl/en/apis/adwords/docs/developer/adwords_api_languages.html that displays the list of supported languages ("Target criteria" column).

Code of countries

The codes of countries are as follows (ISO 3166-1 standard):
Identifier - CountryIdentifier - CountryIdentifier - Country
AD - AndorraAE - United Arab EmiratesAF - Afghanistan
AG - Antigua and BarbudaAI - AnguillaAL - Albania
AM - ArmeniaAN - Netherlands AntillesAO - Angola
AQ - AntarcticAR - ArgentinaAS - American Samoa Islands
AT - AustriaAU - AustraliaAW - Aruba
AZ - AzerbaijanBA - Bosnia-HerzegovinaBB - Barbados
BD - BangladeshBE - BelgiumBF - Burkina Faso
BG - BulgariaBH - BahrainBI - Burundi
BJ - BeninBM - BermudaBN - Brunei
BO - BoliviaBR - BrazilBS - The Bahamas
BT - BhutanBV - Bouvet IslandBW - Botswana
BY - BelarusBZ - BelizeCA - Canada
CC - Cocos IslandsCD - Democratic Republic of CongoCF - Central African Republic
CG - CongoCH - SwitzerlandCI - Ivory Coast
CK - Cook IslandsCL - ChileCM - Cameroon
CN - ChinaCO - ColombiaCR - Costa Rica
CS - Serbia and MontenegroCV - Cape VerdeCX - Christmas Island
CY - CyprusCZ - Czech RepublicDE - Germany
DJ - DjiboutiDK - DenmarkDM - Dominica
DO - Dominican RepublicDZ - AlgeriaEC - Ecuador
EE - EstoniaEG - EgyptEH - West Sahara
ER - EritreaES - SpainET - Ethiopia
FI - FinlandFJ - FijiFK - Falkland Islands
FM - MicronesiaFO - Faroe IslandsFR - France
GA - GabonGB - Great BritainGD - Grenada
GE - GeorgiaGF - French GuyanaGH - Ghana
GI - GibraltarGL - GreenlandGM - Gambia
GN - GuineaGP - GuadeloupeGQ - Equatorial Guinea
GR - GreeceGS - South Georgia and the South Sandwich IslandsGT - Guatemala
GU - GuamGW - Guinea-BissauGY - Guyana
HK - Hong KongHM - Heard Island and MacDonald IslandsHN - Honduras
HR - CroatiaHT - HaitiHU - Hungary
ID - IndonesiaIE - IrelandIL - Israel
IN - IndiaIO - British Indian Ocean TerritoryIQ - Iraq
IS - IcelandIT - ItalyJM - Jamaica
JO - JordanJP - JapanKE - Kenya
KG - KyrgyzstanKH - CambodiaKI - Kiribati
KM - ComorosKN - St. Kitts and NevisKR - South Korea
KW - KuwaitKY - Cayman IslandsKZ - Kazakhstan
LA - Democratic Republic of LaosLB - LebanonLC - St. Lucia
LI - LiechtensteinLK - Sri LankaLR - Liberia
LS - LesothoLT - LithuaniaLU - Luxembourg
LV - LatviaLY - LibyaMA - Morocco
MC - MonacoMD - MoldovaMG - Madagascar
MH - Marshall IslandsMK - MacedoniaML - Mali
MO - MacauMP - Northern Mariana IslandsMQ - Martinique
MR - MauritaniaMS - MontserratMT - Malta
MU - Mauritius IslandMV - MaldivesMW- Malawi
MX - MexicoMY - MalaysiaMZ - Mozambique
NA - NamibiaNC - New CaledoniaNE - Niger
NF - Norfolk IslandNG - NigeriaNI - Nicaragua
NL - NetherlandsNO - NorwayNP - Nepal
NR - NauruNU - NiueNZ - New Zealand
OM - OmanPA - PanamaPE - Peru
PF - French PolynesiaPG - Papua New GuineaPH - Philippines
PK - PakistanPL - PolandPM - St. Pierre and Miquelon
PN - Pitcairn IslandsPR - Puerto RicoPS - Palestinian Territory
PT - PortugalPW - PalauPY - Paraguay
QA - QatarRE - ReunionRO - Romania
RU - RussianRW - RwandaSA - Saudi Arabia
SB - Solomon IslandsSC - SeychellesSE - Sweden
SG - SingaporeSH - St. HelenaSI - Slovenia
SJ - Svalbard and Jan MayenSK - SlovakiaSL - Sierra Leone
SM - San MarinoSN - SenegalSO - Somalia
SR - SurinameST - Sao Tome and PrincipeSV - El Salvadore
SZ - SwazilandTC - Turks and Caicos IslandsTD - Chad
TF - French Southern LandsTG - TogoTH - Thailand
TJ - TajikistanTK - TokelauTL - East Timor
TM - TurkmenistanTN - TunisiaTO - Tonga
TR - TurkeyTT - Trinidad and TobagoTV - Tuvalu
TW - TaiwanTZ - TanzaniaUA - Ukraine
UG - UgandaUM - United States Minor Outlying IslandsUS - Unites States
UY - UruguayUZ - UzbekistanVA - Vatican City
VC - St. Vincent and the GrenadinesVE - VenezuelaVG - British Virgin Islands
VI - US Virgin IslandsVN - Viet NamVU - Vanuatu
WF - Wallis and FutunaWS - SamoaYE - Yemen
YT - MayotteZA - South AfricaZM - Zambia
ZW - Zimbabwe
This list is the one supported when this documentation was published. To find out the exhaustive list of supported countries, see http://code.google.com/intl/en/apis/adwords/docs/developer/adwords_api_countries.html.

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable.
Components
WINDEVWEBDEV - Server code wd160ggl.dll
Windows Mobile wp160ggl.dll
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment