BaseAd
Base class for all Ad controls.
This class defines shared ad request and lifecycle event properties for concrete ad controls/services.
Raises:
- FletUnsupportedPlatformException - When using this control on a web and/or non-mobile platform.
Inherits: BaseControl
Properties
Events
Properties
requestclass-attributeinstance-attribute
Targeting information used to fetch an Ad.
Events
on_clickclass-attributeinstance-attribute
on_click: Optional[ControlEventHandler[BaseAd]] = NoneCalled when this ad is clicked.
on_closeclass-attributeinstance-attribute
on_close: Optional[ControlEventHandler[BaseAd]] = NoneCalled when the full screen view has been closed. You should restart anything paused while handling on_open.
on_errorclass-attributeinstance-attribute
on_error: Optional[ControlEventHandler[BaseAd]] = NoneCalled when an ad request failed.
Event handler argument data property contains information about the error.
on_impressionclass-attributeinstance-attribute
on_impression: Optional[ControlEventHandler[BaseAd]] = NoneCalled when an impression occurs on this ad.
on_loadclass-attributeinstance-attribute
on_load: Optional[ControlEventHandler[BaseAd]] = NoneCalled when this ad is loaded successfully.
on_openclass-attributeinstance-attribute
on_open: Optional[ControlEventHandler[BaseAd]] = NoneCalled when this ad opens up.
A full screen view/overlay is presented in response to the user clicking on an ad. You may want to pause animations and time sensitive interactions.