简体   繁体   中英

Xcode 9 Swift 4 AR app add ads

I am trying to add iads to my Xcode9/Swift 4 AR project.

From searching online, adding iads to the viewcontroller should be as easy as dragging the iad banner view into the main.storyboard, however there doesn't seem to be any options for ads in Xcode 9. Is this something with the new Xcode version? Or do I need to install some sort of add plugin to use iads. If for some reason iads got removed from Xcode I could always fall back on adMob for IOS.

Thanks, any info helps!

As far as I know, iAds have been depreciated. There are multiple in-app ad services which you can use, one of the most popular ones is, as you mentioned, AdMobs.

You would need to create an AdMob account, and install the Google AdMobs SDK , which is easily done through terminal/CocoaPods.

To create ads you need to first create an Ad Unit, after you've signed up to AdMobs.

Once you have done that, use this documentation, depending on the type of ad(s) you wish to display, to invoke and display ads. Keep in mind, different ads which require different delegates/methods.

But in regards to your question, you are not wrong nor is there any issues. Simple iAds have been abandoned, in essence.

iAd App Network已于2016年底关闭。您应按照声明使用adMob或其他形式的广告。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM