Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_goodmoney
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_goodmoney
Commits
3d3e9952
Commit
3d3e9952
authored
Mar 05, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
2e60ed9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
KsVideoAdManager.kt
...ain/java/com/mints/goodmoney/ad/video/KsVideoAdManager.kt
+3
-1
ShVideoAdManager.kt
...ain/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
+1
-1
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/KsVideoAdManager.kt
View file @
3d3e9952
...
@@ -56,6 +56,8 @@ class KsVideoAdManager private constructor(activity: Activity) :
...
@@ -56,6 +56,8 @@ class KsVideoAdManager private constructor(activity: Activity) :
KsAdSDK
.
getLoadManager
().
loadRewardVideoAd
(
scene
,
object
:
KsLoadManager
.
RewardVideoAdListener
{
KsAdSDK
.
getLoadManager
().
loadRewardVideoAd
(
scene
,
object
:
KsLoadManager
.
RewardVideoAdListener
{
override
fun
onError
(
p0
:
Int
,
p1
:
String
?)
{
override
fun
onError
(
p0
:
Int
,
p1
:
String
?)
{
videoAdStatusListener
?.
adFail
()
videoAdStatusListener
?.
adFail
()
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_KS
,
Constant
.
EVENT_TYPE_ONE
,
p0
.
toString
(),
p1
)
}
}
override
fun
onRewardVideoAdLoad
(
p0
:
MutableList
<
KsRewardVideoAd
>?)
{
override
fun
onRewardVideoAdLoad
(
p0
:
MutableList
<
KsRewardVideoAd
>?)
{
...
@@ -93,7 +95,7 @@ class KsVideoAdManager private constructor(activity: Activity) :
...
@@ -93,7 +95,7 @@ class KsVideoAdManager private constructor(activity: Activity) :
override
fun
onVideoPlayError
(
p0
:
Int
,
p1
:
Int
)
{
override
fun
onVideoPlayError
(
p0
:
Int
,
p1
:
Int
)
{
// ToastUtil.show(activity, "快手激励视频⼴告播放出错")
// ToastUtil.show(activity, "快手激励视频⼴告播放出错")
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_KS
,
Constant
.
EVENT_TYPE_ONE
,
(
p0
).
toString
(),
""
)
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_KS
,
Constant
.
EVENT_TYPE_ONE
,
(
p0
).
toString
(),
(
p1
).
toString
()
)
videoAdStatusListener
?.
adFail
()
videoAdStatusListener
?.
adFail
()
}
}
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ad/video/ShVideoAdManager.kt
View file @
3d3e9952
...
@@ -104,7 +104,7 @@ class ShVideoAdManager private constructor(activity: Activity) :
...
@@ -104,7 +104,7 @@ class ShVideoAdManager private constructor(activity: Activity) :
override
fun
onAdFailed
(
adError
:
ADError
)
{
override
fun
onAdFailed
(
adError
:
ADError
)
{
LogUtil
.
d
(
TAG
,
"onAdFailed"
)
LogUtil
.
d
(
TAG
,
"onAdFailed"
)
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_SH
,
Constant
.
EVENT_TYPE_ONE
,
(
adError
.
code
).
toString
(),
""
)
TrackManager
.
getInstance
().
addCallImp
(
Constant
.
AD_SOURCE_SH
,
Constant
.
EVENT_TYPE_ONE
,
(
adError
.
code
).
toString
(),
adError
.
description
)
videoAdStatusListener
?.
adFail
()
videoAdStatusListener
?.
adFail
()
}
}
...
...
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