Commit bc3b7088 authored by 王雪伟's avatar 王雪伟

修复穿山甲开屏上报问题

parent 339eb7f1
...@@ -239,7 +239,7 @@ public class AdManager ...@@ -239,7 +239,7 @@ public class AdManager
//掌心汇川开屏广告 //掌心汇川开屏广告
ZXHCSplashUtil.Instance.LoadSplshAd(entity, listener, callback); ZXHCSplashUtil.Instance.LoadSplshAd(entity, listener, callback);
break; break;
//风行开屏广告 //风行开屏广告
case ZXADConfig.PLANTFORM_AD_FS: case ZXADConfig.PLANTFORM_AD_FS:
FSSplashUtil.Instance.loadSplashAd(entity, listener, callback); FSSplashUtil.Instance.loadSplashAd(entity, listener, callback);
break; break;
......
...@@ -169,6 +169,7 @@ public class CSJSplshADUtils ...@@ -169,6 +169,7 @@ public class CSJSplshADUtils
public SplashAdInteractionListener(AdEntity entity, CSJSplshADUtils example, ZXADSplashListener listener, AndroidJavaObject activity, AndroidJavaObject splashAdManager) public SplashAdInteractionListener(AdEntity entity, CSJSplshADUtils example, ZXADSplashListener listener, AndroidJavaObject activity, AndroidJavaObject splashAdManager)
{ {
this.entity = entity;
this.csjAD = example; this.csjAD = example;
this.listener = listener; this.listener = listener;
this.activity = activity; this.activity = activity;
......
...@@ -50,6 +50,16 @@ public sealed class Example : MonoBehaviour ...@@ -50,6 +50,16 @@ public sealed class Example : MonoBehaviour
private ExpressAd mExpressBannerAd; private ExpressAd mExpressBannerAd;
private ExpressAd mExpressInterstitialAd; private ExpressAd mExpressInterstitialAd;
private void Awake()
{
#if UNITY_ANDROID
AndroidJavaClass jc = new AndroidJavaClass("com.unity.adcommon.unity.TTADManager");
jc.CallStatic("init", GetActivity(), "5001121");//5001121 5145269
//获取穿山甲权限
SDK.RequestPermissionIfNecessary();
#endif
}
private void OnApplicationFocus(bool focus) private void OnApplicationFocus(bool focus)
{ {
Debug.unityLogger.Log("CSJOnApplicationFocus" + focus); Debug.unityLogger.Log("CSJOnApplicationFocus" + focus);
......
...@@ -103,6 +103,7 @@ public class EventUtils ...@@ -103,6 +103,7 @@ public class EventUtils
/// </summary> /// </summary>
/// <param name="entity"></param> /// <param name="entity"></param>
public static void onEventShowSuccess(AdEntity entity) { public static void onEventShowSuccess(AdEntity entity) {
Debug.unityLogger.Log("UmLog", entity.adPlatform + "1onEventShowSuccess entity.actionName " + entity.actionName);
if (entity == null) if (entity == null)
{ {
return; return;
...@@ -124,6 +125,7 @@ public class EventUtils ...@@ -124,6 +125,7 @@ public class EventUtils
{ {
HttpTool.Instance._GetEvent(entity.imp_tracking[0]); HttpTool.Instance._GetEvent(entity.imp_tracking[0]);
} }
Debug.unityLogger.Log("UmLog", entity.adPlatform+"2onEventShowSuccess entity.actionName " + entity.actionName);
GA.Event(entity.actionName); GA.Event(entity.actionName);
} }
/// <summary> /// <summary>
......
...@@ -8,7 +8,7 @@ EditorBuildSettings: ...@@ -8,7 +8,7 @@ EditorBuildSettings:
- enabled: 0 - enabled: 0
path: Assets/AdSDK/AD/CSJ/Example/Example.unity path: Assets/AdSDK/AD/CSJ/Example/Example.unity
guid: 1e4f8457b1266154e80399e42b932ceb guid: 1e4f8457b1266154e80399e42b932ceb
- enabled: 1 - enabled: 0
path: Assets/AdSDK/InitProject/InitScene.unity path: Assets/AdSDK/InitProject/InitScene.unity
guid: b0fdeff412c9a1f4e82faa8ef0aeb063 guid: b0fdeff412c9a1f4e82faa8ef0aeb063
- enabled: 0 - enabled: 0
......
...@@ -17,7 +17,7 @@ PlayerSettings: ...@@ -17,7 +17,7 @@ PlayerSettings:
defaultCursor: {fileID: 0} defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0} cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
m_ShowUnitySplashScreen: 1 m_ShowUnitySplashScreen: 0
m_ShowUnitySplashLogo: 1 m_ShowUnitySplashLogo: 1
m_SplashScreenOverlayOpacity: 1 m_SplashScreenOverlayOpacity: 1
m_SplashScreenAnimation: 1 m_SplashScreenAnimation: 1
...@@ -175,7 +175,7 @@ PlayerSettings: ...@@ -175,7 +175,7 @@ PlayerSettings:
androidSupportedAspectRatio: 1 androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1 androidMaxAspectRatio: 2.1
applicationIdentifier: applicationIdentifier:
Android: com.ym.awpdd Android: com.ym.wdlc
Lumin: com.DefaultCompany.com.unity.template.mobile2D Lumin: com.DefaultCompany.com.unity.template.mobile2D
Standalone: com.DefaultCompany.com.unity.template.mobile2D Standalone: com.DefaultCompany.com.unity.template.mobile2D
iPhone: com.DefaultCompany.com.unity.template.mobile2D iPhone: com.DefaultCompany.com.unity.template.mobile2D
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment