Member-only story
Google IMA
1 min readAug 14, 2023
Google IMA(Interactive Media Ads) is a tool that helps developers show video ads in their apps, like the ads you might see before watching a YouTube video. In Swift for iOS, you can use Google IMA to display these video ads smoothly and manage how they work in your app.
Here’s how it works:
- Setting Up Google IMA: First, you need to add Google IMA to your app. This involves adding some code and connecting your app to Google’s servers.
- Loading Ads: Once Google IMA is set up, your app can ask Google for video ads when it’s time to show them. It’s like telling Google, “Hey, I want to show an ad now!”
- Displaying Ads: When Google finds an ad for your app, it sends the ad to your app. Your app then shows the ad to the user, just like playing a video.
- Tracking Ad Events: Google IMA also helps you keep track of what’s happening with the ads. For example, it can tell you when an ad starts, when it’s done, or if the user skips it.
Ads play in a separate video player positioned on top of the app’s content video player.