Search Unity

Admob integration for iOS game

Discussion in 'Scripting' started by immacul8_apps, Feb 27, 2017.

  1. immacul8_apps

    immacul8_apps

    Joined:
    Apr 4, 2015
    Posts:
    9
    I can't for the life of me get Admob (GoogleMobileAds) to display a banner ad in my iOs game.

    I successfully implemented Admob into unity for my Android game, but when exporting project for iOs no banner displays. (using different adID's)
    Ive tried adding it to unity several different ways, ive added it to Xcode several different ways and still nothing.

    my .plist
    <key>NSAppTransportSecurity</key>
    <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsForMedia</key>
    <true/>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
    <key>googleapis.com</key>
    <dict>
    <key>NSIncludesSubdomains</key>
    <true/>
    <key>NSExceptionMinimumTLSVersion</key>
    <string>TLSv1.0</string>
    <key>NSExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    <key>NSExceptionRequiresForwardSecrecy</key>
    <false/>
    <key>NSThirdPartyExceptionMinimumTLSVersion</key>
    <string>TLSv1.0</string>
    <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
    <false/>
    <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    </dict>
    </dict>
    </dict>


    errors

    2016-10-27 14:11:37.651 com[2322:1744977] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)

    2016-10-27 14:11:37.730 com[2322] <Error> [Firebase/Core][I-NET901017] <Firebase/Network/ERROR> Encounter network error. Code, error: -999, Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://play.googleapis.com/log, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSLocalizedDescription=cancelled}

    2016-10-27 14:11:37.759 com[2322:1745037] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)

    2016-10-27 14:11:37.783 com[2322] <Error> [Firebase/Analytics][I-ACS901017] Encounter network error. Code, error: -999, Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://app-measurement.com/config/...F9AB618E4069B46&platform=ios&gmp_version=3700, NSErrorFailingURLStringKey=https://app-measurement.com/config/...F9AB618E4069B46&platform=ios&gmp_version=3700, NSLocalizedDescription=cancelled}

    2016-10-27 14:11:37.788 com[2322] <Error> [Firebase/Core][I-COR000020] Error posting to Clearcut: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://play.googleapis.com/log, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSLocalizedDescription=cancelled}

    Does anyone have a working example or can point me in the right direction of where, how i should be implementing the Admob plugin for an iOs game.

    using unity 5.6.0b9
    using Xcode 8.2.1
    Test Device iPad Air

    Thank You
     
    Last edited: Mar 4, 2017