LoadDelegate
public protocol LoadDelegate : AnyObject
Defines all load-related ad events.
Note
This protocol inherits from AnyObject so that the implementing objects are able to be referenced weakly.
-
didCompletePrebidding(result:Default implementation) Notifies when the prebidding call finished.
Default Implementation
Declaration
Swift
func didCompletePrebidding(result: PrebiddingResults)Parameters
resultA
PrebiddingResultsobject describing the result of the prebid call. -
Notifies when the ad was loaded successfully.
In the case of a
Banner, this callback can be called multiple times, due to the banner autorefresh triggering more loads. The first time, the delegate should add theviewto the hierarchy if it hadn’t been added yet.For a
Rewardedor anInterstitialad, this callback will only be called once, if successful.Declaration
Swift
func didLoad(result: LoadResult)Parameters
resultA
LoadResultobject describing the result of the load call. -
Notifies when the ad failed to load.
Declaration
Swift
func failedToLoad(result: LoadResult?, error: LoadError)Parameters
resultA
LoadResultobject describing the result of the load call. result will have a value only if the error was anoFill.errorA
LoadErrorobject describing the error of the load call.