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

  • Home
  • SEARCH
  • 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 8968123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:24:00+00:00 2026-06-15T17:24:00+00:00

Admob ads are not appearing in my android app.. I have implemented admob code

  • 0

Admob ads are not appearing in my android app.. I have implemented admob code using XML method. Though adds are not appearing but it is sending requests to admob.. ( 8 requests with 100% fill rate). What am I missing? and how to enable test mode in XML implementation of admob ads?

Here is my main xml file :

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/ScrollView01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@layout/back2"
        android:orientation="vertical"
        android:padding="30dip" >

        <com.google.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
            android:id="@+id/adView1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            ads:adSize="BANNER"
            ads:adUnitId="AdMob ID"
            ads:loadAdOnCreate="true"
            ads:testDevices="TEST_EMULATOR" />

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="60dp"
            android:text="@string/hello"
            android:textSize="15sp" />

        <Button
            android:id="@+id/button1"
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:layout_marginTop="50dp"
            android:background="@color/buttonc1"
            android:text="@string/tutorials"
            android:textSize="21sp" />

        <Button
            android:id="@+id/button2"
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:layout_marginTop="30dp"
            android:background="@color/buttonc3"
            android:text="@string/themes"
            android:textSize="21sp" />

        <Button
            android:id="@+id/button3"
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:layout_marginTop="30dp"
            android:background="@color/buttonc2"
            android:text="@string/gadgets"
            android:textSize="21sp" />

        <Button
            android:id="@+id/button4"
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:layout_marginTop="30dp"
            android:background="@color/buttonc4"
            android:text="@string/networking"
            android:textSize="21sp" />

        <Button
            android:id="@+id/button5"
            android:layout_width="fill_parent"
            android:layout_height="60dp"
            android:layout_marginTop="30dp"
            android:background="@layout/button5"
            android:text="@string/win8index"
            android:textColor="#D5D5D5"
            android:textSize="21sp" />
    </LinearLayout>

</ScrollView>

Here is the manifest.xml file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.core.mywindows8"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="org.core.mywindows8.Corefile"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Contenturl"
            android:label="My Windows 8" >
        </activity>
        <activity
            android:name=".Tutorial"
            android:label="Tutorial Categories" >
        </activity>
        <activity
            android:name=".MainActivity"
            android:label="General Troubleshoot" >
        </activity>
        <activity
            android:name=".Myfeed"
            android:label="Tutorial Categories" >
        </activity>
        <activity
            android:name=".MyWindows"
            android:label="My Windows 8" >
        </activity>
        <activity
            android:name=".Topic"
            android:label="Tutorial Categories" >
        </activity>
        <activity
            android:name=".ActivityNet"
            android:label="Networking and Internet" >
        </activity>
        <activity
            android:name=".Appear"
            android:label="Windows 8 Customization Guide" >
        </activity>
        <activity
            android:name=".HD"
            android:label="Hardware and Drivers" >
        </activity>
        <activity
            android:name=".Index"
            android:label="Windows 8 Master Index" >
        </activity>
        <activity
            android:name=".Inter"
            android:label="Networking Articles" >
        </activity>
        <activity
            android:name=".Short"
            android:label="Shortcut and Context Menu" >
        </activity>
        <activity
            android:name=".StartSc"
            android:label="Taskbar and Start Screen" >
        </activity>
        <activity
            android:name=".Tab"
            android:label="Windows 8 Tablet" >
        </activity>
        <activity
            android:name=".UA"
            android:label="Windows 8 User Account" >
        </activity>
        <activity
            android:name=".Update"
            android:label="Windows 8 Updates and Gadgets" >
        </activity>
        <activity
            android:name=".WinTheme"
            android:label="Windows 8 Themes" >
        </activity>
        <activity
            android:name=".MainActivity1"
            android:label="System and Security" >
        </activity>
        <activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
    </application>

</manifest>
  • 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-06-15T17:24:01+00:00Added an answer on June 15, 2026 at 5:24 pm

    Put the xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" with your AdView and remove from your ListView. (See below) Don’t forget to clean your project.

    Also, remove xmlns:android="http://schemas.android.com/apk/res/android" from your LinearLayout.

    You are not seeing the ad because you haven’t given enough space to your Ad which is preventing display and you should see this message.

    W/Ads(363): Not enough space to show ad! Wants: <480, 75>, Has: <390, 1073741823>

    To see the ad, give more space. Try something like this

    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/ScrollView01"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >
    
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingBottom="30dip"
            android:paddingTop="30dip" >
    
            <com.google.ads.AdView
                xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
                android:id="@+id/adView1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                ads:adSize="BANNER"
                ads:adUnitId="Your Admob ID"
                ads:loadAdOnCreate="true"
                ads:testDevices="TEST_EMULATOR" />
    
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="30dip" >
    
                <!-- Your TextView and Buttons go here -->
    
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
    

    You can see this above, but to put in test mode in your emulator, use the testDevices XML field.

    <com.google.ads.AdView
        xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
        android:id="@+id/adView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        ads:adSize="BANNER"
        ads:adUnitId="your id"
        ads:testDevices="TEST_EMULATOR"
        ads:loadAdOnCreate="true" />
    

    Do add real devices, plug your phone into your computer and run your app on your phone. You’ll see your phone ID in LogCat. Is will say something in green.

    You can ad your other real devices by adding them like this

    ads:testDevices="TEST_EMULATOR, 123356r6xcfgxtysd, 456r4y6rfghghsfgd"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an app that runs perfectly on android 1.6+, but admob ads are
I have fishished an android project and set up admob ads but it's not
I've created an android app and added admob ads to it. but while creating
New at using admob within Android. Is it possible to show ads with certain
I have a admob banner in my app and I've implemented it with the
I want to integrate AdMob ads in my iPhone app. I'm using IB way
i have some troubles on layout on displaying ads from admob. When the app
I developed android app and I used admob sdk 6.2.1 for showing ads, and
I want to implement Admob Tracking in my Android app. The Ads will be
I am attempting to incorporate admob ads in my app. So far I have

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.