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
placementId
the placement id of the ad that triggered the event.
result
A
LoadResult
object 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
placementId
the placement id of the ad that triggered the event.
-
Notifies when an ad impression was recorded, returning an
ImpressionData
object.Declaration
Swift
func didRecordImpression(placementId: String, data: ImpressionData)
Parameters
placementId
the placement id of the ad that triggered the event.
data
An
ImpressionData
object describing an ad impression.