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 7062827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:38:27+00:00 2026-05-28T04:38:27+00:00

^ there is the image so you know I’m using sdk 3.2. There is

  • 0

Project Explorer Window

^ there is the image so you know I’m using sdk 3.2. There is more to this code, but basically this is everything for my java code inside my main one, and it doesn’t load my ads when I go to load them. There are no errors and nothing in my Main.XML for the ad Basically the ad is not showing at all

import com.google.ads.AdRequest;
import com.google.ads.AdSize;
import com.google.ads.AdView;

public class LearningLettersActivity extends Activity

    private AdView adView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // Create the adView    
        adView = new AdView(this, AdSize.BANNER, "aXXXXXXXXXXXXXXXX); //<---My   Publisher Id there"    
        // Lookup your LinearLayout assuming it’s been given    
        // the attribute android:id="@+id/mainLayout"    \
        LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout);   
        // Add the adView to it   
        layout.addView(adView);  
        // Initiate a generic request to load it with an ad   
        adView.loadAd(new AdRequest()); 

Here is my manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.better.work.learning.letters.and.more"
          android:versionCode="3"
          android:versionName="1.00">
    <application
            android:icon="@drawable/icon"
            android:label="@string/app_name">
        <activity
                android:name=".LearningLettersActivity"
                android:label="@string/app_name"
                android:screenOrientation="landscape">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    </application>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-sdk android:minSdkVersion="4"/>
</manifest>

Basically nothing is pooping up for my ads at all when I go to test it on my phone, I tried using the code below and still nothing.

AdRequest adrequest = new AdRequest();
adrequest.setTesting (true);
adView.loadAd(adrequest);

I’ve also tried:

AdRequest adrequest = new AdRequest();
adrequest.setTesting (true);
adrequest.setTestingDevices("HT0CWHL11423") //<--- the name of my phone that appears when I go to load the emulator tab
adView.loadAd(adrequest);

Result:

01-18 03:50:19.874: E/Ads(16938): Could not find com.google.ads.AdActivity, please make sure it is registered in AndroidManifest.xml.
01-18 03:50:19.874: E/Ads(16938): You must have AdActivity declared in AndroidManifest.xml with configChanges.
  • 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-28T04:38:27+00:00Added an answer on May 28, 2026 at 4:38 am

    Look in the logcat for anything with the Tag Ads. Specifically, look for something like:

    Ad Request successful, but no ad returned due to lack of inventory.

    It is possible that you are not getting ads back because AdMob cannot fill an ad.

    There are a couple of things to note here. AdRequest.setTesting(true), which only used to set test mode for emulators, is deprecated in favor of AdRequest.addTestDevice(AdRequest.TEST_EMULATOR) for setting test mode on an emulator. For setting a test device, the device id you are supposed to enter is a hashed device id, which you can find in the logcat as well if you are debugging on your device.

    Finally, the picture that you’re using shows you have the SDK included for a ButtonMasher app, but the code you provided looks like it’s for a Letter Learning app. Make sure you are indeed using 4.3.1 in this app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you visit this site , you will see that there is an image
There are lots of non-image-based CAPTCHA ideas floating around. But what about the old-fashioned
There are some nice free image to ASCII art conversion sites like this one:
Ok we all know that nesting an image view inside of a scroll view
there's a container with background-color and padding specified. there's an image inside it. in
I would like to know if there is an image processing toolbox available for
Does anyone out there know what image format results in the fastest loading speeds?
Is there an Image cropping Activity in Android? I know that when you save
Does anyone know why there are question marks (with a number) after the images
I have an audio track with an image slideshow - e.g. there's image 1

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.