PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of gglAdWTextAd variables
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
gglAdWTextAd (Type of variable)
In French: gglAdWAnnonceTexte (Type de variable)
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
The gglAdWTextAd type is used to describe a Google AdWords marketing ad whose type is "Text ad".
The characteristics of this text ad can be defined and modified by several WLanguage properties
Note: See Declaring a variable for more details.
Example
// Connection to Google AdWords
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

// Retrieve an ad according to its identifier
MyVariant is Variant
MyVariant = GglAdWGetAd(Cnt, "5549")
MyAd is gglAdWTextAd = MyVariant

// Modify the ad
MyAd..DestinationURL = "http://newurl.com"
// Apply the changes to the server
MyArray is array of Variant
Add(MyArray, MyAd)
GglWrite(Cnt, MyArray)
Remarks

Properties specific to the description of gglAdWTextAd variables

The following properties can be used to handle a text ad:
Name Type used Effect
ExemptionRequestCharacter stringText explaining why the ad does not comply with the use conditions of the service. This text can also be used to ask for an exception to this violation.
DescriptionLine1Character stringFirst line of the text of the add (up to 35 characters)
DescriptionLine2Character stringSecond line of the text of the add (up to 35 characters)
DisapprovedBoolean
  • True if the ad was disapproved by Google,
  • False otherwise. This property is available in read-only.
StateString constantCurrent status of the ad.
The available values are:
  • gglActive: The ad is active.
  • gglPaused: The ad is paused.
  • gglDeleted: The ad is deleted.
IdentifierCharacter stringIdentifier of the ad. This property is available in read-only.
GroupIdentifierCharacter stringIdentifier of ad group to which the ad belongs.
TitleCharacter stringHeader of the ad (up to 25 characters).
TypeCharacter stringType of the ad. This property is available in read-only.
The type of a text ad is "TextAd".
DisplayedURLCharacter stringURL displayed in the ad (up to 35 characters).
DestinationURLCharacter stringURL associated with the ad (up to 1024 characters). When the URL is clicked, the corresponding page will be displayed in the browser of the Web user.
Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment