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 /
avatar image
0
Question by frodoe7 · Aug 31, 2015 at 04:00 PM · adsadmobintegrationmoney

Admob ads not shown

any help will be appreciated

I finished my first android game 3 days ago && I want to put ads before publishing it

up till now , I did not manage to integrate AdMob ads in my game

according to unity console : the ads created , requested , loaded and shown successfully

but never shown in my android device

maybe AdMob blocked my account from receiving ads as I tested the ads too much(just impressions no clicks)

I can`t publish my game up till now , so any help will be appreciated !!

Comment
Add comment · Show 9
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 31, 2015 at 09:34 AM 0
Share

Write code which you have used to show ad. .

avatar image frodoe7 · Aug 31, 2015 at 06:01 PM 0
Share
 using UnityEngine;
 using Google$$anonymous$$obileAds.Api;
 public class ads : $$anonymous$$onoBehaviour
 {
 bool called = false;
 void Start()
 {
 
     if (Application.loadedLevelName == "gameplay")
     {
         interesRequest(called);
     }
     if (Application.loadedLevelName == "main$$anonymous$$enu")
     {
         bannerRequest();
     }
     if (Application.loadedLevelName == "levelScore")
     {
 
     }
 }
 void bannerRequest()
 {
     BannerView bannerView = new BannerView("ca-app-pub-5443208681329246/6087569010", AdSize.Banner, AdPosition.Bottom);
     AdRequest request = new AdRequest.Builder().Build();
     bannerView.LoadAd(request);
     bannerView.Show();
 }
 void interesRequest(bool call)
 {
     InterstitialAd inters = new InterstitialAd("ca-app-pub-5443208681329246/7564302219");
     if (call)
     {
         if (inters.IsLoaded())
         {
             inters.Show();
             called = false;
         }
     }
     else
     {
         AdRequest request = new AdRequest.Builder().Build();
         inters.LoadAd(request);
     }
 }
 void Update()
 {
     if (called)
        interesRequest(called);
 }
 public void On$$anonymous$$ouseDown()
 {
     if (gameObject.name == "pause")
     {
         if (menu.bug)
         {
             called = true;
         }
     }
 }
 }
avatar image frodoe7 · Aug 31, 2015 at 06:04 PM 0
Share

I tested my adUnits in working codes 100%

but also not shown it ..

so , maybe Ad$$anonymous$$ob blocked my account from receiving ads as I tested the ads too much(just impressions no clicks)

avatar image DilipS · Sep 01, 2015 at 01:31 PM 0
Share

It is better you show the code you are using when calling the ad. Also check if your Android $$anonymous$$anifest has internet permission.... Also, don't forget to tick testing in the Admob console.

avatar image pmaloo · Sep 01, 2015 at 04:58 PM 1
Share

Are you using Unity Remote or are you installing the app on Bluestacks? From what I recall, Unity apps don't work on Bluestacks. Let me repeat, you will not see any ads if you are testing via Unity Remote.

For more information regarding logcate usage, check: http://developer.android.com/tools/help/logcat.html

If you have Eclipse/Android Studio already installed, you can just fire those up and see the logs in logcat view.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by baji321 · May 25, 2017 at 07:10 AM

Same issue here bro I added the failure callback and displayed the error message, i got internal error ... :(

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 · Jul 15, 2017 at 02:54 AM

This may help https://github.com/unity-plugins/Unity-Admob

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

9 People are following this question.

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

Related Questions

Buttons don't work with AdMob 1 Answer

Admob iOS Rewarded Videos don't close 0 Answers

Banner Ads which contain animated ads affect the performance of the game !! 2 Answers

Admob interstitial ads works, but rewarded video doesn't work 0 Answers

The ads on my game runs when I run it on development build but not in release build. 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