示例#1
0
    /// <summary>
    /// Sets the Display ad size.  Use TapjoyDisplayAdSize enum for supported sizes.
    /// </summary>
    /// <param name="size">
    /// A <see cref="TapjoyDisplayAdSize"/>
    /// </param>
    public static void SetDisplayAdSize(TapjoyDisplayAdSize size)
    {
        if (Application.platform == RuntimePlatform.OSXEditor)
        {
            return;
        }

        string sizeString = "320x50";

        if (size == TapjoyDisplayAdSize.SIZE_640X100)
        {
            sizeString = "640x100";
        }
        if (size == TapjoyDisplayAdSize.SIZE_768X90)
        {
            sizeString = "768x90";
        }

        TapjoyPlatformPlugin.SetDisplayAdSize(sizeString);
    }