AdSense in Admob banner?

by groob » Sat, 30 Apr 2011 09:37:52 GMT

Sponsored Links

I'm working right now on adding Admob to my application and I'm
absolutely astounded with the content presented there.
Please follow the details I'm going to describe and tell me if I've
mistaken somewhere or I don't understand this feature.

First - environment: Nexus One (480x800) with CyanogenMod 7.0.2,
Android 2.3.3.
Admob banner defined as 320x50px (AdSize.BANNER).

Instead of "solid" Admob banner, fitting 320x50 px area, I do receive
an xml (or webpage) which is far(!) to tall to fit the space provided.
Moreover, I assume it because built-in handling, over the content
there are strange icons and some navigation links below, what makes it
even taller and completely unreadable, not even thinking of the
I've prepared some screenshots from my device to better illustrate the

The questions I have:
- Have I made a mistake in implementation and 'Ads by Google' can be
excluded from being displayed?
- Maybe my rooted device acts different and it is causing regular
Admob banners to not display?
- Has anyone experienced the same? What are your thoughts? IMO
presenting something like this is nonsense and will only make users
upset - no marketing value, almost impossible to interract with,
providing no information. It is more like a nightmare to both
publisher and advertisers.

Hoping I'm the only one in the dark here.



Re: AdSense in Admob banner?

by Nikolay Elenkov » Sat, 30 Apr 2011 11:24:08 GMT


We can't know without seeing your code. BTW I think you can turn off
the features to display AdSends ads in the Admob console if that
doesn't work for you. You can fix the ad view's height to 50dp, that
would at least make sure it doesn't change size.

Unlikely. I use rooted NexusOne and have never seen this. AdSense
 ads are served only if there are no Admob ads available. Again,

check your Admob console.

I agree it's not nice, but I haven't seen anything like it. Might be some
temporary glitch? Is it consistent?


Sponsored Links

Re: AdSense in Admob banner?

by groob » Sun, 01 May 2011 02:09:44 GMT

 Hello, Nikolay!

Thanks for your answer.

I think it is not the code I should blame here.
When I'm launching on my device Admob's examples (BannerEssentials,
Banner-Details) I get exactly the same result.
Also bannrers in other applications I downloaded from the market look
This makes me more think of my device and applications installed on it
being guilty of the problem.
Unfortunately I have no other Android phone available at the moment
and emulators are displaying correctly red Admob test banner.

It looks to me like AdSense's HTML code is, after being received,
somehow wrapped (interpretted?) by some app installed on my device and
thus not fitting the default 320x50px space.

Your advice on changing Admob console settings doesn't help either -
once AdSense disabled, no ads are received. I think Google want to
teach me a lesson that fill rate will decrease indeed without
AdSense. ;)



Re: AdSense in Admob banner?

by groob » Sun, 01 May 2011 03:25:21 GMT

 I know where's the problem - my network operator in Poland (Era, from
T-Mobile) adds a service called 'Compressor mini' (which is in fact
Opera Mini feature), that is to limit data transfer.
Unfortunately it adds as well this toolbars.

Don't even ask - I'm pissed as hell on them, especially they disagree
to turn it off.


Other Threads

1. Peta Indonesia untuk Sygic versi September 2009

ini gak ada link yang lain?
japri bisa gk mas?

Eko P

"Indonesian Android Community [id-android]" 

2. Need help understanding the ContentObserver life-cycle.

I have "Call Log Widget" on the Android Market:

The core of this Widget is an AppWidgetProvider which registers a
ContentObserver to the CallLog content URI.  This means that my widget
is updated every time a call (incoming, outgoing, missed) is
recorded.  This works fine for a while, until *something happens* and
my ContentObserver stops getting called (no error message seen in
trace).  I would rather that this ContentObserver persisted until the
user removes the Widget.

I am guessing that my JVM has been destroyed (due to low memory?),
ContentObserver garbage collected and/or ContentObserver unregistered
(or just pointing to nothing), but I don't know how to debug this
without restarting my code (and thereby re-registering).

I can hide this bug by periodically re-registering my Content
provider, but I would rather understand the cause and have a more
optimal solution.

Feedback appreciated.

### Code snippet ###
public class CallLogWidgetProvider extends AppWidgetProvider {
    /** Making this static is an attempt to prevent duplicate
ContentObserver registrations. **/
    private static CallObserver sCallObserver;

   /** Method called by onEnabled() and onUpdate(). **/
    private void registerCallObserver(Context context) {
        if (sCallObserver == null) {
            sCallObserver = new CallObserver(null,
true, sCallObserver);

 private class CallObserver extends ContentObserver {
        private Context mContext;

        public CallObserver(Handler handler, Context context) {
            mContext = context;

        public void onChange(boolean b) {
            /** Update all widgets due to a change in content. **/

    //... widget code ...
### Code snippet ###


3. Cara Setting GPRS Telkomsel

4. Your content must have a ListView whose id attribute is '' Problem

5. HP lokal ber Android

6. how to send String/Int from subActivity to mainActivity without close the SubActivity

7. (wta)id imobsters