The IMAAdsLoader class allows the requesting of ads from the ad server.
Use the delegate to receive the loaded ads or loading error in case of failure.
|Initializes an IMAAdsLoader with specific settings. More...|
|Initializes the IMAAdsLoader with default settings. More...|
|Request ads from the ad server. More...|
|Signal to the SDK that the content has completed. More...|
|(NSString *)||+ SDKVersion|
|Returns the SDK version. More...|
|SDK-wide settings. More...|
|id< IMAAdsLoaderDelegate >||delegate|
|Delegate that receives IMAAdsLoaderDelegate callbacks. More...|
|+ (NSString *) SDKVersion|
Returns the SDK version.
- the SDK version
|- (instancetype) initWithSettings:||(IMASettings *)||settings|
Initializes an IMAAdsLoader with specific settings.
The loader takes 1-2 seconds to setup once initialized, therefore reusing a single instance of the ads loader is encouraged to minimize ad request times.
settings the IMASettings to use for SDK wide settings. Uses defaults when nil.
- an IMAAdsLoader instance with given IMASettings
|- (instancetype) init|
|- (void) requestAdsWithRequest:||(IMAAdsRequest *)||request|
Request ads from the ad server.
The loader takes 1-2 seconds to setup on init and become ready to make ad requests. So reusing the same IMAAdsLoader instance is encouraged when making ad requests in order to minimize ad request times.
|- (void) contentComplete|
Signal to the SDK that the content has completed.
The SDK will play post-rolls at this time, if any are scheduled.
Note that certain settings will only be evaluated during initialization of the adsLoader.