Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_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
王雪伟
wdlc_mjb_unity
Commits
e3010c7e
Commit
e3010c7e
authored
Jul 19, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
8e41b015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
GDTFeedAdUtil.cs
Assets/Base/AdSDK/AD/GDT/GDTFeedAdUtil.cs
+2
-0
GDTInterstitialAdUtil.cs
Assets/Base/AdSDK/AD/GDT/GDTInterstitialAdUtil.cs
+2
-0
No files found.
Assets/Base/AdSDK/AD/GDT/GDTFeedAdUtil.cs
View file @
e3010c7e
...
@@ -42,7 +42,9 @@ public class GDTFeedAdUtil
...
@@ -42,7 +42,9 @@ public class GDTFeedAdUtil
NativeExpressAd
ad
=
new
NativeExpressAd
(
entity
.
codeId
,
GetAdSize
());
NativeExpressAd
ad
=
new
NativeExpressAd
(
entity
.
codeId
,
GetAdSize
());
nativeExpressAd
=
ad
;
nativeExpressAd
=
ad
;
#if UNITY_IOS
ad
.
SetEnableDefaultAudioSessionSetting
(
false
);
ad
.
SetEnableDefaultAudioSessionSetting
(
false
);
#endif
ad
.
SetListener
(
new
FeedAdListener
(
entity
,
callback
));
ad
.
SetListener
(
new
FeedAdListener
(
entity
,
callback
));
ad
.
LoadAd
(
1
);
ad
.
LoadAd
(
1
);
}
}
...
...
Assets/Base/AdSDK/AD/GDT/GDTInterstitialAdUtil.cs
View file @
e3010c7e
...
@@ -39,7 +39,9 @@ public class GDTInterstitialAdUtil
...
@@ -39,7 +39,9 @@ public class GDTInterstitialAdUtil
//string posId = Constants.intersititialNoVideoPosId;//不带视频的插屏广告测试Id
//string posId = Constants.intersititialNoVideoPosId;//不带视频的插屏广告测试Id
UnifiedInterstitialAd
ad
=
new
UnifiedInterstitialAd
(
entity
.
codeId
);
UnifiedInterstitialAd
ad
=
new
UnifiedInterstitialAd
(
entity
.
codeId
);
#if UNITY_IOS
ad
.
SetEnableDefaultAudioSessionSetting
(
false
);
ad
.
SetEnableDefaultAudioSessionSetting
(
false
);
#endif
ad
.
SetListener
(
new
UnifiedInterstitialAdListener
(
entity
,
ad
,
null
,
callback
));
ad
.
SetListener
(
new
UnifiedInterstitialAdListener
(
entity
,
ad
,
null
,
callback
));
ad
.
LoadAd
();
ad
.
LoadAd
();
}
}
...
...
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