Unity의 마지막 sdk (7.3.2)로 revmob을 업데이트합니다. Unity 4.5 Pro를 사용하고 있습니다. 광고가 표시되지 않는 것을 제외하면 모든 것이 올바르게 작동하는 것 같습니다. 디버그는 배너 광고가 표시된다고 말하지만 화면에는 아무 것도없고 아무 것도 클릭하지 않습니다 .... 또한 게임을 시작할 때 Eula Popup을 얻지는 못합니다.RevMob 광고가 표시되지 않습니다.
나는 의사가 무엇이든 놓치지 않았다고 생각한다. (아마도 나는 당신의 도움이 필요한 이유를 놓쳤을 것이다.) 그것이 말한대로 모든 것이 설정되는 것 같습니다. Proguard를 사용하지 않아 googleplayservice 프로 가드 단계를 수행하지 않았습니다.
여기 매니페스트의 :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="1" android:versionName="1.0" package="com.bas.revmobtesting" 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:debuggable="false">
<activity android:label="@string/app_name" android:name="com.bas.revmobtesting.UnityPlayerNativeActivity" android:screenOrientation="portrait" 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" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
</activity>
<activity android:configChanges="keyboardHidden|orientation" android:name="com.revmob.ads.fullscreen.FullscreenActivity" android:theme="@android:style/Theme.Translucent">
</activity>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
</application>
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="20" />
<uses-feature android:glEsVersion="0x00020000" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
여기에 간단한 스크립트입니다 : 사전에
public class RevMobTesting : MonoBehaviour, IRevMobListener
{
private static readonly Dictionary<String, String> REVMOB_APP_IDS = new Dictionary<String, String>() {
{ "Android", "My_ANDROID_ID"},
{ "IOS", "My_IOS_ID" }
};
private RevMob revmob;
void Awake()
{
revmob = RevMob.Start (REVMOB_APP_IDS, gameObject.name);
revmob.SetTestingMode (RevMob.Test.WITH_ADS);
revmob.PrintEnvironmentInformation();
}
private void Start()
{
#if UNITY_ANDROID || UNITY_IPHONE
RevMobBanner banner = revmob.CreateBanner();
banner.Show();
#endif
}
#region IRevMobListener implementation
public void SessionIsStarted()
{
Debug.Log ("Session started.");
}
public void SessionNotStarted (string revMobAdType)
{
Debug.Log ("Session not started.");
}
public void AdDidReceive (string revMobAdType)
{
Debug.Log ("Ad did receive.");
}
public void AdDidFail (string revMobAdType)
{
Debug.Log ("Ad did fail.");
}
public void AdDisplayed (string revMobAdType)
{
Debug.Log ("Ad displayed.");
}
public void UserClickedInTheAd (string revMobAdType)
{
Debug.Log ("Ad clicked.");
}
public void UserClosedTheAd (string revMobAdType)
{
Debug.Log ("Ad closed.");
}
public void InstallDidReceive (string message)
{
Debug.Log ("Install received");
}
public void InstallDidFail (string message)
{
Debug.Log ("Install not received");
}
public void EulaIsShown()
{
Debug.Log ("Eula is displayed");
}
public void EulaAccepted()
{
Debug.Log ("Eula was accepted");
}
public void EulaRejected()
{
Debug.Log ("Eula was rejected");
}
#endregion
}
감사합니다, 데이비드
몇 가지 테스트를 거친 후에 전체 화면 광고가 작동하고있는 것으로 보이지만 배너를 사용하는 경우 표시되지 않습니다 ... 그리고 EULA 팝업이 전혀 표시되지 않았습니다 ... –
마지막으로, 유일한 문제는 배너입니다. revmob에 연락 한 후 EULA 팝업은 결정할 때까지 표시되지 않습니다. 배너 문제에 관한 소식을 기다리는 중 :) –