[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-21 UTC."],[[["\u003cp\u003eIMAAdsManagerDelegate is a callback protocol for the IMAAdsManager, providing updates and handling ad events during playback.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods for responding to ad events, errors, content pause/resume requests, ad progress updates, ad buffering, and ad playback readiness.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers implement these methods to control content playback, UI updates, and error handling in response to ad interactions.\u003c/p\u003e\n"],["\u003cp\u003eThis protocol enables seamless integration of ads into video content by facilitating communication between the ad manager and the application.\u003c/p\u003e\n"]]],[],null,["IMAAdsManagerDelegate \n\n @protocol IMAAdsManagerDelegate\n\nA callback protocol for IMAAdsManager.\n- `\n ``\n ``\n `\n\n [-adsManager:didReceiveAdEvent:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManager:didReceiveAdEvent:)`\n ` \n Called when there is an IMAAdEvent. \n\n Declaration \n Swift \n\n func adsManager(_ adsManager: ../Classes/IMAAdsManager.html, didReceive event: ../Classes/IMAAdEvent.html)\n\n Objective-C \n\n - (void)adsManager:(nonnull ../Classes/IMAAdsManager.html *)adsManager\n didReceiveAdEvent:(nonnull ../Classes/IMAAdEvent.html *)event;\n\n Parameters\n\n |--------------------|---------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager receiving the event |\n | ` `*event*` ` | the IMAAdEvent received |\n\n- `\n ``\n ``\n `\n\n [-adsManager:didReceiveAdError:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManager:didReceiveAdError:)`\n ` \n Called when there was an error playing the ad.\n Log the error and resume playing content. \n\n Declaration \n Swift \n\n func adsManager(_ adsManager: ../Classes/IMAAdsManager.html, didReceive error: ../Classes/IMAAdError.html)\n\n Objective-C \n\n - (void)adsManager:(nonnull ../Classes/IMAAdsManager.html *)adsManager\n didReceiveAdError:(nonnull ../Classes/IMAAdError.html *)error;\n\n Parameters\n\n |--------------------|--------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager that errored |\n | ` `*error*` ` | the IMAAdError received |\n\n- `\n ``\n ``\n `\n\n [-adsManagerDidRequestContentPause:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManagerDidRequestContentPause:)`\n ` \n Called when an ad is ready to play.\n The implementing code should pause the content playback and prepare the UI\n for ad playback. \n\n Declaration \n Swift \n\n func adsManagerDidRequestContentPause(_ adsManager: ../Classes/IMAAdsManager.html)\n\n Objective-C \n\n - (void)adsManagerDidRequestContentPause:(nonnull ../Classes/IMAAdsManager.html *)adsManager;\n\n Parameters\n\n |--------------------|--------------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager requesting content pause |\n\n- `\n ``\n ``\n `\n\n [-adsManagerDidRequestContentResume:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManagerDidRequestContentResume:)`\n ` \n Called when an ad has finished or an error occurred during the playback.\n The implementing code should resume the content playback. \n\n Declaration \n Swift \n\n func adsManagerDidRequestContentResume(_ adsManager: ../Classes/IMAAdsManager.html)\n\n Objective-C \n\n - (void)adsManagerDidRequestContentResume:(nonnull ../Classes/IMAAdsManager.html *)adsManager;\n\n Parameters\n\n |--------------------|---------------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager requesting content resume |\n\n- `\n ``\n ``\n `\n\n [-adsManager:adDidProgressToTime:totalTime:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManager:adDidProgressToTime:totalTime:)`\n ` \n Called every 200ms to provide time updates for the current ad. \n\n Declaration \n Swift \n\n optional func adsManager(_ adsManager: ../Classes/IMAAdsManager.html, adDidProgressToTime mediaTime: TimeInterval, totalTime: TimeInterval)\n\n Objective-C \n\n - (void)adsManager:(nonnull ../Classes/IMAAdsManager.html *)adsManager\n adDidProgressToTime:(NSTimeInterval)mediaTime\n totalTime:(NSTimeInterval)totalTime;\n\n Parameters\n\n |--------------------|----------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager tracking ad playback |\n | ` `*mediaTime*` ` | the current media time in seconds |\n | ` `*totalTime*` ` | the total media length in seconds |\n\n- `\n ``\n ``\n `\n\n [-adsManagerAdPlaybackReady:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManagerAdPlaybackReady:)`\n ` \n Called when the current ad is sufficiently buffered and playback is likely\n to keep up. \n\n Declaration \n Swift \n\n optional func adsManagerAdPlaybackReady(_ adsManager: ../Classes/IMAAdsManager.html)\n\n Objective-C \n\n - (void)adsManagerAdPlaybackReady:(nonnull ../Classes/IMAAdsManager.html *)adsManager;\n\n Parameters\n\n |--------------------|------------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager with ad playback ready |\n\n- `\n ``\n ``\n `\n\n [-adsManagerAdDidStartBuffering:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManagerAdDidStartBuffering:)`\n ` \n Called when the current ad media buffer is empty and playback did stall. \n\n Declaration \n Swift \n\n optional func adsManagerAdDidStartBuffering(_ adsManager: ../Classes/IMAAdsManager.html)\n\n Objective-C \n\n - (void)adsManagerAdDidStartBuffering:(nonnull ../Classes/IMAAdsManager.html *)adsManager;\n\n Parameters\n\n |--------------------|-------------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager tracking the stalled ad |\n\n- `\n ``\n ``\n `\n\n [-adsManager:adDidBufferToMediaTime:](#/c:objc(pl)IMAAdsManagerDelegate(im)adsManager:adDidBufferToMediaTime:)`\n ` \n Called as the current ad media buffers. \n\n Declaration \n Swift \n\n optional func adsManager(_ adsManager: ../Classes/IMAAdsManager.html, adDidBufferToMediaTime mediaTime: TimeInterval)\n\n Objective-C \n\n - (void)adsManager:(nonnull ../Classes/IMAAdsManager.html *)adsManager\n adDidBufferToMediaTime:(NSTimeInterval)mediaTime;\n\n Parameters\n\n |--------------------|--------------------------------------------------|\n | ` `*adsManager*` ` | the IMAAdsManager tracking the ad's media buffer |\n | ` `*mediaTime*` ` | the current buffered media time in seconds |"]]