Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[OLD/BROKEN] Legacy AdMob Plugin for Unity3D for Android IOS

Discussion in 'Android' started by DMTSource, Sep 1, 2013.

  1. DMTSource

    DMTSource

    Joined:
    Jul 11, 2013
    Posts:
    36
  2. singlecoder

    singlecoder

    Joined:
    Jul 19, 2013
    Posts:
    16
    thanks for sharing.

    could you try this plugin?. I was thinking to use the native admob sdk on my game exporting it as eclipse project.
     
  3. thegdeveloper

    thegdeveloper

    Joined:
    Feb 25, 2013
    Posts:
    134
    I tried this plugin and i works ok for the android .If I use it on the IOS my game freezes the moment that I call an add request
     
  4. DMTSource

    DMTSource

    Joined:
    Jul 11, 2013
    Posts:
    36
    Yeah I remember my first time IOS integration not being so smooth. I think I remember things like the SDK was not copied over to the plugins folder and had to put that in manually. As well as set the proper framework permissions mentioned here in #3 of the IOS tab:
    https://developers.google.com/mobile-ads-sdk/docs/#ios

    "3. The SDK library references the following iOS development frameworks which may not already be part of your project:

    AdSupport
    AudioToolbox
    AVFoundation
    CoreGraphics
    MessageUI
    StoreKit
    SystemConfiguration"

    Otherwise it works great for me on IOS Android.
     
  5. thegdeveloper

    thegdeveloper

    Joined:
    Feb 25, 2013
    Posts:
    134
    I had found the dependencies of these frameworks cause without them there was a linking error but i have the run time error where my game just crushes when It makes an ad request. Then plugin must be copied admob manually yes, this must be done in the android version too. In general google should do better job with the Unity plugin cause right now it sucks.
     
  6. AYFukushima

    AYFukushima

    Joined:
    Feb 4, 2013
    Posts:
    12
    Hi!

    Did you find a way to resolve the freeze problem? This is happening with me and I've no more ideas how to resolve this...
     
  7. t3d-planet

    t3d-planet

    Joined:
    Apr 26, 2013
    Posts:
    11
    hi,there in order to get ads on iOS with no problems at all do these steps:
    1-open your unity 3d project in Xcode
    2-add admob sdk files without addon folder
    3-in xcode go to your target then general tab then linked framework and libraries then add these
    AdSupport
    AudioToolbox
    AVFoundation
    CoreGraphics
    MessageUI
    StoreKit
    SystemConfiguration"
    4-remove libiphone-lib.a from linked framework and libraries and add it again
    5-go to target build settings tab then other linker flag then input -ObjC
    6-test on your device and you are done

     
  8. Mighty-Professional

    Mighty-Professional

    Joined:
    Jan 24, 2014
    Posts:
    166
    If you still have freezes you probably missed this step:

    go to target build settings tab then other linker flag then input -ObjC
     
  9. SteadfastMumm

    SteadfastMumm

    Joined:
    Mar 6, 2014
    Posts:
    2
    Does all these steps have to be done for each build?
     
  10. StarHunter32

    StarHunter32

    Joined:
    Feb 10, 2013
    Posts:
    99
    It works with the included default Publisher ID, which is from the legacy AdMob, but when I put the new "ca-app-pub-#####/####" kind of ID it does not work. Nothing else changed. Do you have the same issue?
     
  11. nggb

    nggb

    Joined:
    Jan 12, 2014
    Posts:
    2
    keep getting "Failed to receive ad with error: Request Error: No ad to show." output in the console. I am also using the new ID type. Anybody ran into this before? All these fragmentation in services is really driving me nut. I literally spend much less time on the game itself than making it compatible with the services out there. First I got admob for android to work, then got amazon ads to work to qualify for their dev program, and now need to get admob for IOS. sigh.

    EDIT: I got the ads to show up. Not sure how since I did a bunch of things in between the builds. Here are list of things I did.
    - Create an IOS app profile on admob and use that specific ID. ( I was using my existing ad ID for the android version of my game previously.)
    - Re-Import the entire google ad SDK folder (minus the addon) into the "Classes" folder instead of just the individual files.
    - Add CoreTelephony. (xcode wouldn't build without it after I re-Import the google ad sdk folder.

    Not sure which one of those was the reasons. Oh well, at least it works now.

    Now does anybody know how to move the position of the ad horizontally? It defaults on the Left side. I need it on the right.
     
    Last edited: Mar 29, 2014
  12. iveld

    iveld

    Joined:
    Nov 13, 2013
    Posts:
    2
  13. hellobambo

    hellobambo

    Joined:
    Apr 28, 2014
    Posts:
    1
    i need tutorial step by step how to use this plugin.Thanks!
     
  14. ericleich

    ericleich

    Joined:
    Jul 14, 2014
    Posts:
    1
  15. bboysil

    bboysil

    Joined:
    Jun 1, 2013
    Posts:
    11
    From https://developers.google.com/mobile-ads-sdk/ : "On August 1, 2014, Google Play will stop accepting new or updated apps that use the old standalone Google Mobile Ads SDK v6.4.1 or lower. You must upgrade to the Google Play version of the Mobile Ads SDK by then."

    Does this plugin use a newer version then SDK v6.4.1?
     
  16. Parn1024

    Parn1024

    Joined:
    Sep 28, 2013
    Posts:
    4
    In the "readme" i have read that this plugin use the SDK 6.4.1.
    I need to know if there will be an update of this plugin :)
     
  17. Hiten Dodiya

    Hiten Dodiya

    Joined:
    Sep 12, 2014
    Posts:
    7
    Undefined symbols for architecture armv7:

    "_isIpadAdMob_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_video_is_available", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_start_app", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_show_interstitial", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_installAdMobIOS_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_show_video", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_incentivized_set_user_identifier", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_hide_video", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_hide_interstitial", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_show_incentivized", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_incentivized_is_available", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_fetch_video", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_hide_incentivized", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hideAdIOS_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_fetch_interstitial", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_refreshAdIOS_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_interstitial_is_available", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_showAdIOS_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_releaseAdMobIOS_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_hz_ads_fetch_incentivized", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    "_addTestDeviceIDIOS_", referenced from:

    RegisterMonoModules() in RegisterMonoModules.o

    ld: symbol(s) not found for architecture armv7

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  18. Hiten Dodiya

    Hiten Dodiya

    Joined:
    Sep 12, 2014
    Posts:
    7
    give me solution
     
  19. DMTSource

    DMTSource

    Joined:
    Jul 11, 2013
    Posts:
    36
    Guys this plugin uses the Legacy admob, DO NOT USE IT and switch to a new plugin which uses the Google Play services SDK if you want it to work.