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 Youendi · Apr 15, 2015 at 07:13 PM · androidadmob

AdMob not showing ads on Android.. Getting "network error" in logcat

Hi everyone,

I'm programming my first game with unity, and I've been working on for a month. I wanted to use Admob from google to display ads but i can't make it work on my device (tried on Nexus 5 and S2).

I followed the tutorial from google : https://github.com/googleads/googleads-mobile-plugins/tree/master/unity

I manage to make the GoogleAdsDemoScript work on Unity, i.e it displays "Dummy CreateBannerView" and "Dummy ShowBannerView", which means it should work fine. But I compiled it on my device and ads don't show.. I 've tried to debug it thanks to adb logcat, and i got this error everytime I clicked on a button :

I/Unity ( 9078): HandleFailedToReceiveAd event received with message: Network Error

I/Unity ( 9078):

I/Unity ( 9078): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebug.gen.cpp Line: 56)

I searched on the net, but no answer found :/

Here is my AndroidManifest.xml :


 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.google.unity"
     android:versionName="1.0"
     android:versionCode="1">
   <uses-sdk android:minSdkVersion="9"
       android:targetSdkVersion="19" />
   <!-- Google Mobile Ads Permissions -->
   <uses-permission android:name="android.permission.INTERNET"/>
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
   <application>
     <!-- Denote the referenced Google Play services version -->
     <meta-data android:name="com.google.android.gms.version"
         android:value="@integer/google_play_services_version" />
     <!-- Google Mobile Ads Activity -->
     <activity android:name="com.google.android.gms.ads.AdActivity"
         android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
   </application>
 </manifest>



Thanks for any help !

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
1

Answer by fadsel · Apr 20, 2015 at 02:47 PM

Give it some time , like 3 mins for initial ad request , it will show up after 48hrs in your adMob account

PS:you need to wait atleast 24 hrs for the Ads to work if you are running them for the first time , cheers

Comment
Add comment · Show 2 · 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 Youendi · Apr 20, 2015 at 02:53 PM 0
Share

Thanks for your answer :) I'll see then but I thought I waited enough .. I'll tell !

avatar image Youendi · May 08, 2015 at 04:36 PM 0
Share

I have tried once again but still nothing. I gave my admob ID to a friend and it worked on his iOS device. What should I do?

Thanks

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Admob on iOS and Android. Interstitial ads are showing but events are not firing. 1 Answer

Two Android Manifest file in same folder 1 Answer

Google Admob (V.6.1.2) crashing Android game on device built with Unity 2020.3.19 1 Answer

How to implement Admob Native Ads on a ScrollRect in Unity 2 Answers

Problem with closing an android app 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