Combine iAd and AdMob Ads for iOS in SWIFT
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
GoogleMobileAds.framework
iAdAdMobDemo.xcodeproj
iAdAdMobDemo
iAdAdMobDemoTests
.gitignore
README.md

README.md

iAdAdMobDemo:

Combine iAd and AdMob Ads for iOS in SWIFT: If you use the interstitial ads provided by Apples iAd frequently, you might have seen that the fill rate is not always 100 percent. One reason could be that there was just not enough time to load the new content. This tutorial shows how to improve the fill rate by requesting a Google AdMob ad in parallel. Depending on the availability, the iAd or the AdMob ad will be shown.

Setup:

As a prerequisite you need to register for AdMob and iAd. Assign your AdMobKey to this variable in the adHelper class:

private var adMobKey = "ENTER YOUR KEY HERE"

Tutorial

http://stefansdevplayground.blogspot.de/2015/07/quick-tip-combine-iad-and-admob-ads-for.html

Changes for the new Google AdMob / Adsense Cookie Policy

http://stefansdevplayground.blogspot.de/2015/08/GoogleAdMobPolicy.html

##My blogs: http://developerplayground.net

http://stefansdevplayground.blogspot.de

##You can download my Apps here: https://itunes.apple.com/us/app/yet-another-spaceshooter/id949662362?mt=8

https://itunes.apple.com/us/app/yet-another-watch-puzzle-game/id997514879?ls=1&mt=8

My videos are available in my YouTube channel: https://www.youtube.com/channel/UCwC_QHjZ-COEQpLVAjaDyfQ

##License This code is published under the MIT licence: http://opensource.org/licenses/MIT

The MIT License (MIT) [OSI Approved License] The MIT License (MIT)

Copyright (c) 2015 by Stefan Josten

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.