改用sdk上报finder

This commit is contained in:
xiaohui.wang 2022-07-05 14:43:56 +08:00
parent 6bde57b019
commit bf206f083a
4 changed files with 35 additions and 33 deletions

View File

@ -227,17 +227,17 @@ public class JoyPacAdverManager : MonoBehaviour
if (onSetInterstitialListener_onAdOpened != null) if (onSetInterstitialListener_onAdOpened != null)
onSetInterstitialListener_onAdOpened(json); onSetInterstitialListener_onAdOpened(json);
if (!string.IsNullOrEmpty(json) && !JoypacAdManager.IntersShow) //if (!string.IsNullOrEmpty(json) && !JoypacAdManager.IntersShow)
{ //{
JoypacAdManager.IntersShow = true; // JoypacAdManager.IntersShow = true;
//Dictionary<string, object> values = new Dictionary<string, object>(); // //Dictionary<string, object> values = new Dictionary<string, object>();
Dictionary<string, object> jsonTemp = new Dictionary<string, object>(); // Dictionary<string, object> jsonTemp = new Dictionary<string, object>();
jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);// // jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);//
JoypacAnalyticsManager.Instance.APPAdsShow(jsonTemp); // JoypacAnalyticsManager.Instance.APPAdsShow(jsonTemp);
} //}
} }
@ -261,17 +261,17 @@ public class JoyPacAdverManager : MonoBehaviour
if (onSetInterstitialListener_onClick != null) if (onSetInterstitialListener_onClick != null)
onSetInterstitialListener_onClick(json); onSetInterstitialListener_onClick(json);
if (!string.IsNullOrEmpty(json)) //if (!string.IsNullOrEmpty(json))
{ //{
Dictionary<string, object> jsonTemp = new Dictionary<string, object>(); // Dictionary<string, object> jsonTemp = new Dictionary<string, object>();
jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);// // jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);//
JoypacAnalyticsManager.Instance.APPAdsClick(jsonTemp); // JoypacAnalyticsManager.Instance.APPAdsClick(jsonTemp);
} //}
} }
void setInterstitialListener_onRequestAd (string json) void setInterstitialListener_onRequestAd (string json)
@ -442,18 +442,18 @@ public class JoyPacAdverManager : MonoBehaviour
if (onSetRewardListener_onRewardedVideoStarted != null) if (onSetRewardListener_onRewardedVideoStarted != null)
onSetRewardListener_onRewardedVideoStarted(json); onSetRewardListener_onRewardedVideoStarted(json);
if (!string.IsNullOrEmpty(json) && !JoypacAdManager.VideoShow) //if (!string.IsNullOrEmpty(json) && !JoypacAdManager.VideoShow)
{ //{
JoypacAdManager.VideoShow = true; // JoypacAdManager.VideoShow = true;
Dictionary<string, object> jsonTemp = new Dictionary<string, object>(); // Dictionary<string, object> jsonTemp = new Dictionary<string, object>();
jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);// // jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);//
JoypacAnalyticsManager.Instance.APPAdsShow(jsonTemp); // JoypacAnalyticsManager.Instance.APPAdsShow(jsonTemp);
} //}
} }
void setRewardListener_onRewardedVideoCompleted (string json) void setRewardListener_onRewardedVideoCompleted (string json)
@ -469,17 +469,17 @@ public class JoyPacAdverManager : MonoBehaviour
if (onSetRewardListener_onRewardedVideoClickAd != null) if (onSetRewardListener_onRewardedVideoClickAd != null)
onSetRewardListener_onRewardedVideoClickAd(json); onSetRewardListener_onRewardedVideoClickAd(json);
if (!string.IsNullOrEmpty(json)) //if (!string.IsNullOrEmpty(json))
{ //{
Dictionary<string, object> jsonTemp = new Dictionary<string, object>(); // Dictionary<string, object> jsonTemp = new Dictionary<string, object>();
jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);// // jsonTemp = JsonMapper.ToObject<Dictionary<string, object>>(json);//
JoypacAnalyticsManager.Instance.APPAdsClick(jsonTemp); // JoypacAnalyticsManager.Instance.APPAdsClick(jsonTemp);
} //}
} }
void setRewardListener_onRewardedReadyAd (string json) void setRewardListener_onRewardedReadyAd (string json)

View File

@ -124,9 +124,9 @@ public class JoyPacCurrentcyAdSingle
} }
public void showInterstitial(string joypacUnitName) public void showInterstitial(string joypacUnitName, string come, string adjustToken)
{ {
_currentcyAdSinglePlugin.Call("showInterstitial", joypacUnitName); _currentcyAdSinglePlugin.Call("showInterstitial", joypacUnitName, come, adjustToken);
} }
public void closeInterstitial() public void closeInterstitial()
@ -142,9 +142,9 @@ public class JoyPacCurrentcyAdSingle
public void showReward(string joypacUnitName, string eventPosition) public void showReward(string joypacUnitName, string eventPosition, string come, string adjustToken)
{ {
_currentcyAdSinglePlugin.Call("showReward", joypacUnitName, eventPosition); _currentcyAdSinglePlugin.Call("showReward", joypacUnitName, eventPosition, come, adjustToken);
} }
public bool isReady(string joypacUnitName) public bool isReady(string joypacUnitName)

View File

@ -243,7 +243,7 @@ public class JoypacSDKAdapter : IJoypacAdInterface
return; return;
} }
#endif #endif
_currAdSigle.showInterstitial(interId); _currAdSigle.showInterstitial(interId, JoypacAnalyticsManager.Instance.aPPAdsShowCome, ConstStringKey.Instance.IV_ECPM);
#endif #endif
} }
#endregion #endregion
@ -255,7 +255,9 @@ public class JoypacSDKAdapter : IJoypacAdInterface
JoypacAdClient.Instance.ShowVideo(ConstStringKey.JOYPAC_SDK_REWARDID, eventPosition); JoypacAdClient.Instance.ShowVideo(ConstStringKey.JOYPAC_SDK_REWARDID, eventPosition);
#elif UNITY_ANDROID #elif UNITY_ANDROID
Debug.Log("joypac showReward"); Debug.Log("joypac showReward");
_currAdSigle.showReward(ConstStringKey.JOYPAC_SDK_REWARDID, ""); // _currAdSigle.showReward(ConstStringKey.JOYPAC_SDK_REWARDID, "");
_currAdSigle.showReward(ConstStringKey.JOYPAC_SDK_REWARDID, "", JoypacAnalyticsManager.Instance.aPPAdsShowCome, ConstStringKey.Instance.RV_ECPM);
#endif #endif
} }