Method signature

Method sets a display format for banner ads.

List of supported display formats is provided by FAPI.UI.getBannerFormats method.

FAPI.invokeUIMethod("setBannerFormat", bannerFormat)


  • bannerFormat - selected display format.

Call example

function setBannerFormat() {
FAPI.invokeUIMethod("setBannerFormat", "outer")

Callback example

Method’s callback contains a status of display format change attempt.

Callback if format was changed

method: “setBannerFormat”

result: “ok”

data: “true”

Callback if format was not changed

method: “setBannerFormat”

result: “error”

data: “false”