O'Reilly logo

Swift Game Development - Third Edition by Stephen Haney, Siddharth Shekar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an AdMob Ad in the App

Let's see how to implement ads in the game. We will be using AdMob to integrate an ad into the game.

You have to sign up for AdMob. If you don't already have an account, you can sign up at www.google.com/admob. Signing up is easy and it's free. If you have a Gmail account, you can use it to sign in as well.

www.google.com/admob

Adding an AdMob Ad in the App

To implement the ad, we have to first create an app on the AdMob site and then download the AdMob framework to implement the ad in the game. Click on the Apps button on the sidebar of the site and click Add App:

Next, you will be asked if the app is already published. Click NO as we have not yet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required