打印日志
This commit is contained in:
parent
5959868867
commit
c0aa3c972d
|
@ -39,7 +39,7 @@ namespace WZ
|
|||
|
||||
NativeOverlayAd.Load(adUnitId, new AdRequest(), new NativeAdOptions(), (NativeOverlayAd ad, LoadAdError error) =>
|
||||
{
|
||||
LoggerUtils.Debug($"[Admob] Native Ad unit {adUnitId} loaded {ad} error {error}");
|
||||
LoggerUtils.Debug($"[Admob] Native Ad unit {adUnitId} load end. {ad} error {error}");
|
||||
if (error != null || ad == null)
|
||||
{
|
||||
if (!_retryCounters.TryAdd(adUnitId, 0))
|
||||
|
@ -55,9 +55,10 @@ namespace WZ
|
|||
|
||||
_retryCounters[adUnitId] = 0;
|
||||
|
||||
LoggerUtils.Debug("Admob Native ad loaded with response : " + ad.GetResponseInfo().ToString());
|
||||
var nativeEcpm = AdmobUtils.GetNativeEcpm(ad);
|
||||
_nativeAds[adUnitId] = ad;
|
||||
_adRevenueCache[adUnitId] = AdmobUtils.GetNativeEcpm(ad);
|
||||
_adRevenueCache[adUnitId] = nativeEcpm;
|
||||
LoggerUtils.Debug($"Admob Native ad loaded with nativeEcpm = {nativeEcpm} response : " + ad.GetResponseInfo().ToString());
|
||||
AdsKeyEvents.Instance.LogAdFPUEvents(AdsType.Native);
|
||||
|
||||
ad.OnAdPaid += (AdValue adValue) =>
|
||||
|
|
Loading…
Reference in New Issue