上报参数

This commit is contained in:
chenxi 2023-08-18 20:13:47 +08:00
parent 01427a9f4c
commit 72775fbd50
2 changed files with 5 additions and 5 deletions

View File

@ -111,8 +111,8 @@ public partial class AdManager
string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad string networkPlacement = adInfo.NetworkPlacement; // The placement ID from the network that showed the ad
string adFormat = adInfo.AdFormat; string adFormat = adInfo.AdFormat;
var dict = new Dictionary<string, string>(); var dict = new Dictionary<string, System.Object>();
dict.Add("revenue", revenue.ToString()); dict.Add("revenue", revenue);
dict.Add("country_code", countryCode); dict.Add("country_code", countryCode);
dict.Add("network_name", networkName); dict.Add("network_name", networkName);
dict.Add("ad_unit_Id", adUnitId); dict.Add("ad_unit_Id", adUnitId);

View File

@ -283,8 +283,8 @@ namespace BF
{ {
return; return;
} }
var dict = new Dictionary<string, string>(); var dict = new Dictionary<string, System.Object>();
dict.Add("revenue", revenue.ToString()); dict.Add("revenue", revenue);
dict.Add("auction_id", impressionData.auctionId); dict.Add("auction_id", impressionData.auctionId);
dict.Add("country_code", impressionData.country); dict.Add("country_code", impressionData.country);
dict.Add("network_name", impressionData.adNetwork); dict.Add("network_name", impressionData.adNetwork);
@ -298,7 +298,7 @@ namespace BF
} }
if (!ReferenceEquals(impressionData.lifetimeRevenue, null)) if (!ReferenceEquals(impressionData.lifetimeRevenue, null))
{ {
dict.Add("lifetime_revenue", impressionData.lifetimeRevenue.ToString()); dict.Add("lifetime_revenue", impressionData.lifetimeRevenue);
} }
if (!string.IsNullOrEmpty(impressionData.encryptedCPM)) if (!string.IsNullOrEmpty(impressionData.encryptedCPM))
{ {