appodeal.set728x90Banners()

Type Function
Return value none
Revision Current Public Release (2018.3326)
Keywords ads, advertising, Appodeal, set728x90Banners
See also appodeal.*

Overview

You can use the following method to enable 728*90 banners.

Important

This method is only available on Android.

Syntax

appodeal.set728x90Banners( enableBanners )
enableBanners (required)

Boolean. To enable 728*90 banners, set this parameter to true.

Example

local appodeal = require( "plugin.appodeal" )

local function adListener( event )

    if ( event.phase == "init" ) then  
    -- Successful initialization

  elseif ( event.phase == "failed" ) then  -- The ad failed to load
        print( event.type )
        print( event.isError )
        print( event.response )

  elseif ( event.phase == "dataReceived" ) then  -- Event data received
        print( event.type )
        print( event.data )
    end
end

-- Initialize the Appodeal plugin
appodeal.init( adListener, { appKey="YOUR_APP_KEY" } )

-- Sometime later, after Appodeal will be fully initialized get plugin and SDK versions
appodeal.set728x90Banners(true)