static public void showAd(string placementID, ATRect rect, Dictionary <string, string> pairs) { Debug.Log("ATNativeBannerAdWrapper::showAd()"); Dictionary <string, object> rectDict = new Dictionary <string, object> { { "x", rect.x }, { "y", rect.y }, { "width", rect.width }, { "height", rect.height } }; ATUnityCBridge.SendMessageToC(CMessageReceiverClass, "showNativeBannerAdWithPlacementID:rect:extra:", new object[] { placementID, Json.Serialize(rectDict), Json.Serialize(pairs != null ? pairs : new Dictionary <string, string>()) }, false); }
static public void showBannerAd(string placementID, ATRect rect, string mapJson) { Debug.Log("Unity: ATBannerAdWrapper::showBannerAd(" + placementID + ")"); Dictionary <string, object> rectDict = new Dictionary <string, object> { { "x", rect.x }, { "y", rect.y }, { "width", rect.width }, { "height", rect.height }, { "uses_pixel", rect.usesPixel } }; ATUnityCBridge.SendMessageToC(CMessaageReceiverClass, "showBannerAdWithPlacementID:rect:extraJsonString:", new object[] { placementID, Json.Serialize(rectDict), mapJson }, false); }
public void showAd() { Debug.Log("NativeBannerScene::showAd"); Debug.Log("Screen Width : " + Screen.width + ", Screen dpi: " + Screen.dpi); ATRect arpuRect = new ATRect(0, 100, 414, 200); ATNativeBannerAd.Instance.showAd(mPlacementId_native_all, arpuRect, new Dictionary <string, string> { { ATNativeBannerAdShowingExtra.kATNativeBannerAdShowingExtraBackgroundColor, "#FFFFFF" }, { ATNativeBannerAdShowingExtra.kATNativeBannerAdShowingExtraTitleColor, "#FF0000" } }); }
public void showBannerAd(string placementId, ATRect rect) { Debug.Log("ATBannerAdClient : showBannerAd "); try{ if (bannerHelperMap.ContainsKey(placementId)) { this.bannerHelperMap[placementId].Call("showBannerAd", rect.x, rect.y, rect.width, rect.height); } }catch (System.Exception e) { System.Console.WriteLine("Exception caught: {0}", e); Debug.Log("ATBannerAdClient : error." + e.Message); } }
public void showAd(string placementId, ATRect rect, Dictionary <string, string> pairs) { Debug.Log("ATNativeBannerAdClient::showAd()"); ATNativeBannerAdWrapper.showAd(placementId, rect, pairs); }
public void showAd(string unitId, ATRect rect, Dictionary <string, string> pairs) { }
public void showBannerAd(string unitId, ATRect rect) { }
public void showBannerAd(string unitId, ATRect rect) { Debug.Log("Unity: ATBannerAdClient::showBannerAd()"); ATBannerAdWrapper.showBannerAd(unitId, rect); }
public void showBannerAd(string placementId, ATRect rect, string mapJson) { Debug.Log("Unity: ATBannerAdClient::showBannerAd()"); ATBannerAdWrapper.showBannerAd(placementId, rect, mapJson); }
public void showAd(string placementId, ATRect rect, Dictionary <string, string> pairs) { }
public void showBannerAd(string unitId, ATRect rect, string mapJson) { }