<AdropBanner/>
Banner view component responsible for requesting banner ads and displaying them to the user.
Constructors
AdropBanner
Requires Ad unit ID
Props
Required Props
unitId
: string
Ad unit ID
style
: { height: number; width: number | string }
Ad unit size
Optional Props
autoLoad
: boolean
AdropBanner component automatically requests ads. The default value is true.
onAdReceived
: (unitId: string) -> void
Adrop will call onAdReceived
callback with the ad unit ID when AdropBanner receives an ad.
onAdClicked
: (unitId: string) -> void
Adrop will call onAdClicked
callback with the ad unit ID when AdropBanner clicked.
onAdFailedToReceive
: (unitId: string, errorCode?: any) -> void
Adrop will call onAdFailedToReceive
callback with the ad unit ID and AdropErrorCode when AdropBanner fails to receive an ad.
Usage
Display AdropBanner
Reload Ads using Ref
Last updated