Merge branch 'main' of http://v4.9ms.co:7777/yufeng/SDK_UnityMoney
This commit is contained in:
commit
ed0073eb9a
|
@ -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)
|
||||||
|
|
|
@ -35,6 +35,9 @@ namespace WZ
|
||||||
AdsKeyEvents.Instance.InitData();
|
AdsKeyEvents.Instance.InitData();
|
||||||
// 获取广告位信息
|
// 获取广告位信息
|
||||||
AdConfigParser.Parse(GetRemoteConfigString("ad_bid_set"));
|
AdConfigParser.Parse(GetRemoteConfigString("ad_bid_set"));
|
||||||
|
// 获取kwai广告位信息
|
||||||
|
KwaiAdsConfigParser.Parse(GetRemoteConfigString("kwai_rv_floor"),true);
|
||||||
|
KwaiAdsConfigParser.Parse(GetRemoteConfigString("kwai_iv_floor"),false);
|
||||||
// 刷新广告位信息
|
// 刷新广告位信息
|
||||||
AdsSDKManager.Instance.RefreshAdsData();
|
AdsSDKManager.Instance.RefreshAdsData();
|
||||||
//AB测试分组参数
|
//AB测试分组参数
|
||||||
|
|
Loading…
Reference in New Issue