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.
// Connection to Google AdWords
Cnt is gglAdWConnection
Cnt..Email = "firstname.lastname@example.org"
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
Properties specific to the description of gglAdWVideoAd variables
The following properties can be used to handle a video ad:
|Name ||Type used ||Effect |
|ExemptionRequest||Character string||Text 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.
|State||String constant||Current status of the ad.|
The available values are:
- gglActive: The ad is active.
- gglPaused: The ad is paused.
- gglDeleted: The ad is deleted.
|Identifier||Character string||Identifier of the ad. This property is available in read-only.|
|GroupIdentifier||Character string||Identifier of ad group to which the ad belongs.|
|Image||gglAdWImage||Chracteristics of the image for opening the video ad.|
|Name||Character string||Name of the video ad (up to 50 characters)|
|Type||Character string||Type of the ad. This property is available in read-only.|
The type of a video ad is "VideoAd".
|DisplayedURL||Character string||URL displayed in the ad (up to 35 characters).|
|DestinationURL||Character string||URL 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.|
|Video||gglAdWVideo||Characteristics of the video linked to the ad.|
: These properties can be handled by using one of the following syntaxes:
- <Variable Name>..<Property Name>
- <Variable Name>.<Property Name>