4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Unity4.3 Android Admob 広告をクリック出来ない!

Last updated at Posted at 2013-11-23
AndroidManifest.xml
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />

そもそも、マニフェストファイルにクリックを許可するために上記1行を追記しなければならないのだが、Unity4.3から、このmeta-dataタグを「入れるべき行(場所)が変わった」ようだ。

これまでは、

activity android:label="@string/app_name" android:launchMode="singleTask" うんたらかんたら

でしたが、ちょっと上の

activity android:name="com.unity3d.player.UnityPlayerProxyActivity"

の中に入れてください。

AndroidManifest.xml
<activity android:label="@string/app_name" android:name="com.unity3d.player.UnityPlayerProxyActivity" android:launchMode="singleTask" android:screenOrientation="sensor" android:configChanges="locale|mcc|mnc|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
    </activity>

参考URL
http://forum.unity3d.com/threads/195169-Google-Admob-plugin-for-Unity-ad-is-not-clickable

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?