topon firebase/数数 广告收益上报
This commit is contained in:
parent
1f44d8263d
commit
edc7ba49ff
|
@ -280,8 +280,6 @@ namespace Script.SDKManager.AdsSDKManager.MaxAdsManager
|
|||
type == AdsType.Rewarded ? _rvPos : "",
|
||||
AdPlayCountManager.GetAdPlayCount(type));
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -125,11 +125,9 @@ namespace Script.SDKManager.AdsSDKManager.TpnAdsManager
|
|||
private void OnAdVideoStartEvent(object sender, ATAdEventArgs erg)
|
||||
{
|
||||
LoggerUtils.Debug("[Tpn] 广告开始播放:" + JsonMapper.ToJson(erg.callbackInfo.toDictionary()));
|
||||
// todo
|
||||
AdjustTrackEvent.Instance.TrackAdEvent(erg.callbackInfo.publisher_revenue,
|
||||
"Topon_" +erg.callbackInfo.network_firm_id,
|
||||
erg.callbackInfo.adunit_id,
|
||||
erg.callbackInfo.network_placement_id);
|
||||
|
||||
TrackAdImpression(erg);
|
||||
|
||||
ThreadUtils.QueueOnMainThread(pObj =>
|
||||
{
|
||||
if (erg.placementId.Equals(topon_rewarded_units))
|
||||
|
@ -223,5 +221,31 @@ namespace Script.SDKManager.AdsSDKManager.TpnAdsManager
|
|||
public double GetBannerRevenue() { return 0; }
|
||||
public void DisplayBanner() { }
|
||||
#endregion
|
||||
|
||||
#region 广告收益上报
|
||||
public void TrackAdImpression(ATAdEventArgs erg)
|
||||
{
|
||||
AdjustTrackEvent.Instance.TrackAdEvent(erg.callbackInfo.publisher_revenue,
|
||||
ClientName + "_" + erg.callbackInfo.network_firm_id,
|
||||
erg.callbackInfo.adunit_id,
|
||||
erg.callbackInfo.network_placement_id);
|
||||
|
||||
FireBaseAnalyticsManager.Instance.OnAdRevenueEvent(ClientName,
|
||||
ClientName + "_" + erg.callbackInfo.network_firm_id,
|
||||
erg.callbackInfo.adunit_id,
|
||||
erg.placementId.Equals(topon_rewarded_units) ? AdsType.Rewarded.ToString() : AdsType.Interstitial.ToString(),
|
||||
erg.callbackInfo.publisher_revenue,
|
||||
erg.placementId.Equals(topon_rewarded_units) ? _rvPos : "",
|
||||
AdPlayCountManager.GetAdPlayCount(erg.placementId.Equals(topon_rewarded_units) ? AdsType.Rewarded : AdsType.Interstitial));
|
||||
|
||||
ShuShuEvent.Instance.OnAdRevenueEvent(ClientName,
|
||||
ClientName + "_" + erg.callbackInfo.network_firm_id,
|
||||
erg.callbackInfo.adunit_id,
|
||||
erg.placementId.Equals(topon_rewarded_units) ? AdsType.Rewarded.ToString() : AdsType.Interstitial.ToString(),
|
||||
erg.callbackInfo.publisher_revenue,
|
||||
erg.placementId.Equals(topon_rewarded_units) ? _rvPos : "",
|
||||
AdPlayCountManager.GetAdPlayCount(erg.placementId.Equals(topon_rewarded_units) ? AdsType.Rewarded : AdsType.Interstitial));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue