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
8db8efca
Commit
8db8efca
authored
Jun 04, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
9fcc8e3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
CsjGroMoreManager.kt
...ain/java/com/mints/goodmoney/manager/CsjGroMoreManager.kt
+6
-3
TtCsjAdManager.java
...main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
+1
-0
SplashGroMoreActivity.java
...m/mints/goodmoney/ui/activitys/SplashGroMoreActivity.java
+3
-3
No files found.
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/CsjGroMoreManager.kt
View file @
8db8efca
...
...
@@ -5,11 +5,14 @@ import com.mints.goodmoney.MintsApplication
import
com.mints.goodmoney.mvp.model.AdcodeBean
/**
* 穿山甲GroMore
*/
object
CsjGroMoreManager
{
var
AD_UNIT_EXPRESS_ID
=
"946167770"
var
AD_UNIT_SPLASH_ID
=
"887459392"
var
AD_UNIT_VIDEO_ID
=
"946018378"
var
AD_UNIT_EXPRESS_ID
=
"946167770"
// 信息流
var
AD_UNIT_SPLASH_ID
=
"887459392"
// 开屏
var
AD_UNIT_VIDEO_ID
=
"946018378"
// 激励视频
fun
init
(
application
:
MintsApplication
)
{
TTGroMoreAdManagerHolder
.
init
(
application
)
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/manager/TtCsjAdManager.java
View file @
8db8efca
...
...
@@ -21,6 +21,7 @@ public class TtCsjAdManager {
/*splash*/
public
static
String
TT_AD_SPLASH
=
"887441594"
;
// 开屏
public
static
String
TT_AD_GRO_SPLASH
=
"887486105"
;
// gro兜底开屏
/*banner*/
public
static
String
TT_AD_BANNER_MY
=
"945661050"
;
// 个人中心
...
...
GoodMoney/app/src/main/java/com/mints/goodmoney/ui/activitys/SplashGroMoreActivity.java
View file @
8db8efca
...
...
@@ -95,7 +95,7 @@ public class SplashGroMoreActivity extends BaseActivity {
//自定义兜底方案 选择使用
TTNetworkRequestInfo
ttNetworkRequestInfo
;
//穿山甲兜底
// ttNetworkRequestInfo = new PangleNetworkRequestInfo(TtCsjAdManager.TT_AD_APPID, "887483103"
);
ttNetworkRequestInfo
=
new
PangleNetworkRequestInfo
(
TtCsjAdManager
.
TT_AD_APPID
,
TtCsjAdManager
.
TT_AD_GRO_SPLASH
);
//gdt兜底
// ttNetworkRequestInfo = new GdtNetworkRequestInfo(YlhAdManager.YLH_AD_APPID, "2001697222975737");
//ks兜底
...
...
@@ -105,8 +105,8 @@ public class SplashGroMoreActivity extends BaseActivity {
//step4:请求广告,调用开屏广告异步请求接口,对请求回调的广告作渲染处理
//
mTTSplashAd.loadAd(adSlot, ttNetworkRequestInfo, new TTSplashAdLoadCallback() {
mTTSplashAd
.
loadAd
(
adSlot
,
new
TTSplashAdLoadCallback
()
{
mTTSplashAd
.
loadAd
(
adSlot
,
ttNetworkRequestInfo
,
new
TTSplashAdLoadCallback
()
{
//
mTTSplashAd.loadAd(adSlot, new TTSplashAdLoadCallback() {
@Override
public
void
onSplashAdLoadFail
(
AdError
adError
)
{
LogUtil
.
d
(
TAG
,
adError
.
message
);
...
...
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