Latest 1.2
Homepage https://github.com/Moballo-LLC/MOBAdvertising
License MIT
Platforms ios 8.0, requires ARC
Frameworks GoogleMobileAds
Authors

MOBAdvertising is an easy-to-use, drop-in wrapper for Google AdMob Banner Ads. Simply wrap your app in MOBAdvertising to display ads on the bottom in a jiffy.


Import with CocoaPods

  use_frameworks!
  pod 'MOBAdvertising'

Initialization and Setup

AppDelegate.swift

At the top of the file

import MOBAdvertising
var bannerViewControllered: MOBAdvertisingBanner!

Inside of "application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool"

bannerViewControllered = MOBAdvertisingBanner(view: (self.window?.rootViewController)!, AdApplicationID: "YOUR ADMOB APPLICATION ID", AdUnitID: "YOUR ADMOB AD UNIT ID", TestAds: false)
self.window!.rootViewController = bannerViewControllered;
self.window?.makeKeyAndVisible()

To Show/Hide Ads

bannerViewControllered.hideBannerView()
or
bannerViewControllered.showBannerView()

Easy as pie! Enjoy!

Latest podspec

{
    "name": "MOBAdvertising",
    "version": "1.2",
    "summary": "A wrapper for GogleMobileAds that allows one to present banner ads that show with any application, including a tab bar application",
    "homepage": "https://github.com/Moballo-LLC/MOBAdvertising",
    "license": "MIT",
    "authors": {
        "Jason Morcos - Moballo, LLC": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Moballo-LLC/MOBAdvertising.git",
        "tag": "1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "ios": {
        "vendored_frameworks": "Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks/GoogleMobileAds.framework"
    },
    "frameworks": "GoogleMobileAds",
    "source_files": [
        "Sources/**/*.swift"
    ],
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This