personaly.show()

Type Function
Return value none
Revision Release 2022.3683
Keywords ads, advertising, Persona.ly, show
See also personaly.init()

Overview

Shows a Persona.ly offer wall.

Syntax

personaly.show()

Example

local personaly = require( "plugin.personaly" )

local function adListener( event )

    if ( event.phase == "init" ) then  -- Successful initialization
        print( event.provider )
        -- Show an ad
        personaly.show()
    end
end

-- Initialize the Persona.ly plugin
personaly.init( adListener, { appHash="YOUR_APP_HASH", userId="UNIQUE_USER_ID" } )