Implement interstitial ads in your iOS app. Load ad content, display it through Objective-C or Swift code, and use a delegate to handle ad events.
Read time 1 minuteLast updated 9 days ago
Interstitial ad load example
Use
UADSLoadConfigurationBuilder
to construct a load request with the placement ID, mediation metadata, and optional ad markup for bidding, then pass it to
UADSInterstitialAd.load()
. The completion block receives the loaded
UADSInterstitialAd
instance on success. Retain it, as it's required to show the ad later, or an error object on failure.Ads expire if they aren't shown within a set time after the SDK loads them. Assign
onAdExpired
on the loaded ad instance to detect this. Attempting to
show()
an expired rewarded ad fails, which is especially important to catch since rewarded ads are often preloaded and held until the user requests a reward. Use the callback to clear your stored reference and issue a new