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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:12:19+00:00 2026-06-18T08:12:19+00:00

I am trying to integrate AdMob to my application. Here is the error that

  • 0

I am trying to integrate AdMob to my application. Here is the error that i am getting…

02-01 12:34:03.184: E/Ads(23819): The android:configChanges value of the com.google.ads.AdActivity must include screenLayout.
02-01 12:34:03.184: E/Ads(23819): The android:configChanges value of the com.google.ads.AdActivity must include uiMode.
02-01 12:34:03.184: E/Ads(23819): The android:configChanges value of the com.google.ads.AdActivity must include screenSize.
02-01 12:34:03.184: E/Ads(23819): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize.
02-01 12:34:03.184: E/Ads(23819): You must have AdActivity declared in AndroidManifest.xml with configChanges.
02-01 12:34:03.204: I/webview(23819): skipInvalidates
02-01 12:34:03.214: I/webview(23819): skipInvalidates
02-01 12:34:03.224: I/webclipboard(23819): clipservice: android.sec.clipboard.ClipboardExManager@407af360
02-01 12:34:03.714: V/webviewdatabase(23819): TCP pre connection: creating table in database
02-01 12:34:04.064: I/webview(23819): skipInvalidates
02-01 12:34:04.084: I/webview(23819): skipInvalidates
02-01 12:34:04.084: I/webclipboard(23819): clipservice: android.sec.clipboard.ClipboardExManager@407af360
02-01 12:34:04.094: I/webview(23819): skipInvalidates
02-01 12:34:04.254: I/webview(23819): skipInvalidates

Here is the Android Manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xx.xxx"
    android:versionCode="3"
    android:versionName="1.1.1" >

    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>


    <application
        android:icon="@drawable/icon5"
        android:label="@string/app_name">
        <activity
            android:label="@string/app_name"
            android:name=".xxx" >
            <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"/>



        <activity android:name="com.xx.xxx.History"></activity>
        <activity android:name="com.xx.xxx.CommandsList"></activity>
        <activity android:name="com.xx.xxx.CommandsHelp"></activity>
    </application>

</manifest>

Answer for the above part

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

Now the application executes without any errors, but the ad doesn’t get displayed. Here is the logcat. Can someone let me know, what the problem is?

   02-01 12:49:15.904: I/Ads(24565): To get test ads on this device, call adRequest.addTestDevice("E0AE86FC822746EB3E5BAB6E54B48BCB");
    02-01 12:49:15.984: I/webview(24565): skipInvalidates
    02-01 12:49:16.104: I/Ads(24565): adRequestUrlHtml: 
<html><head>
<script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_getSdkConstants();AFMA_buildAdURL(
{"kw":[],"preqs":0,"session_id":"8235404278524521238","u_sd":1,"seq_num":"1","slotname":" a1510b61966655f","u_w":320,"msid":"com.xx.xxx","js":"afma-sdk-a-v6.2.1","mv":"8016010.com.android.vending","isu":"E0AE86FC822746EB3E5BAB6E54B48BCB","cipa":0,"bas_off":0,"format":"320x50_mb","oar":0,"net":"wi","app_name":"3.android.com.xx.xxx","hl":"en","ad_pos":{"height":0,"visible":0,"y":0,"x":0,"width":0},"gnt":2,"u_h":480,"carrier":"40413","bas_on":0,"ptime":0,"u_audio":1});</script></head><body></body></html>
    02-01 12:49:17.554: W/webcore(24565): Can't get the viewWidth after the first layout
    02-01 12:49:17.624: W/Ads(24565): Invalid unknown request error: Cannot determine request type. Is your ad unit id correct?
    02-01 12:49:17.634: I/Ads(24565): onFailedToReceiveAd(Invalid Ad request.)

I am using a scrollview to display the content. I want to display the ad at the bottom of the screen, after the content. I am using LinearLayout inside scrollview.

 <LinearLayout
                android:id="@+id/linearLayout9"
                android:layout_width="match_parent"
                android:layout_height="45px"
                android:layout_marginBottom="2px"
                android:background="#000000" >

                <TextView
                    android:id="@+id/txtViewAdvertisement"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:text="ADVERTISEMENT"
                    android:textSize="16px"
                    android:layout_gravity="center_horizontal" />


                <com.google.ads.AdView android:id="@+id/adView"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         ads:adUnitId=" a1510b619xxxxx"
                         ads:adSize="BANNER"
                         ads:loadAdOnCreate="true"/>



            </LinearLayout>

Please let me know if you need more info.

Thanks!!!

it seems the problem is with the scrollview that I am using. I will ask a separate question on this. Accepting answer for my first part.

  • 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-18T08:12:20+00:00Added an answer on June 18, 2026 at 8:12 am

    Try this

    <activity
                android:name="com.google.ads.AdActivity"
                 android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"  />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to integrate ads (admob) into my Android app. It's mostly working, except
I am trying to integrate AdMob into my Android Application, and can get it
I'm trying to integrate an admob banner into my Android game. I have a
Trying to integrate ProGuard in my android-maven project release phase. It seam that I'm
Been having some trouble trying to integrate the admob sdk into my application to
I'm trying to integrate Video4Linux in my managed application. Indeed I've declared all required
Hi I'm trying to integrate MySpace with my Android app. As I'm new to
I'm trying to integrate bean validation using hibernate validator to my web application :
Im trying to integrate a toolwindow in a Winforms application, it will be a
I am trying to integrate facebook sdk 3.1.1, I am getting issue in authenticating

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.