Commit e3010c7e authored by zhangzhe's avatar zhangzhe

修改bug

parent 8e41b015
...@@ -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);
} }
......
...@@ -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();
} }
......
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