Hola gente! Pensé que mi post de ayer el último antes de navidad, pero no, un seguidor ya no sabe que hacer para poder instalar el ultimo game services con admob y me pidió ayuda, como no le pude ayudar por comentarios decidí hacer un vídeo, aquí les muestro como instalar el plugin Admob y Google Game services en Unity para este enero del 2016… o al menos hasta que salga una nueva versión de google ads.
Una versión funcional del manifest de Unity:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="mi.juego.bonito" android:installLocation="preferExternal"> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true" /> <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:debuggable="false" android:isGame="true" android:banner="@drawable/app_banner"> <activity android:label="@string/app_name" android:name="com.unity3d.player.UnityPlayerActivity" android:screenOrientation="fullSensor" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|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" /> <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> </intent-filter> <meta-data android:name="unityplayer.UnityActivity" android:value="true" /> </activity> <!-- Denote the referenced Google Play services version --> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <!-- Required for Nearby Connections API --> <meta-data android:name="com.google.android.gms.nearby.connection.SERVICE_ID" android:value="" /> <!-- the space in these forces it to be interpreted as a string vs. int --> <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ " /> <meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="\ " /> <!--Include the AdActivity and InAppPurchaseActivity configChanges and themes. --> <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.android.gms.ads.AdActivity" android:theme="@android:style/Theme.Translucent" /> <activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity" android:theme="@style/Theme.IAPTheme" /> </application> <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" /> <!-- Google Mobile Ads Permissions --> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-feature android:glEsVersion="0x00020000" /> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" /> <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" /> </manifest>
Acá pueden descargar el proyecto:
https://app.box.com/s/xck2pl5tebxhywgyutvyvpaatfrdebcb
Les deseo a todos una feliz navidad a todos menos a Richy que saca $1600 dolares mensuales con sus juegos, el ya esta en navidad desde hace 6 meses 😛
Suerte!