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
GglAdWReplaceExcludedCriterion (Function)
In French: GglAdWRemplaceCritèreExclu
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
Replaces the criteria excluded from a Google AdWords advertising campaign. The previous data is erased and replaced by the new data.
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 a criterion
MyCriterion is gglAdWKeyword
MyCriterion..GroupIdentifier = "123"
...
MyCriterion.MaxCpc = 500

// Assign the criterion to the campaign 654 as negative criterion
MyArray is array of Variants
Add(MyArray, MyCriterion)
CriterionResult is boolean
CriterionResult = GglAdWReplaceExcludedCriterion(Cnt, "654", MyArray)
Syntax
<Result> = GglAdWReplaceExcludedCriterion(<AdWords Connection> , <Campaign Identifier> , <Criteria>)
<Result>: Boolean
  • True if the replacement was performed,
  • False otherwise.
<AdWords Connection>: gglAdWConnection variable
Name of gglAdWConnection variable to use.
<Campaign Identifier>: Unicode character string (with quotes)
Identifier of AdWords advertising campaign.
<Criteria>: Array of variants
Array of variants containing the criteria to apply. This array can contain the following types of objects:
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