Admob shows Test ads but not real ads
I'm using admob for showing android ads. The test ads are working fine but real ads are not shown. Also, I've no issue with real interstitial ads as they work fine. Just the real banner ads are not showing up. My java code is
private InterstitialAd interstitial;
interstitial = new InterstitialAd(MainActivity.this);
interstitial.setAdUnitId("ca-app-pub-********");
AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();
// Load ads into Banner Ads
adView.loadAd(adRequest);
// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);
The Layout file is
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />
</LinearLayout>
android admob
add a comment |
I'm using admob for showing android ads. The test ads are working fine but real ads are not shown. Also, I've no issue with real interstitial ads as they work fine. Just the real banner ads are not showing up. My java code is
private InterstitialAd interstitial;
interstitial = new InterstitialAd(MainActivity.this);
interstitial.setAdUnitId("ca-app-pub-********");
AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();
// Load ads into Banner Ads
adView.loadAd(adRequest);
// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);
The Layout file is
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />
</LinearLayout>
android admob
PostAndroidManifest.xml
. Postbuild.gradle
.
– Jared Burrows
Mar 10 '15 at 0:00
4
Did you ever find a solution as I'm having the exact same problem?
– Shredder2794
Jun 3 '16 at 23:27
finally hows you solved your issue?
– himCream
Dec 1 '16 at 11:12
Could you resolve the issue?
– Azrael94
Mar 3 '17 at 19:16
I think you don't need to add anything to your layout file, if you are using intersitial ads.
– Piotr Sagalara
Mar 15 '17 at 0:16
add a comment |
I'm using admob for showing android ads. The test ads are working fine but real ads are not shown. Also, I've no issue with real interstitial ads as they work fine. Just the real banner ads are not showing up. My java code is
private InterstitialAd interstitial;
interstitial = new InterstitialAd(MainActivity.this);
interstitial.setAdUnitId("ca-app-pub-********");
AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();
// Load ads into Banner Ads
adView.loadAd(adRequest);
// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);
The Layout file is
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />
</LinearLayout>
android admob
I'm using admob for showing android ads. The test ads are working fine but real ads are not shown. Also, I've no issue with real interstitial ads as they work fine. Just the real banner ads are not showing up. My java code is
private InterstitialAd interstitial;
interstitial = new InterstitialAd(MainActivity.this);
interstitial.setAdUnitId("ca-app-pub-********");
AdView adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
// Add a test device to show Test Ads
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
.build();
// Load ads into Banner Ads
adView.loadAd(adRequest);
// Load ads into Interstitial Ads
//interstitial.loadAd(adRequest);
The Layout file is
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-********" />
</LinearLayout>
android admob
android admob
asked Mar 9 '15 at 16:54
Vishal AfreVishal Afre
1832624
1832624
PostAndroidManifest.xml
. Postbuild.gradle
.
– Jared Burrows
Mar 10 '15 at 0:00
4
Did you ever find a solution as I'm having the exact same problem?
– Shredder2794
Jun 3 '16 at 23:27
finally hows you solved your issue?
– himCream
Dec 1 '16 at 11:12
Could you resolve the issue?
– Azrael94
Mar 3 '17 at 19:16
I think you don't need to add anything to your layout file, if you are using intersitial ads.
– Piotr Sagalara
Mar 15 '17 at 0:16
add a comment |
PostAndroidManifest.xml
. Postbuild.gradle
.
– Jared Burrows
Mar 10 '15 at 0:00
4
Did you ever find a solution as I'm having the exact same problem?
– Shredder2794
Jun 3 '16 at 23:27
finally hows you solved your issue?
– himCream
Dec 1 '16 at 11:12
Could you resolve the issue?
– Azrael94
Mar 3 '17 at 19:16
I think you don't need to add anything to your layout file, if you are using intersitial ads.
– Piotr Sagalara
Mar 15 '17 at 0:16
Post
AndroidManifest.xml
. Post build.gradle
.– Jared Burrows
Mar 10 '15 at 0:00
Post
AndroidManifest.xml
. Post build.gradle
.– Jared Burrows
Mar 10 '15 at 0:00
4
4
Did you ever find a solution as I'm having the exact same problem?
– Shredder2794
Jun 3 '16 at 23:27
Did you ever find a solution as I'm having the exact same problem?
– Shredder2794
Jun 3 '16 at 23:27
finally hows you solved your issue?
– himCream
Dec 1 '16 at 11:12
finally hows you solved your issue?
– himCream
Dec 1 '16 at 11:12
Could you resolve the issue?
– Azrael94
Mar 3 '17 at 19:16
Could you resolve the issue?
– Azrael94
Mar 3 '17 at 19:16
I think you don't need to add anything to your layout file, if you are using intersitial ads.
– Piotr Sagalara
Mar 15 '17 at 0:16
I think you don't need to add anything to your layout file, if you are using intersitial ads.
– Piotr Sagalara
Mar 15 '17 at 0:16
add a comment |
10 Answers
10
active
oldest
votes
When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network. Be patience it will work after some days.
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
add a comment |
Remove the line that says
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
1
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
add a comment |
"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."
I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).
I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.
May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo
add a comment |
You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111
If you use above then you will see test ads.
Make sure you change to your own unit id before releasing the app.
add a comment |
If you have removed:
.addTestDevice()
Then, make sure you are using the same ID that AdMob gave you in your string.xml file
AdMob ID page
add a comment |
Look at your logcat. It will say why real ads are not being shown.
It's probably because there are none available to show for your device, in your location, right now.
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
That's the same scenario.
– William
Mar 10 '15 at 7:52
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
1
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
1
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
|
show 2 more comments
To create a Live Ad unit id
Sign In to
https://apps.admob.com
- in the left side menu click on ->Apps
- add app
- choose whether you have published your app on Google Play or the App Store
- if no -> Enter your app information
- Create Ad unit
- replace the test Ad unit with the new Ad unit.
- you get to see the AD once the app is published to playstore!
inside your xml add AdView
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
inside Strings
<string name="banner_ad_unit_id">your_new_ad_unit</string>
in your java code
AdView mAdView = (AdView) v.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
add a comment |
If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express
NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);
<com.google.android.gms.ads.NativeExpressAdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ca-app-123123123123/123123123"
ads:adSize="320x150">
</com.google.android.gms.ads.NativeExpressAdView>
add a comment |
I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
I think that firebase can detect if you use the simulator or the real device. I've used firebase:
com.google.firebase:firebase-ads:11.0.4
add a comment |
Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
add a comment |
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network. Be patience it will work after some days.
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
add a comment |
When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network. Be patience it will work after some days.
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
add a comment |
When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network. Be patience it will work after some days.
When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network. Be patience it will work after some days.
answered Mar 13 '18 at 6:09
Mukesh ChauhanMukesh Chauhan
17215
17215
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
add a comment |
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
I have the same issue and its been 2 days my real ads (banner ad) is not displayed .. how many days do i have to wait more ? Here is my published app url:play.google.com/store/apps/…
– Usman lqbal
Jan 20 at 7:14
add a comment |
Remove the line that says
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
1
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
add a comment |
Remove the line that says
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
1
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
add a comment |
Remove the line that says
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?
Remove the line that says
.addTestDevice("4CCC00EF4EA205A6FE82E1AEB26B0839")
Also, when you use a virtual device, it shows the test ads no matter what. Are you testing it on a real device?
answered Mar 9 '15 at 17:42
MarshallMarshall
74031335
74031335
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
1
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
add a comment |
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
1
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Yeah, I'm testing on real device... If I keep that line then I get a test ad on my real device... But no ad when I remove the line
– Vishal Afre
Mar 9 '15 at 18:55
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
Have you added all that is needed to your manifest?
– Marshall
Mar 9 '15 at 18:59
1
1
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
Of course... Had I not added them in my manifest then how could have I got real interstitial ads
– Vishal Afre
Mar 10 '15 at 3:43
add a comment |
"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."
I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).
I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.
May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo
add a comment |
"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."
I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).
I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.
May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo
add a comment |
"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."
I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).
I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.
May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo
"It could be that you have only recently created a new Ad Unit ID and requesting for live ads. It could take a few hours for ads to start getting served if that is that case."
I faced the same problem, if you can show test ads, it's fine, live ads will be showed soon (of course after you removed .addTestDevice(...) ).
I guess that google need time to collect some information (location, age, gender...) to show properly ads that can interest user.
May be you know but NEVER forget: DON NOT touch the live ads, you will be banned soon.
https://groups.google.com/forum/#!category-topic/google-admob-ads-sdk/android/fBe3YL3ffpo
answered Nov 24 '16 at 6:57
Think Twice Code OnceThink Twice Code Once
1,7911423
1,7911423
add a comment |
add a comment |
You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111
If you use above then you will see test ads.
Make sure you change to your own unit id before releasing the app.
add a comment |
You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111
If you use above then you will see test ads.
Make sure you change to your own unit id before releasing the app.
add a comment |
You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111
If you use above then you will see test ads.
Make sure you change to your own unit id before releasing the app.
You might be using the sample unit id: ca-app-pub-3940256099942544/6300978111
If you use above then you will see test ads.
Make sure you change to your own unit id before releasing the app.
answered Mar 2 '17 at 10:57
VikasVikas
3,13012632
3,13012632
add a comment |
add a comment |
If you have removed:
.addTestDevice()
Then, make sure you are using the same ID that AdMob gave you in your string.xml file
AdMob ID page
add a comment |
If you have removed:
.addTestDevice()
Then, make sure you are using the same ID that AdMob gave you in your string.xml file
AdMob ID page
add a comment |
If you have removed:
.addTestDevice()
Then, make sure you are using the same ID that AdMob gave you in your string.xml file
AdMob ID page
If you have removed:
.addTestDevice()
Then, make sure you are using the same ID that AdMob gave you in your string.xml file
AdMob ID page
answered Jan 4 '17 at 4:49
Javier CastroJavier Castro
6326
6326
add a comment |
add a comment |
Look at your logcat. It will say why real ads are not being shown.
It's probably because there are none available to show for your device, in your location, right now.
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
That's the same scenario.
– William
Mar 10 '15 at 7:52
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
1
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
1
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
|
show 2 more comments
Look at your logcat. It will say why real ads are not being shown.
It's probably because there are none available to show for your device, in your location, right now.
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
That's the same scenario.
– William
Mar 10 '15 at 7:52
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
1
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
1
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
|
show 2 more comments
Look at your logcat. It will say why real ads are not being shown.
It's probably because there are none available to show for your device, in your location, right now.
Look at your logcat. It will say why real ads are not being shown.
It's probably because there are none available to show for your device, in your location, right now.
answered Mar 9 '15 at 23:55
WilliamWilliam
16.6k74078
16.6k74078
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
That's the same scenario.
– William
Mar 10 '15 at 7:52
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
1
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
1
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
|
show 2 more comments
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
That's the same scenario.
– William
Mar 10 '15 at 7:52
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
1
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
1
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
May be... Or is it so that I've just created ca-pub id for the ad and it takes some time to make the ads available???
– Vishal Afre
Mar 10 '15 at 3:46
That's the same scenario.
– William
Mar 10 '15 at 7:52
That's the same scenario.
– William
Mar 10 '15 at 7:52
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
I checked the Logcat. It says "No fill from ad server". What could that mean??
– Vishal Afre
Mar 10 '15 at 9:05
1
1
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
That means that the ad server currently has no ads to show for you. Exactly what I said it might. This is an expected state. It will happen from time to time.
– William
Mar 11 '15 at 10:28
1
1
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
No. Whether ads are served is totally orthogonal to whether your app has been published on Google Play.
– William
Mar 12 '15 at 1:36
|
show 2 more comments
To create a Live Ad unit id
Sign In to
https://apps.admob.com
- in the left side menu click on ->Apps
- add app
- choose whether you have published your app on Google Play or the App Store
- if no -> Enter your app information
- Create Ad unit
- replace the test Ad unit with the new Ad unit.
- you get to see the AD once the app is published to playstore!
inside your xml add AdView
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
inside Strings
<string name="banner_ad_unit_id">your_new_ad_unit</string>
in your java code
AdView mAdView = (AdView) v.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
add a comment |
To create a Live Ad unit id
Sign In to
https://apps.admob.com
- in the left side menu click on ->Apps
- add app
- choose whether you have published your app on Google Play or the App Store
- if no -> Enter your app information
- Create Ad unit
- replace the test Ad unit with the new Ad unit.
- you get to see the AD once the app is published to playstore!
inside your xml add AdView
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
inside Strings
<string name="banner_ad_unit_id">your_new_ad_unit</string>
in your java code
AdView mAdView = (AdView) v.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
add a comment |
To create a Live Ad unit id
Sign In to
https://apps.admob.com
- in the left side menu click on ->Apps
- add app
- choose whether you have published your app on Google Play or the App Store
- if no -> Enter your app information
- Create Ad unit
- replace the test Ad unit with the new Ad unit.
- you get to see the AD once the app is published to playstore!
inside your xml add AdView
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
inside Strings
<string name="banner_ad_unit_id">your_new_ad_unit</string>
in your java code
AdView mAdView = (AdView) v.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
To create a Live Ad unit id
Sign In to
https://apps.admob.com
- in the left side menu click on ->Apps
- add app
- choose whether you have published your app on Google Play or the App Store
- if no -> Enter your app information
- Create Ad unit
- replace the test Ad unit with the new Ad unit.
- you get to see the AD once the app is published to playstore!
inside your xml add AdView
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id">
</com.google.android.gms.ads.AdView>
inside Strings
<string name="banner_ad_unit_id">your_new_ad_unit</string>
in your java code
AdView mAdView = (AdView) v.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
edited Oct 27 '17 at 10:34
answered Oct 27 '17 at 10:27
Amrutha SajAmrutha Saj
1,012525
1,012525
add a comment |
add a comment |
If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express
NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);
<com.google.android.gms.ads.NativeExpressAdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ca-app-123123123123/123123123"
ads:adSize="320x150">
</com.google.android.gms.ads.NativeExpressAdView>
add a comment |
If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express
NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);
<com.google.android.gms.ads.NativeExpressAdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ca-app-123123123123/123123123"
ads:adSize="320x150">
</com.google.android.gms.ads.NativeExpressAdView>
add a comment |
If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express
NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);
<com.google.android.gms.ads.NativeExpressAdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ca-app-123123123123/123123123"
ads:adSize="320x150">
</com.google.android.gms.ads.NativeExpressAdView>
If you chose the Native Express template then use this link. NativeExpressAdView won't work with AdView. https://firebase.google.com/docs/admob/android/native-express
NativeExpressAdView adView = (NativeExpressAdView)findViewById(R.id.adView);
<com.google.android.gms.ads.NativeExpressAdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="ca-app-123123123123/123123123"
ads:adSize="320x150">
</com.google.android.gms.ads.NativeExpressAdView>
answered Sep 26 '16 at 9:43
Adam MendozaAdam Mendoza
2,78621826
2,78621826
add a comment |
add a comment |
I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
I think that firebase can detect if you use the simulator or the real device. I've used firebase:
com.google.firebase:firebase-ads:11.0.4
add a comment |
I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
I think that firebase can detect if you use the simulator or the real device. I've used firebase:
com.google.firebase:firebase-ads:11.0.4
add a comment |
I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
I think that firebase can detect if you use the simulator or the real device. I've used firebase:
com.google.firebase:firebase-ads:11.0.4
I also was faced with this problem. AdView and IntersitialAd showed me only test advertisements on the simulator. But there were real advertisements on the real device.
I think that firebase can detect if you use the simulator or the real device. I've used firebase:
com.google.firebase:firebase-ads:11.0.4
answered Aug 5 '17 at 13:08
MalderMalder
1,7141833
1,7141833
add a comment |
add a comment |
Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
add a comment |
Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
add a comment |
Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.
Actually, I also faced this problem. You have to log in to admob and go to the app you added there. That app has an admob id. Use the id of the app to do these steps.
Then create a new banner or whatever type of ad in that app (in admob) and use the id of that banner to complete these steps. When you create a banner, it will give you the instructions itself.
answered Aug 16 '18 at 12:23
Umer SoftwaresUmer Softwares
62
62
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
add a comment |
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
Can you add what relevant steps are needed from your links?
– ivcubr
Aug 16 '18 at 12:50
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
These are not only steps, it is a full tutorial on developer.google.com so I felt, instead of rewriting it all, one can visit and see it himself.
– Umer Softwares
Aug 17 '18 at 12:54
add a comment |
Post
AndroidManifest.xml
. Postbuild.gradle
.– Jared Burrows
Mar 10 '15 at 0:00
4
Did you ever find a solution as I'm having the exact same problem?
– Shredder2794
Jun 3 '16 at 23:27
finally hows you solved your issue?
– himCream
Dec 1 '16 at 11:12
Could you resolve the issue?
– Azrael94
Mar 3 '17 at 19:16
I think you don't need to add anything to your layout file, if you are using intersitial ads.
– Piotr Sagalara
Mar 15 '17 at 0:16