Search code examples
swiftsprite-kitadmobiad

Using iAd as default ad network, and AdMob if iAd fails in SpriteKit


I am looking to implement iAd as the default ad network and have AdMob fill in if iAd fails to fill the ad. I am wanting to do this in SpriteKit for both a banner ad at the bottom, and a video ad after the game ends. I am aware of the Using iAd as default ad network, and AdMob if iAd fails question but it is a little out dated, doesn't deal in in spritekit, and doesn't specify what frameworks to implement either.


Solution

  • Here is a link to a code project by a Stack Overflow user, crashoverride777, that will help you do just what you asked. It is very concise and helpful

    https://github.com/crashoverride777/Swift-2-iAds-and-AdMob-Helper

    If you want, look up the answer on this page Show Admob Interstitial ads between scenes in Swift SpriteKit