コード例 #1
0
    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);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
    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" }
        });
    }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
 public void showAd(string placementId, ATRect rect, Dictionary <string, string> pairs)
 {
     Debug.Log("ATNativeBannerAdClient::showAd()");
     ATNativeBannerAdWrapper.showAd(placementId, rect, pairs);
 }
コード例 #6
0
 public void showAd(string unitId, ATRect rect, Dictionary <string, string> pairs)
 {
 }
コード例 #7
0
 public void showBannerAd(string unitId, ATRect rect)
 {
 }
コード例 #8
0
 public void showBannerAd(string unitId, ATRect rect)
 {
     Debug.Log("Unity: ATBannerAdClient::showBannerAd()");
     ATBannerAdWrapper.showBannerAd(unitId, rect);
 }
コード例 #9
0
 public void showBannerAd(string placementId, ATRect rect, string mapJson)
 {
     Debug.Log("Unity: ATBannerAdClient::showBannerAd()");
     ATBannerAdWrapper.showBannerAd(placementId, rect, mapJson);
 }
コード例 #10
0
 public void showAd(string placementId, ATRect rect, Dictionary <string, string> pairs)
 {
 }
コード例 #11
0
 public void showBannerAd(string unitId, ATRect rect, string mapJson)
 {
 }