Method signature

Method returns a list of supported display formats for banner ads.

List of supported formats depends on:

  • current platform;
  • android OK app version;
  • current mobile device layout.
FAPI.invokeUIMethod("getBannerFormats")

Call example

function getBannerFormats() {
FAPI.invokeUIMethod("getBannerFormats")
}

Callback example

Method’s callback will contain a list of supported display formats, currently selected display format and display option for each format.

method: “getBannerFormats”

result: “ok”

data: ‘{“current”:”vertical_outer”,”supported”:{“outer”:[“top”,”bottom”],”bar”:[“top”,”bottom”],”bar_outer”:[“top”,”bottom”],”thin”:[“top”,”bottom”],”thin_outer”:[“top”,”bottom”],”vertical”:[“left”,”right”],”vertical_outer”:[“left”,”right”]},”restrictions”:{“thin”:[“orientation:portrait”],”thin_outer”:[“orientation:portrait”],”vertical_outer”:[“orientation:portrait”]}}’

Where:

  • current - currently selected display format;
  • supported - list of supported display formats with their options;
  • restrictions - list of restrictions for each format.

Supported formats

At the moment following formats are supported:

FormatDescriptionPlatformsDisplay
options
Supported
layouts
barHorizontal banner displayed on top of game containerdesktop
mobile
android (from 22.11.17)
top
bottom
landscape
portrait
outer (deprecated)
bar_outer
Horizontal banner displayed which offsets game containerdesktop
mobile
android (from 23.9.4)
top
bottom
landscape
portrait
thinThin horizontal banner displayed on top of game containerweb
mobile
android (from 24.3.4)
top
bottom
landscape
thin_outerThin horizontal banner displayed which offsets game containerweb
mobile
android (from 24.3.4)
top
bottom
landscape
verticalVertical banner displayed on top of game containerweb
mobile
android (from 24.3.4)
left
right
landscape
vertical_outerVertical banner displayed which offsets game containerweb
mobile
android (from 24.3.4)
left
right
landscape