The Corona Advertising library lets you display ads within your application. Currently, we support two different ad networks:
Click the links above to be taken to the corresponding usage guide.
The following code demonstrates basic usage of the Ads library (with InMobi network).
-- Import library and initialize with personal application key local ads = require "ads" ads.init( "inmobi", you Ad key ) -- Set the ads (updates every 5 seconds) ads.show( "banner320x48", { x=0, y=100, interval=5, testMode=false } )
Note: Adding "require ads" to your code will enable Corona Launchpad regardless of the setting in config.lua.
For more information see the Corona Dashboard.