Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Unity3DJava · Aug 01, 2014 at 04:29 AM · iospluginadmob

Admob Plugin Unity IOS

I have been trying to implement admob ads into my unity iphone game, but I have had no success. I have found various plugins that work ,but they all cost money. I have looked up tutorials and they just leave me with some gui buttons on the screen that don't work. Does anyone know an easy way to put admob ads into an iphone game for free, without those annoying gui buttons???

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ekta-Mehta-D · Aug 01, 2014 at 06:56 AM 0
Share

Which plugins u have tried ? https://code.google.com/p/google-mobile-dev/downloads/detail?name=UnityPlugin_iOS_1.1.zip

have u tried this zip?? this zip works for me.

avatar image joneman · Mar 05, 2016 at 08:21 AM 0
Share

Try this plugin,may help you save some time https://github.com/unity-plugins/Unity-Admob

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by abdulthegamer · Aug 01, 2014 at 07:12 AM

Hi, i think you are using the old admob plugin. Admob has recently changed all the system for displaying ads and there is a new plugin which is only supported. Check out the Neat Plugin for Admob. It works incredible and has documentation which is very easy to implement. i hope this answers your question.

Regards.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Ekta-Mehta-D · Aug 02, 2014 at 05:25 AM

hey ..

you can use this plugin.

https://github.com/googleads/googleads-mobile-plugins/tree/master/unity

This plugin works for me..

Thank you.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by saru15 · Apr 08, 2015 at 09:20 AM

If you still face any problem implementing admob in iOS I've written the blog as same thing happen with me and it really did frustrate me a lot.

Six step for implementing admob in Ios

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by wuym67123 · Feb 16, 2017 at 01:59 PM

Maybe this document can help you

https://github.com/unity-plugins/Unity-Admob/wiki/Admob-Unity-Plugin-Document

Admob Unity Plugin

Admob Unity Plugin provides a way to integrate admob ads in Unity3D Game and u3d app. You can use it for Unity iOS and Android App with the same c# or js code.

Admob Unity3d Plugin Readme Contents

Admob Unity Plugin Description Unity Admob Plugin Features Downloads Admob Unity Plugin Installation Admob Unity Unity Plugin Wiki and Documentation Quick Start Unity Admob Demo Usage Important Tips Screenshots License Admob Unity Plugin Description

The Google Mobile Ads SDK is the latest generation in Google mobile advertising featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions. The SDK enables Unity mobile app developers to maximize their monetization in native mobile apps.

This repository contains the source code for the Google Mobile Ads Unity plugin. This plugin enables Unity developers to easily serve Google Mobile Ads on Android and iOS apps without having to write Java or Objective-C code. The plugin provides a C# interface for requesting ads that is used by C# scripts in your Unity project.

Unity Admob Plugin Features

Platforms supported in one plugin :

Android, via SDK v7.8 (part of Google Play service platform) iOS, via SDK v7.6.0 Support all native events AdRequest targeting methods,such as children target,test mode Not need change Android package name Very simple API Ad Types:

Banner(All Banner Type and Custom banner sizes) Interstitial (text, picture, video) Rewarded Video Native Express Banner Downloads Admob Unity Plugin

AdmobPluginRes/GoogleMobileAds.framework and admob_unity_plugin.unitypackage is reqired Download those files from Admob Unity3d Plugin Project Home https://github.com/unity-plugins/Unity-Admob or Download all the Unity admob plugin project https://github.com/unity-plugins/Unity-Admob/archive/master.zip

Installation Admob Unity

Open your project in the Unity editor. Navigate to Assets -> Import Package -> Custom Package. Select the AdmobUnityPlugin.unitypackage file. Import all of the files for the plugins by selecting Import. Make sure to check for any conflicts with files. Unity Plugin Wiki and Documentation

Document API Tutorial Quick Start

1.Init Admob Unity Plugin

Create A C# script ,drag the script to a object on scene , add the follow code in the script file

 using admob;
 Admob.Instance().initAdmob("admob banner id", "admob interstitial id");//admob id with format ca-app-pub-279xxxxxxxx/xxxxxxxx

2.Add Admob Banner in Unity App

Here is the minimal code needed to show admob banner.

 Admob.Instance().showBannerRelative(AdSize.Banner, AdPosition.BOTTOM_CENTER, 0);

The AdPosition class specifies where to place the banner. AdSize specifies witch size banner to show

3.Remove Banner

By default, banners are visible. To temporarily hide a banner, call:

 Admob.Instance().removeBanner();

4.How to integrate Interstitial into Unity 3d app?

Here is the minimal code to create an interstitial.

 Admob.Instance().loadInterstitial(); 

Unlike banners, interstitials need to be explicitly shown. At an appropriate stopping point in your app, check that the interstitail is ready before showing it:

 if (Admob.Instance().isInterstitialReady()) {
   Admob.Instance().showInterstitial();
 }

5.Custom Admob Banner Ad Sizes

In addition to constants on AdSize, you can also create a custom size:

 //Create a 250x250 banner.
 AdSize adSize = new AdSize(250, 250);
 Admob.Instance().showBannerAbsolute(adSize,0,30);

6.Admob test Ads and children app

If you want to test the ads or the your app with children target,you can set with admob unity plugin easy

 Admob.Instance().setTesting(true);
 Admob.Instance().setForChildren(true);
 string[] keywords = { "game","crash","male game"};
  Admob.Instance().setKeywords(keywords);

7.Ad Events

Both Banner and Interstitial contain the same ad events that you can register for. Here we'll demonstrate setting ad events on a interstitial,and show interstitial when load success:

 Admob.Instance().interstitialEventHandler += onInterstitialEvent;
 void onInterstitialEvent(string eventName, string msg)
 {
     Debug.Log("handler onAdmobEvent---" + eventName + "   " + msg);
     if (eventName == AdmobEvent.onAdLoaded)
     {
         Admob.Instance().showInterstitial();
     }
 }

You only need to register for the events you care about.

8.How to integrate Admob Rewarded Video to Unity3d app?

Here is the minimal code to create an admob video.

 Admob.Instance().loadRewardedVideo("ca-app-pub-312xxxxxxxxxxxx/xxxxxxxx"); 

Simular with interstitial,video need to be explicitly shown at an appropriate stopping point in your app, check that the video is ready before showing it:

 if (Admob.Instance().isRewardedVideoReady()) {
   Admob.Instance().showRewardedVideo();
 }

9.Show Admob Native Express Ad in IOS and Android App

Here is the minimal code needed to show admob banner.

 Admob.Instance().showNativeBannerRelative(new AdSize(360,100), AdPosition.BOTTOM_CENTER, 0,"ca-app-pub-3940256099942544/2562852117");

Unity Admob Demo Usage

import AdmobUnityPlugin.unitypackage to your Unity project copy admobdemo.cs from AdmobPluginRes to your unity project/assets dic attach admobdemo.cs to the main camera edit admob id in admobdemo.cs build and run this in your device Important Tips

Add GoogleMobileAds.framework. to Xcode Project Add the following framework to Xcode project AdSupport.framework,EventKit.framework,EventKitUI.framework,CoreTelephony.framework,StoreKit.framework,MessageUI.framework Attach admob to Object on scene,init admob before call admob fun

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does Apple charge or request sth for IOS Admob Incomes? 0 Answers

AdMob iOS for Unity 4.1 2 Answers

'GADAdmobExtras.h' file not found 0 Answers

Alternate to UnitySendMessage in iOS native 1 Answer

Saving Unity Texture2D updated with OpenGL FBO via custom plugin 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges