BannerAdsDelegate
public protocol BannerAdsDelegate : AnyObject
Defines all banner-related ad events called by BannerAds.
Note
This protocol inherits from AnyObject so that the implementing objects are able to be referenced weakly.
-
didLoad(placementId:Default implementationresult: ) Notifies when an ad was loaded successfully.
This callback can be called multiple times for each placement id, due to the banner autorefresh triggering more loads.
Default Implementation
Declaration
Swift
func didLoad(placementId: String, result: LoadResult)Parameters
placementIdthe placement id of the ad that triggered the event.
resultA
LoadResultobject describing the result of a load call. -
didClick(placementId:Default implementation) Notifies when an ad was clicked.
Default Implementation
Declaration
Swift
func didClick(placementId: String)Parameters
placementIdthe placement id of the ad that triggered the event.
-
Notifies when an ad impression was recorded, returning an
ImpressionDataobject.Declaration
Swift
func didRecordImpression(placementId: String, data: ImpressionData)Parameters
placementIdthe placement id of the ad that triggered the event.
dataAn
ImpressionDataobject describing an ad impression.