Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZxAd_Unity
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
ZxAd_Unity
Commits
ab17a83d
Commit
ab17a83d
authored
Mar 08, 2021
by
王雪伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加Umeng上报
parent
e9b45239
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
Splash.cs
Assets/Game/Splash/Splash.cs
+1
-1
UnionApplication.java
Assets/Plugins/Android/UnionApplication.java
+1
-1
UnionApplication.java.meta
Assets/Plugins/Android/UnionApplication.java.meta
+0
-0
EventUtils.cs
Assets/Umeng/EventUtils.cs
+8
-8
No files found.
Assets/Game/Splash/Splash.cs
View file @
ab17a83d
using
System.Collections
;
using
System.Collections
;
using
System.Linq
;
using
System.Linq
;
using
Umeng
;
using
UnityEngine
;
using
UnityEngine
;
using
UnityEngine.Android
;
using
UnityEngine.Android
;
using
UnityEngine.SceneManagement
;
using
UnityEngine.SceneManagement
;
...
@@ -42,7 +43,6 @@ public class Splash : MonoBehaviour
...
@@ -42,7 +43,6 @@ public class Splash : MonoBehaviour
////加载开屏
////加载开屏
//Debug.Log("加载开屏");
//Debug.Log("加载开屏");
StartCoroutine
(
loadSplash
());
StartCoroutine
(
loadSplash
());
}
}
private
IEnumerator
loadSplash
()
private
IEnumerator
loadSplash
()
{
{
...
...
Assets/
AD/CSJ/Example
/UnionApplication.java
→
Assets/
Plugins/Android
/UnionApplication.java
View file @
ab17a83d
...
@@ -22,7 +22,7 @@ public final class UnionApplication extends Application {
...
@@ -22,7 +22,7 @@ public final class UnionApplication extends Application {
super
.
onCreate
();
super
.
onCreate
();
AppliContext
.
init
(
this
);
AppliContext
.
init
(
this
);
//UMConfigure.init(this, "602f890b668f9e17b8b31413", "xynt", UMConfigure.DEVICE_TYPE_PHONE,
"");
UMU3DCommonSDK
.
init
(
this
,
"602f890b668f9e17b8b31413"
,
"xynt"
,
UMConfigure
.
DEVICE_TYPE_PHONE
,
""
);
// TTAdConfig config = new TTAdConfig.Builder()
// TTAdConfig config = new TTAdConfig.Builder()
// //.appId("5001121")
// //.appId("5001121")
// .appId("5145269")
// .appId("5145269")
...
...
Assets/
AD/CSJ/Example
/UnionApplication.java.meta
→
Assets/
Plugins/Android
/UnionApplication.java.meta
View file @
ab17a83d
File moved
Assets/Umeng/EventUtils.cs
View file @
ab17a83d
...
@@ -17,7 +17,7 @@ public class EventUtils
...
@@ -17,7 +17,7 @@ public class EventUtils
map
[
"event"
]
=
Event
;
map
[
"event"
]
=
Event
;
map
[
"action"
]
=
action
;
map
[
"action"
]
=
action
;
HttpTool
.
Instance
.
_PostEvent
(
JsonMapper
.
ToJson
(
map
));
HttpTool
.
Instance
.
_PostEvent
(
JsonMapper
.
ToJson
(
map
));
//
GA.Event(action);
GA
.
Event
(
action
);
}
}
public
static
void
OnEvent
(
string
action
,
string
value
)
public
static
void
OnEvent
(
string
action
,
string
value
)
{
{
...
@@ -26,7 +26,7 @@ public class EventUtils
...
@@ -26,7 +26,7 @@ public class EventUtils
map
[
"action"
]
=
action
;
map
[
"action"
]
=
action
;
map
[
"value"
]
=
value
;
map
[
"value"
]
=
value
;
HttpTool
.
Instance
.
_PostEvent
(
JsonMapper
.
ToJson
(
map
));
HttpTool
.
Instance
.
_PostEvent
(
JsonMapper
.
ToJson
(
map
));
//
GA.Event(action, value);
GA
.
Event
(
action
,
value
);
}
}
/// <summary>
/// <summary>
...
@@ -61,7 +61,7 @@ public class EventUtils
...
@@ -61,7 +61,7 @@ public class EventUtils
{
{
HttpTool
.
Instance
.
_GetEvent
(
entity
.
pullfail_tracking
[
0
]);
HttpTool
.
Instance
.
_GetEvent
(
entity
.
pullfail_tracking
[
0
]);
}
}
//
GA.Event(entity.actionName);
GA
.
Event
(
entity
.
actionName
);
}
}
/// <summary>
/// <summary>
...
@@ -91,7 +91,7 @@ public class EventUtils
...
@@ -91,7 +91,7 @@ public class EventUtils
{
{
HttpTool
.
Instance
.
_GetEvent
(
entity
.
pullsucc_tracking
[
0
]);
HttpTool
.
Instance
.
_GetEvent
(
entity
.
pullsucc_tracking
[
0
]);
}
}
//
GA.Event(entity.actionName);
GA
.
Event
(
entity
.
actionName
);
}
}
/// <summary>
/// <summary>
/// 广告展示成功事件
/// 广告展示成功事件
...
@@ -119,7 +119,7 @@ public class EventUtils
...
@@ -119,7 +119,7 @@ public class EventUtils
{
{
HttpTool
.
Instance
.
_GetEvent
(
entity
.
imp_tracking
[
0
]);
HttpTool
.
Instance
.
_GetEvent
(
entity
.
imp_tracking
[
0
]);
}
}
//
GA.Event(entity.actionName);
GA
.
Event
(
entity
.
actionName
);
}
}
/// <summary>
/// <summary>
/// 广告展示失败事件
/// 广告展示失败事件
...
@@ -148,7 +148,7 @@ public class EventUtils
...
@@ -148,7 +148,7 @@ public class EventUtils
{
{
HttpTool
.
Instance
.
_GetEvent
(
entity
.
showfail_tracking
[
0
]);
HttpTool
.
Instance
.
_GetEvent
(
entity
.
showfail_tracking
[
0
]);
}
}
//
GA.Event(entity.actionName);
GA
.
Event
(
entity
.
actionName
);
}
}
/// <summary>
/// <summary>
/// 广告完成事件
/// 广告完成事件
...
@@ -177,7 +177,7 @@ public class EventUtils
...
@@ -177,7 +177,7 @@ public class EventUtils
{
{
HttpTool
.
Instance
.
_GetEvent
(
entity
.
playcomplete_trackings
[
0
]);
HttpTool
.
Instance
.
_GetEvent
(
entity
.
playcomplete_trackings
[
0
]);
}
}
//
GA.Event(entity.actionName);
GA
.
Event
(
entity
.
actionName
);
}
}
/// <summary>
/// <summary>
...
@@ -207,7 +207,7 @@ public class EventUtils
...
@@ -207,7 +207,7 @@ public class EventUtils
{
{
HttpTool
.
Instance
.
_GetEvent
(
entity
.
clk_tracking
[
0
]);
HttpTool
.
Instance
.
_GetEvent
(
entity
.
clk_tracking
[
0
]);
}
}
//
GA.Event(entity.actionName);
GA
.
Event
(
entity
.
actionName
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment