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
GglAdWGetUnitCountForClient (Function)
In French: GglAdWRécupèreNbUnitéParClient
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
Returns the number of free API units used by each client of a Google AdWords multi-account account during the specified period.
Note: In this case, the AdWords connection must have been established with the AdWords multi-account.
Example
// Connection to Google
Cnt is gglAdWConnection
Cnt..Email = "vince@gmail.com"
Cnt..Password = "azerty"
Cnt..UserAgent = "MyApp-01"
Cnt..SandboxMode = True

MyClients is array of strings
Add(MyClients, "client1@email.com")
NbUnitsPerClient is array of gglAdWClientUsage
NbUnitsPerClient = GglAdWGetUnitCountForClient(Cnt, "20090101", "20090201", MyClients)
Syntax
<Result> = GglAdWGetUnitCountForClient(<AdWords Connection> , <Start Date> , <End Date> [, <Emails of Clients>])
<Result>: Array of gglAdWClientUsage variables
Name of the array of gglAdWClientUsage variables containing the number of units used by the client.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use. The characteristics of the connection must correspond to an AdWords multi-account account.
<Start Date>: DateTime
Start date of the period for which the number of API units used is requested.
<End Date>: DateTime
End date of the period for which the number of API units used is requested.
<Emails of Clients>: Optional array of strings
Name of the array of strings containing the list of emails of the clients for which the number of units used must be retrieved. If this parameter is not specified, all the clients of the account are taken into account.
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