Analytics / tracking string.
Whether this banner is a control banner.
The placement ID this banner is matched to.
Properties of this object.
Avoid accessing these properties directly. Instead, prefer using the getStringProperty, getBooleanProperty, getNumberProperty,
getImageProperty and getJsonProperty methods which ensure type safety and to avoid breaking changes in the future.
Get value of a property of type boolean.
The key of the property.
The value of the property if the key is found and is of type boolean. If the key is not found or if there is a type mismatch, this method will return a null.
Get value of a property of type image.
The key of the property.
The string value of the image url if the key is found and is of type image. If the key is not found or if there is a type mismatch, this method will return a null.
Get value of a property of type JSON.
The key of the property.
The value of the property if the key is found and is of type JSON. If the key is not found or if there is a type mismatch, this method will return a null.
Get value of a property of type number.
The key of the property.
The value of the property if the key is found and is of type number. If the key is not found or if there is a type mismatch, this method will return a null.
Get value of a property of type string.
The key of the property.
The value of the property if the key is found and is of type string. If the key is not found or if there is a type mismatch, this method will return a null.
Get value of a property of type datetime as a Unix timestamp (milliseconds).
The key of the property.
The Unix timestamp (milliseconds) value of the property if the key is found and is of type datetime. If the key is not found or if there is a type mismatch, this method will return a null.
Remove all event subscriptions from this banner.
Remove an event subscription that you previously subscribed to.
The identifier of the subscription you wish to remove, returned by the method you initially used to create it.
Subscribe to receive dismissed events. The subscriber callback will be called whenever this banner is dismissed.
The callback function to receive dismissed events. This function will be invoked with no arguments when this banner records a dismissal.
The identifier of the subscription created. This can be passed to Banner.removeSubscription
to cancel the subscription. Returns null if the subscriber passed is not a function.
HTML to display for the banner.