nabrozidhs / unity_admob_android

Basic Unity3D plugin for AdMob Google Play Services version.
MIT License
25 stars 13 forks source link

Missing AdActivity #4

Closed Gaudon closed 10 years ago

Gaudon commented 10 years ago

The demo constantly says that:

"Missing AdActivity with android:configChanges in AndroidManifest.xml"

I have another plugin running (Bruno's google play services unity plugin) in case they are conflicting.

If I look at Plugins/Android/AndroidManifest.xml I have the following inside the application tags:

<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />

Is this not the correct location for the AndroidManifest file?

nabrozidhs commented 10 years ago

You are having this issue because you are referring to the AdActivity included on the stand alone admob plugin!

In this plugin I'm using the admob version bundled on the google play services. To fix your issue you need to include the following activity on your manifest:

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

Please let me know if that fixes it for you!

Gaudon commented 10 years ago

I was just about to edit this post after discovering that myself.

For anyone else who should read this, if you previously used the old adMob, then yes update the manifest file as shown above.

It does indeed work.

Rahulrsannidhi commented 9 years ago

Iam also facing the same issue i added the in the manifest file same error is occurring.please suggest calling ads in fragment