Mr32Bit
Mr32Bit

Reputation: 221

AdMob SDK 4.3.1 - I can't display banner

I have follow all the steps on AdMob tutorial, but when I run my application instead the banner there is "You must have AdActivity declared in AndroidManifest.xml with configChanges"

My AndroidManifest is :

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

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

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" >

<activity android:label="@string/app_name" android:name=".FPGActivity" >
<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"/>        

</application>

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


</manifest>

I think all is correct, why I cant display the banner?

Best regards

Upvotes: 1

Views: 3236

Answers (1)

sven
sven

Reputation: 4171

You are missing some entries in the configChanges attribute of the Admob AdActivity -- see Google's description here. This may also cause you to change your build target. Read my detailed answer to the related quetsion Admob implementation Error.

Upvotes: 2

Related Questions