添加kwai广告行为事件接口
This commit is contained in:
parent
55ceded004
commit
0deccbe270
|
@ -10,6 +10,61 @@ namespace WZ
|
||||||
{
|
{
|
||||||
public class AdsActionEvents
|
public class AdsActionEvents
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public static void TrackKwaiWaterfallRequest(AdsType adsType,string requestId,int waterfallRequestNumber,int parallelRequests)
|
||||||
|
{
|
||||||
|
var eventName = "kwai_waterfall_request";
|
||||||
|
var dic = new Dictionary<string, object> {
|
||||||
|
{ "request_id", requestId},
|
||||||
|
{ "waterfall_request_number", waterfallRequestNumber},
|
||||||
|
{ "parallel_requests", parallelRequests},
|
||||||
|
{ "ad_type", adsType.ToString()}
|
||||||
|
};
|
||||||
|
FireBaseAnalyticsManager.Instance.LogEvent(eventName, dic);
|
||||||
|
ShuShuEvent.Instance.Track(eventName, dic);
|
||||||
|
LoggerUtils.Debug("[actionevent] TrackKwaiWaterfallRequest:" + JsonMapper.ToJson(dic));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TrackKwaiAdunitRequest(AdsType adsType, string requestId, string unitId,
|
||||||
|
float floorPrice, int waterfallRequestNumber, int unitRequestNumber, int floorNumber)
|
||||||
|
{
|
||||||
|
var eventName = "kwai_adunit_request";
|
||||||
|
var dic = new Dictionary<string, object> {
|
||||||
|
{ "request_id", requestId},
|
||||||
|
{ "unit_id", unitId},
|
||||||
|
{ "floor_price", floorPrice},
|
||||||
|
{ "waterfall_request_number", waterfallRequestNumber},
|
||||||
|
{ "unit_request_number", unitRequestNumber},
|
||||||
|
{ "floor_number", floorNumber},
|
||||||
|
{ "ad_type", adsType.ToString()}
|
||||||
|
};
|
||||||
|
FireBaseAnalyticsManager.Instance.LogEvent(eventName, dic);
|
||||||
|
ShuShuEvent.Instance.Track(eventName, dic);
|
||||||
|
LoggerUtils.Debug("[actionevent] TrackKwaiAdunitRequest:" + JsonMapper.ToJson(dic));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TrackKwiWaterfallFill(AdsType adsType, string requestId, string unitId,
|
||||||
|
float floorPrice, int waterfallRequestNumber, int unitRequestNumber, int floorNumber,float value)
|
||||||
|
{
|
||||||
|
var eventName = "kwai_waterfall_fill";
|
||||||
|
var dic = new Dictionary<string, object> {
|
||||||
|
{ "request_id", requestId},
|
||||||
|
{ "unit_id", unitId},
|
||||||
|
{ "floor_price", floorPrice},
|
||||||
|
{ "waterfall_request_number", waterfallRequestNumber},
|
||||||
|
{ "unit_request_number", unitRequestNumber},
|
||||||
|
{ "floor_number", floorNumber},
|
||||||
|
{ "ad_type", adsType.ToString() },
|
||||||
|
{ "value",value}
|
||||||
|
};
|
||||||
|
FireBaseAnalyticsManager.Instance.LogEvent(eventName, dic);
|
||||||
|
ShuShuEvent.Instance.Track(eventName, dic);
|
||||||
|
LoggerUtils.Debug("[actionevent] TrackKwiWaterfallFill" + JsonMapper.ToJson(dic));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void TrackAdClicked(PlatformType adPlatform, string adSource, string adUnitName, AdsType adFormat, string posotion, double value)
|
public static void TrackAdClicked(PlatformType adPlatform, string adSource, string adUnitName, AdsType adFormat, string posotion, double value)
|
||||||
{
|
{
|
||||||
AdPlayCountManager.IncrementAdsActionCount(adFormat, AdPlayCountManager.CLICK_COUNT_SUFFIX);
|
AdPlayCountManager.IncrementAdsActionCount(adFormat, AdPlayCountManager.CLICK_COUNT_SUFFIX);
|
||||||
|
@ -26,7 +81,7 @@ namespace WZ
|
||||||
};
|
};
|
||||||
FireBaseAnalyticsManager.Instance.LogEvent(eventName, dic);
|
FireBaseAnalyticsManager.Instance.LogEvent(eventName, dic);
|
||||||
ShuShuEvent.Instance.Track(eventName, dic);
|
ShuShuEvent.Instance.Track(eventName, dic);
|
||||||
LoggerUtils.Debug("[actionevent] TrackAdClicked:"+JsonMapper.ToJson(dic));
|
LoggerUtils.Debug("[actionevent] TrackAdClicked:" + JsonMapper.ToJson(dic));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void TrackAdClosed(PlatformType adPlatform, string adSource, string adUnitName, AdsType adFormat, string posotion, double value)
|
public static void TrackAdClosed(PlatformType adPlatform, string adSource, string adUnitName, AdsType adFormat, string posotion, double value)
|
||||||
|
|
Loading…
Reference in New Issue