PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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
GglAdWListSiteByDemographics (Function)
In French: GglAdWListeSiteParDémographie
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
Lists the suggestions of Web sites corresponding to the specified demographics criteria. Then, you will be able to position the Google AdWords ads on these sites.
Note: This function uses the tool for location targeting and the "Google AdWords Site Suggestion" service.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..SandboxMode = True

// Retrieve the site suggestions
MyGeoTargeting is gglAdWLanguageGeoTargeting
MyGeoTargeting..Language = "FR"
MyDemoTargeting is gglAdWDemographicsTarget
MyDemoTargeting..Gender = "MaleOnly"
arrSuggestion is array of gglAdWSiteSuggestion
arrSuggestion = GglAdWListSiteByDemographics(Cnt, MyDemoTargeting, MyGeoTargeting)
Syntax
<Result> = GglAdWListSiteByDemographics(<AdWords Connection> , <Demographic Targeting> , <Geographical and Linguistic Targeting>)
<Result>: Array of gglAdWSiteSuggestion variables
Name of array of gglAdWSiteSuggestion variables containing the site suggestions corresponding to the specified criteria.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Demographic Targeting>: gglAdWDemographicsTarget variable
Name of gglAdWDemographicsTarget variable containing the data for demographics targeting to use.
<Geographical and Linguistic Targeting>: gglAdWLanguageGeoTargeting variable
Name of gglAdWLanguageGeoTargeting variable containing the data for geographical and language targeting to use.
Remarks

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