BaseAd
        Inherits: Control
Base class for all ad controls in Flet Ads package.
Raises:
- 
              FletUnsupportedPlatformException–When using this control on a web and/or non-mobile platform. 
Properties
- 
          request(AdRequest) –Targeting information used to fetch an Ad. 
- 
          unit_id(str) –Ad unit ID for this ad. 
Events
- 
          on_click(ControlEventHandler[BaseAd] | None) –Called when this ad is clicked. 
- 
          on_close(ControlEventHandler[BaseAd] | None) –Called when the full screen view has been closed. You should restart 
- 
          on_error(ControlEventHandler[BaseAd] | None) –Called when an ad request failed. 
- 
          on_impression(ControlEventHandler[BaseAd] | None) –Called when an impression occurs on this ad. 
- 
          on_load(ControlEventHandler[BaseAd] | None) –Called when this ad is loaded successfully. 
- 
          on_open(ControlEventHandler[BaseAd] | None) –Called when this ad opens up. 
Properties#
class-attribute
      instance-attribute
  
#
    Targeting information used to fetch an Ad.
Events#
class-attribute
      instance-attribute
  
#
on_click: ControlEventHandler[BaseAd] | None = None
Called when this ad is clicked.
class-attribute
      instance-attribute
  
#
on_close: ControlEventHandler[BaseAd] | None = None
Called when the full screen view has been closed. You should restart
anything paused while handling on_open.
class-attribute
      instance-attribute
  
#
on_error: ControlEventHandler[BaseAd] | None = None
Called when an ad request failed.
Event handler argument data property
contains information about the error.
class-attribute
      instance-attribute
  
#
on_impression: ControlEventHandler[BaseAd] | None = None
Called when an impression occurs on this ad.
class-attribute
      instance-attribute
  
#
on_load: ControlEventHandler[BaseAd] | None = None
Called when this ad is loaded successfully.
class-attribute
      instance-attribute
  
#
on_open: ControlEventHandler[BaseAd] | None = None
Called 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.