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
1
Question by tjmorris · Sep 06, 2017 at 03:16 AM · admobbanner

AdMob Banner not showing

I'm trying to show banner ads through Google AdMob in my Unity 3D game, but am unable to get them to display in the app.

I am building for iOS only and am following the documentation here: https://developers.google.com/admob/unity/start

These are the versions I am using:

 Unity Version: 2017.1.0f3
 AdMob: v3.6.3 
 xCode: Version 8.3.3 
 Testing: iPhone 7+ w/ iOS 10.3.3 (via TestFlight)

In Unity, I'm seeing the "Banner requested" and "Banner shown" messages show in the console as a result of Debug.Log. I'm also seeing the create, load, and show for the Bannerview in the console:

 GoogleMobileAds.Common.DummyClient:CreateBannerView(String, AdSize, AdPosition)
 GoogleMobileAds.Api.BannerView:LoadAd(AdRequest) 
 GoogleMobileAds.Common.DummyClient:ShowBannerView() 

However, I still am not seeing any banner ads display in the game.

I've seen on some other related questions where the answers says that it can take some time for AdMob to register your account properly, and that ads don't display right away. However, that does not seem to be the case as I have had this ad unit created in AdMob for about a week and have had this app build on my device via TestFlight for a few days now.

Below are the relevant sections of code.

Any idea why the banner ads are not showing? Would really appreciate help on this!

 using System;
 using UnityEngine;
 using GoogleMobileAds;
 using GoogleMobileAds.Api;
 
 if(vars.bannerActive){
                 RequestBanner ();
                 Debug.Log ("Banner requested");
                 bannerView.Show ();
                 Debug.Log ("Banner shown");
             }
     
     
     private void RequestBanner()
         {
             #if UNITY_ANDROID
             string adUnitId = vars.adMobBannerID;
             #elif UNITY_IPHONE
             string adUnitId = "ca-app-pub-140832337799xxxx/615064xxxx";
             #else
             string adUnitId = "unexpected_platform";
             #endif
     
             bannerView = new BannerView(adUnitId, AdSize.Banner, bannerPos[vars.bannerAdPoisiton]);
             AdRequest request = new AdRequest.Builder().Build();
             bannerView.LoadAd(request);
         }
     


 

 
 



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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by guojin · Feb 26, 2018 at 10:53 PM

Uninstall unity and install again?

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

113 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 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

Admob banner not showing 1 Answer

AdMob banner ad not showing! 1 Answer

I would like to move the banner ad location of Unity AdMob to the location I want. 0 Answers

Admob Banner Has Shown Only Twice in Two Weeks 0 Answers

How to move the UI down when an ad banner appears 0 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