Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4116650
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:44:05+00:00 2026-05-20T22:44:05+00:00

I have a problem with google adview… it’s not showing up. I dug around

  • 0

I have a problem with google adview… it’s not showing up. I dug around a for a while and saw that people where having issues with padding, so I removed the padding and still no luck.

Here is my relevant manifest data:

    <activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation"/>

    <meta-data 
        android:value="a14d91b10f12454" 
        android:name="ADMOB_PUBLISHER_ID" />
</application>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

And my XML:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_height="fill_parent" android:layout_width="fill_parent" android:background="@drawable/greygradient">
<ScrollView android:id="@+id/scrollView1" android:layout_height="fill_parent" android:layout_width="fill_parent" android:layout_above="@+id/linearLayout2" android:padding="15dp">
    <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical">
        <LinearLayout android:orientation="horizontal" android:layout_height="wrap_content" android:layout_width="fill_parent" android:padding="5dp">
            <ImageView android:src="@drawable/icon" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/imageviewdetail"></ImageView>
            <TextView android:text="TextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_marginLeft="5dp" android:id="@+id/textviewdetailname" android:textSize="18dp"></TextView>
        </LinearLayout>
    <!-- Snip -->
    </LinearLayout>
</ScrollView>
<LinearLayout android:id="@+id/linearLayout2" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_alignParentBottom="true" android:orientation="vertical">
    <Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:text="Sign Up!" android:id="@+id/buttondetailsubmit" android:layout_margin="15dp" android:layout_marginTop="10dp" ></Button>
    <com.google.ads.AdView android:id="@+id/googleads" android:layout_width="fill_parent" android:layout_height="wrap_content"></com.google.ads.AdView>
</LinearLayout>

And finally, the code that is running the ad:

AdView ad = (AdView)findViewById(R.id.googleads);
ad.setEnabled(true);
ad = new AdView(this, AdSize.BANNER, "a14d91b10f12454");
AdRequest r = new AdRequest();
r.setTesting(true);
ad.loadAd(r);

In my LogCat, it shows that I am recieving ads. And in AdMob admin panel you can see that there have been successful requests made.. but I cannot get the stupid view to actually show up!

Anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:44:06+00:00Added an answer on May 20, 2026 at 10:44 pm

    You aren’t adding the AdView to your layout when you create the new AdView with

    ad = new AdView(this, AdSize.BANNER, "a14d91b10f12454");
    

    You should remove the AdView from the xml and do this.

    LinearLayout parent = (LinearLayout) findViewById(R.id.linearLayout2);
    AdView ad = new AdView(this, AdSize.BANNER, "a14d91b10f12454");
    parent.addView(ad);
    AdRequest r = new AdRequest();
    r.setTesting(true);
    ad.loadAd(r);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a strange problem with Google Maps showing differently in IE and the
I have problem where google chrome is showing: The site uses SSL, but Google
I have problem in some JavaScript that I am writing where the Switch statement
I do not have problem as such but I am quite new to Ruby.
I have problem optimizing drawing Google-like map. It works OK for hundreds of points,
I have a problem with Google suggest API when using Chinese locale. I am
I have problem with displaying adsense ads in ie7 google adsense adds an iframe
I have a big problem with Google Chrome and its memory. My app is
First post, have found many answers here, so hopes are high. The problem: Google
I have problem with translating this sentence: Running in-house systems means that you can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.