Type Function Return value String Revision 2017.3060 Keywords ads, advertising, Appnext, getButtonText See also appnext.setButtonText() appnext.*
Gets the install button's text.
appnext.getButtonText( adKey )
String. The ad key returned for a previously created ad.
local appnext = require( "plugin.appnext" ) local function adListener( event ) print( "Received " .. event.event .. " for " .. event.adKey .. " with message: " .. event.message ) end -- Initialize the Appnext plugin appnext.init( adListener ) -- Create your ads local interstitialPlacementID local platform = system.getInfo( "platformName" ) if ( platform == "iPhone OS" ) then interstitialPlacementID = "YOUR_IOS_INTERSTITIAL_PLACEMENT_ID" elseif ( platform == "Android" ) then interstitialPlacementID = "YOUR_ANDROID_INTERSTITIAL_PLACEMENT_ID" end local interstitialAdKey = appnext.createAd( "interstitial", interstitialPlacementID ) appnext.setButtonText( interstitialAdKey, "Install App" ) print( "Button text: " .. appnext.getButtonText( interstitialAdKey ) )
© 2017 Corona Labs Inc. All Rights Reserved. (Last updated: 18-Mar-2017)
Help us help you! If you notice a problem with this page, please report it.