Home | Sign in | English UK
  • Properties specific to the description of gglAdWVideoAd variables
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
gglAdWVideoAd (Type of variable)
In french: gglAdWAnnonceVidéo (Type de variable)
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 gglAdWVideoAdd type is used to describe a Google AdWords marketing ad whose type is "Video Ad".
A video ad played on a page is displayed as a static opening image. The video is played when the user clicks this image or the play button. If the user clicks the URL displayed at the bottom of the ad or the ad itself while the video is played, it is automatically redirected to the specified Web site.
Caution: The videos used by the Google AdWords ads cannot be uploaded by programming. The users must upload the videos from the interface of Google AdWords beforehand.
The characteristics of this video ad can be defined and modified by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
// 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, "5545")
MyAd is gglAdWVideoAd = 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)

Properties specific to the description of gglAdWVideoAd variables

The following properties can be used to handle a video 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.
  • True if the ad was disapproved by Google,
  • False otherwise. This property is available in read-only.
StateString constantCurrent status of 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.
ImagegglAdWImageChracteristics of the image for opening the video ad.
NameCharacter stringName of the video ad (up to 50 characters)
TypeCharacter stringType of the ad. This property is available in read-only.
The type of a video ad is "VideoAd".
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 Web user.
VideogglAdWVideoCharacteristics of the video linked to the ad.
Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 14
This page is also available for…
Click [Add] to post a comment