Questions tagged [adview]

Google Adview is an API to show advertisements from Google Admob / AdSense on smartphones and tablets on the Android, iOS and Windows Mobile platforms.

Google Adview is an API to show advertisements from Google Admob / AdSense on smartphones and tablets on the Android, iOS and Windows Mobile platforms.

Questions tagged with are related to the operation and behaviour of this API.

API homepage

300 questions
4
votes
1 answer

Problems loading AdView inside a RecyclerView

I've been looking in Stackoverflow how to integrate an AdView inside a RecyclerView. I've been following these posts: One, two Basically the way to do it is calling loadAd inside onCreateViewHolder or inside the constructor of the ViewHolder. Either…
Rafael Ruiz Muñoz
  • 5,333
  • 6
  • 46
  • 92
4
votes
4 answers

Android google ads error (null reference ?)

I am actually stuck in this error for the last 24h and still can't find solution the error description: 11-06 18:53:37.745: E/AndroidRuntime(1698): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void …
Souf
  • 611
  • 2
  • 14
  • 36
4
votes
2 answers

Java nullpointer exception from Webview in android.webkit.WebViewClassic.loadDataWithBaseURL

Following the suggestions provided in this question I modified my AdMob code to be compliant with the recommendations, that effectively worked reducing the number of exceptions that were appearing. However a new exception is rising. The code is the…
Trebia Project.
  • 930
  • 2
  • 17
  • 36
4
votes
1 answer

Android: Using both adjustPan and adjustResize doesn't work but I need both

I haven't officially decided if I want to head this route or not but I have an adview in my XML document. The XML document contains a Relative layout that contains a ScrollView and and Adview. The Adview sticks to the bottom of the relative layout…
4
votes
0 answers

admob adview animation causes glsurfaceview to lag

I am having problems with getting a standard banner adView to "play nice" with my GLSurfaceView. When the adView changes states (switches between its 3 appearances), it causes a noticeable drop in frame rate in the GLSurfaceView. Here is the code…
Werner
  • 769
  • 2
  • 6
  • 19
4
votes
1 answer

AdMob error (Error inflating class com.google.ads.AdView)

I try to put AdMob, copied the library in libs, registered in the manifest:
comSaaxov
  • 73
  • 1
  • 8
4
votes
0 answers

AdView bug causing all webviews stop loading when orientation changes and multi-threads are running?

I just found a problem with Adview when screen orientation changes and multi-threads are running. I think this might be a bug of Adview. And this problem impacts all the webviews in the application. The webviews stop loading any content, i.e. they…
4
votes
2 answers

How to get best admob size for current screen configuration?

Background I wish to show an ad using admob on my app, but I also wish to show there something while it is being loaded (before it's being shown) or maybe even when there is no internet connection. The problem It seems that admob has a wide range of…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
4
votes
1 answer

Admob mediation - publisher ID vs Mediation ID

I want to know what is the right paradigm for Admob mediation. so far, I've got a normal AdView banner. this is how think it should work: onFailedToReceiveAd - catch this event which mean admob cannot supply ads. create new AdView banner with the…
socksocket
  • 4,271
  • 11
  • 45
  • 70
3
votes
3 answers

Android Admob 4.1.1 has a memory leak (see attached test project). Cause/fix/work around?

I have a test project which demonstrates a memory leak caused by Admob 4.1.1. The basic scenario is I have two activities and I switch back and forth between the main and the sub activity several times. I then switch to DDMS and force a few GCs.…
timothyjc
  • 2,188
  • 3
  • 29
  • 54
3
votes
0 answers

Why does my Admob banner flicker to the top on reload?

I have created an Adview and moved it to the bottom of the screen. The adview starts correctly on the bottom, but whenever the adview loads a new ad, it briefly jumps to the top of the screen, then returns to the bottom. I initialize and show the…
Raptisoft
  • 203
  • 1
  • 10
3
votes
3 answers

Performance issue with Admob banners in multiple fragments

I have an app that has one main activity with FrameLayout. Many fragments are created according to users' input. Every fragment has one admob banner ad using Adview. I add fragments using the code; getSupportFragmentManager().beginTransaction() …
Mtok
  • 1,600
  • 11
  • 36
  • 62
3
votes
1 answer

Activity restart on rotation change

I have an activity. That activity contains a Fragment within a ViewPager. The fragment needs to copy files (with a ProgressDialog), but when I rotate the screen when it is busy, the activity restarts and everything just stops. I tried adding…
3
votes
2 answers

Why is Android View jumping to Admob ad?

I'm a fairly new Android app programmer trying to implement ads in an app. I'm including a Banner ad in a fragment like so
squeegene
  • 467
  • 1
  • 5
  • 18
3
votes
1 answer

PublisherAdView is not showing ad,but adListener tells me that ad is loaded

guys. I have two PublisherAdViews in project(here will be test app) with sizes BANNER and MEDIUM_RECTANGLE. BANNER size is working great,but MEDIUM_RECTANGLE is not,I can only see glimpses on the screen(like shadow pop-up) and then just screen…
boohaky
  • 33
  • 1
  • 7
1 2
3
19 20