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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:47:38+00:00 2026-05-29T22:47:38+00:00

I am adding admob adview in my android application’s activity : my code is

  • 0

I am adding admob adview in my android application’s activity :

my code is :

in xml file :

<Linearlayout 
>
<Button />
<Button />
<com.google.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/res/com.sos.emergency"
            android:id="@+id/adView"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            ads:adSize="BANNER"
            ads:adUnitId="publisherid" />
</Linearlayout>

in my activity :

AdView adview = (AdView)findViewById(R.id.adView);
        adview.loadAd(new AdRequest());
        adview.setAdListener(this);

And now i am getting following error :

Logcat :

  02-13 12:03:42.784: E/Ads(271): The android:configChanges value of the com.google.ads.AdActivity must include screenLayout.
02-13 12:03:42.784: E/Ads(271): The android:configChanges value of the com.google.ads.AdActivity must include uiMode.
02-13 12:03:42.784: E/Ads(271): The android:configChanges value of the com.google.ads.AdActivity must include screenSize.
02-13 12:03:42.784: E/Ads(271): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize.
02-13 12:03:42.784: E/Ads(271): You must have AdActivity declared in AndroidManifest.xml with configChanges.

And in my manifest file i have added following :

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

please tell me where i need to edit the code to show ads on my application.

Please see the screen shot of adview it is showing

You must have AdActivity declared in AndroidManifest.xml with
configChange

ScreenShot

  • 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-29T22:47:39+00:00Added an answer on May 29, 2026 at 10:47 pm

    Are you using the new version of the AdMob SDK (4.3.1)? If you are, you’re activity would probably have some extra items under configChanges as below:

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

    Also, if you do this and you don’t have the target set in your project.properties file (probably need to set target=android-13 or higher assuming you have an Android SDK of 3.2 or higher).

    Found this info in a blog post here.

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

Sidebar

Related Questions

after adding adMob ads to my application, I have noticed some strange memory behaviour.
I'm adding AdMob ads (say that five times fast) to my finished, published Android
My application integrates with AdMob ads. When I change the orientation it should fit
Do i need to put android app to market first before adding admob or
Nothing about how to implement ads via admob into an application or anything. I'm
I'm just getting started with adding admob to my android app and have started
I am adding google admob banner as subview to appdelegate.now on certain page i
Using this project: https://github.com/dalexsoto/Monotouch-AdMob-Bindings I am adding the AdMob .a to my MonoTouch app.
I have a project that uses the Google AdMob Ads SDK. I'm trying to
Adding the row one by one in the button click.. (i tried but its

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.