fixed 1.3.1 add baidu sdk

This commit is contained in:
2024-10-09 10:25:02 +08:00
parent b671923241
commit 4919b650de
62 changed files with 12 additions and 538 deletions

View File

@@ -40,16 +40,6 @@ namespace AnyThinkAds.Api
public readonly int abtest_id;
public readonly string reward_custom_data;
public readonly int placement_type;
public readonly string shared_placement_id;
public readonly string bid_floor;
public readonly int dismiss_type;
public readonly int ad_source_type;
public readonly string ad_source_custom_ext;
public readonly string network_name;
public readonly string show_custom_ext;
public readonly string e_c;
public readonly int s_id;
private string callbackJson;
@@ -104,16 +94,6 @@ namespace AnyThinkAds.Api
reward_custom_data = jsonData.ContainsKey("reward_custom_data") ? (string)jsonData["reward_custom_data"] : "";
placement_type = jsonData.ContainsKey("placement_type") ? (int)jsonData["placement_type"] : 0;
shared_placement_id = jsonData.ContainsKey("shared_placement_id") ? (string)jsonData["shared_placement_id"] : "";
bid_floor = jsonData.ContainsKey("bid_floor") ? (string)jsonData["bid_floor"] : "";
dismiss_type = jsonData.ContainsKey("dismiss_type") ? (int)jsonData["dismiss_type"] : 0;
ad_source_type = jsonData.ContainsKey("ad_source_type") ? (int)jsonData["ad_source_type"] : 0;
ad_source_custom_ext = jsonData.ContainsKey("ad_source_custom_ext") ? (string)jsonData["ad_source_custom_ext"] : "";
network_name = jsonData.ContainsKey("network_name") ? (string)jsonData["network_name"] : "";
show_custom_ext = jsonData.ContainsKey("show_custom_ext") ? (string)jsonData["show_custom_ext"] : "";
e_c = jsonData.ContainsKey("e_c") ? (string)jsonData["e_c"] : "";
s_id = jsonData.ContainsKey("s_id") ? (int)jsonData["s_id"] : 0;
}
catch (System.Exception e) {
System.Console.WriteLine("Exception caught: {0}", e);
@@ -170,16 +150,6 @@ namespace AnyThinkAds.Api
dataDictionary.Add("custom_rule", custom_rule);
dataDictionary.Add("ext_info", ext_info);
dataDictionary.Add("reward_custom_data", reward_custom_data);
dataDictionary.Add("placement_type", placement_type);
dataDictionary.Add("shared_placement_id", shared_placement_id);
dataDictionary.Add("bid_floor", bid_floor);
dataDictionary.Add("dismiss_type", dismiss_type);
dataDictionary.Add("ad_source_type", ad_source_type);
dataDictionary.Add("ad_source_custom_ext", ad_source_custom_ext);
dataDictionary.Add("network_name", network_name);
dataDictionary.Add("show_custom_ext", show_custom_ext);
dataDictionary.Add("e_c", e_c);
dataDictionary.Add("s_id", s_id);
return dataDictionary;
}