public void RequestInterstitialAd(string zoneId, AdOptions adOptions) { Hashtable values = new Hashtable(); values["zone_id"] = zoneId; if (adOptions != null) { values["ad_options"] = adOptions.ToHashtable(); } string json = AdColonyJson.Encode(values); _pluginWrapper.CallStatic("requestInterstitialAd", json); }
public void RequestAdView(string zoneId, AdSize adSize, AdPosition adPosition, AdOptions adOptions) { Hashtable values = new Hashtable(); values["zone_id"] = zoneId; values["ad_size"] = (Int32)adSize; values["ad_position"] = (Int32)adPosition; if (adOptions != null) { values["ad_options"] = adOptions.ToHashtable(); } string json = AdColonyJson.Encode(values); _pluginWrapper.CallStatic("requestAdView", json); }