Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by mypolat · Jan 05, 2017 at 12:41 PM · adsadmobunityadspayment

Admob Mediation Payment

Hi,

I want to use Admob Mediation but i don't know its details. My mediation has two ad networks. They are Admob and Unity Ads.

  • How will they pay? Will it be a single source of payment?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Arsh7 · Jan 08, 2017 at 10:31 AM

Admob only does banners and interstitials. Unity ads are only video ads. But you can try setting up chartboost and unity ads for "video ads", admobs provides a mediation platform, not video ads. I just figured it out today..Very confusing. The two examples I gave seemed the easiest to integrate into unity project

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 ugameplayer111 · Apr 20, 2017 at 08:36 AM

Banner,Interstitial,video ,native expresive ad ,admob can use all of that. using UnityEngine; using System.Collections; using admob; public class admobdemo : MonoBehaviour {

     // Use this for initialization
     void Start () {
         Debug.Log("start unity demo-------------");
          initAdmob();
     }
     
     // Update is called once per frame
     void Update () {
         if (Input.GetKeyUp (KeyCode.Escape)) {
             Debug.Log(KeyCode.Escape+"-----------------");
            // ad.removeAllBanner();
         }
     }
     Admob ad;
     //bool isAdmobInited = false;
     void initAdmob()
     {
         
           //  isAdmobInited = true;
              ad = Admob.Instance();
             ad.bannerEventHandler += onBannerEvent;
             ad.interstitialEventHandler += onInterstitialEvent;
             ad.rewardedVideoEventHandler += onRewardedVideoEvent;
             ad.nativeBannerEventHandler += onNativeBannerEvent;
             ad.initAdmob("ca-app-pub-3940256099942544/2934735716", "ca-app-pub-3940256099942544/4411468910");
         //   ad.setTesting(true);
             ad.setGender(AdmobGender.MALE);
             string[] keywords = { "game","crash","male game"};
             ad.setKeywords(keywords);
             Debug.Log("admob inited -------------");
         
     }
     void OnGUI(){
         if (GUI.Button(new Rect(120, 0, 100, 60), "showInterstitial"))
         {
           
             if (ad.isInterstitialReady())
             {
                 ad.showInterstitial();
             }
             else
             {
                 ad.loadInterstitial();
             }
         }
         if (GUI.Button(new Rect(240, 0, 100, 60), "showRewardVideo"))
         {
             
             if (ad.isRewardedVideoReady())
             {
                 ad.showRewardedVideo();
             }
             else
             {
                 
                 ad.loadRewardedVideo("ca-app-pub-3940256099942544/xxxxxxxxxx");
             }
         }
         if (GUI.Button(new Rect(0, 100, 100, 60), "showbanner"))
         {
             Admob.Instance().showBannerRelative(AdSize.SmartBanner, AdPosition.BOTTOM_CENTER, 0);
         }
         if (GUI.Button(new Rect(120, 100, 100, 60), "showbannerABS"))
         {
             Admob.Instance().showBannerAbsolute(AdSize.Banner, 0, 300);
         }
         if (GUI.Button(new Rect(240, 100, 100, 60), "removebanner"))
         {
             Admob.Instance().removeBanner();
         }
         
         string nativeBannerID = "ca-app-pub-3940256099942544/2562852117";//google
         if (GUI.Button(new Rect(0, 200, 100, 60), "showNative"))
         {
             
             Admob.Instance().showNativeBannerRelative(new AdSize(320,120), AdPosition.BOTTOM_CENTER, 0,nativeBannerID);
         }
         if (GUI.Button(new Rect(120, 200, 100, 60), "showNativeABS"))
         {
             Admob.Instance().showNativeBannerAbsolute(new AdSize(320,120), 0, 300, nativeBannerID);
         }
         if (GUI.Button(new Rect(240, 200, 100, 60), "removeNative"))
         {
             Admob.Instance().removeNativeBanner();
         }
     }
     void onInterstitialEvent(string eventName, string msg)
     {
         Debug.Log("handler onAdmobEvent---" + eventName + "   " + msg);
         if (eventName == AdmobEvent.onAdLoaded)
         {
             Admob.Instance().showInterstitial();
         }
     }
     void onBannerEvent(string eventName, string msg)
     {
         Debug.Log("handler onAdmobBannerEvent---" + eventName + "   " + msg);
     }
     void onRewardedVideoEvent(string eventName, string msg)
     {
         Debug.Log("handler onRewardedVideoEvent---" + eventName + "   " + msg);
     }
     void onNativeBannerEvent(string eventName, string msg)
     {
         Debug.Log("handler onAdmobNativeBannerEvent---" + eventName + "   " + msg);
     }
 }

download source

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

91 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

UnityAds vs AdMob 0 Answers

Interstitial Ads Network 0 Answers

I can not build my project after I imported Ironsource SDK. 2019.4.5f1 0 Answers

Is ad platform CPIMobi good or bad? 5 Answers

Which ad provider you are using? 1 Answer


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