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

修复穿山甲开屏上报问题

parent 339eb7f1
......@@ -169,6 +169,7 @@ public class CSJSplshADUtils
public SplashAdInteractionListener(AdEntity entity, CSJSplshADUtils example, ZXADSplashListener listener, AndroidJavaObject activity, AndroidJavaObject splashAdManager)
{
this.entity = entity;
this.csjAD = example;
this.listener = listener;
this.activity = activity;
......
......@@ -50,6 +50,16 @@ public sealed class Example : MonoBehaviour
private ExpressAd mExpressBannerAd;
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)
{
Debug.unityLogger.Log("CSJOnApplicationFocus" + focus);
......
......@@ -103,6 +103,7 @@ public class EventUtils
/// </summary>
/// <param name="entity"></param>
public static void onEventShowSuccess(AdEntity entity) {
Debug.unityLogger.Log("UmLog", entity.adPlatform + "1onEventShowSuccess entity.actionName " + entity.actionName);
if (entity == null)
{
return;
......@@ -124,6 +125,7 @@ public class EventUtils
{
HttpTool.Instance._GetEvent(entity.imp_tracking[0]);
}
Debug.unityLogger.Log("UmLog", entity.adPlatform+"2onEventShowSuccess entity.actionName " + entity.actionName);
GA.Event(entity.actionName);
}
/// <summary>
......
......@@ -8,7 +8,7 @@ EditorBuildSettings:
- enabled: 0
path: Assets/AdSDK/AD/CSJ/Example/Example.unity
guid: 1e4f8457b1266154e80399e42b932ceb
- enabled: 1
- enabled: 0
path: Assets/AdSDK/InitProject/InitScene.unity
guid: b0fdeff412c9a1f4e82faa8ef0aeb063
- enabled: 0
......
......@@ -17,7 +17,7 @@ PlayerSettings:
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
m_ShowUnitySplashScreen: 1
m_ShowUnitySplashScreen: 0
m_ShowUnitySplashLogo: 1
m_SplashScreenOverlayOpacity: 1
m_SplashScreenAnimation: 1
......@@ -175,7 +175,7 @@ PlayerSettings:
androidSupportedAspectRatio: 1
androidMaxAspectRatio: 2.1
applicationIdentifier:
Android: com.ym.awpdd
Android: com.ym.wdlc
Lumin: com.DefaultCompany.com.unity.template.mobile2D
Standalone: 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