FullscreenAdsDelegate
public protocol FullscreenAdsDelegate : AnyObject
Defines all fullscreen-related ad events.
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.
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. -
Notifies when an ad was presented to the user.
Declaration
Swift
func didPresent(placementId: String)Parameters
placementIdthe placement id of the ad that triggered the event.
-
Notifies when an ad failed to be presented.
Note
You don’t need to reload an ad that failed to present, as this is handled automatically by the sdk.
Declaration
Swift
func failedToPresent(placementId: String, error: PresentError)Parameters
placementIdthe placement id of the ad that triggered the event.
errorA
PresentErrorobject describing the error. -
willDismiss(placementId:Default implementation) Notifies when an ad is about to be dismissed.
Default Implementation
Declaration
Swift
func willDismiss(placementId: String)Parameters
placementIdthe placement id of the ad that triggered the event.
-
Notifies when an ad was dismissed.
Note
You don’t need to reload an ad that was dismissed, as this is handled automatically by the sdk.
Declaration
Swift
func didDismiss(placementId: String)Parameters
placementIdthe placement id of the ad that triggered the event.
-
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.