PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Identifiers of languages to target
  • 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
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
Checks the validity of several Google AdWords ads. This function checks whether the ads comply with the use conditions of the service.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..DeveloperToken = "ABcdeFGH93KL-NOPQ_STUv"
Cnt..ApplicationToken = "ZYXwvu-TSR123_456ABCDE"
Cnt..SandboxMode = True

// Create an ad
ad is gglAdWTextAd
ad..GroupIdentifier = 123
ad..DescriptionLine1 = "WinDev is great"
...
ad..Title = "My ad"

// Check the ad
MyArray is array of Variant
Add(MyArray, ad)
Target is gglAdWGeoTarget
Target..TargetAll = True
Err is array of gglAdWError
Err = GglAdWCheckAd(Cnt, MyArray, "us", Target)
Syntax
<Result> = GglAdWCheckAd(<AdWords Connection> , <Ads to Check> , <Languages> , <Geographical Targeting>)
<Result>: Array of gglAdWError variables
Name of array of gglAdWError variables containing the possible errors regarding the violation of use conditions.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Ads to Check>: Array of variants
Array of variants containing the ads to check. This array can contain the following types of objects:
<Languages>: Unicode character string (with quotes)
Languages targeted by the ads. The different languages must be separated by a space character.
<Geographical Targeting>: gglAdWGeoTarget variable
Name of gglAdWGeoTarget variable containing the parameters for geographical targeting.
Remarks

Identifiers of languages to target

The identifiers of 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 presents the list of supported languages ("Target criteria" column).

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