Hi, I’ve been trying to implement TAPPX with my admob code but I have no luck. Only admob ads are showing but no TAPPX ads. Has anyone worked with this service before or knows a similiar one?
Hope you can give me some advice.
This is my code:
local function adListener( event ) -- for k,v in pairs( event ) -- print("adListener ", k, v ) -- so you see everything you get -- end if ( event.isError ) then --Failed to receive an ad end end ads.init("admob", "ca-app-pub-XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXX", adListener ) ads:setCurrentProvider("admob") ads.load("admob", { appId = "ca-app-pub-XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXX", tappxIdAndroid= "/XXXXXXXXX/Pub-XXXX-Android-XXXX", tappxShare = 0.8, testMode = false } ) -- false local function showAd( adPosition, isTestMode ) local xPos, yPos local adPosition = "bottom" -- "top", "bottom" if adPosition == "top" then xPos, yPos = display.screenOriginX, top elseif adPosition == "bottom" then xPos, yPos = display.screenOriginX, bottom end ads:setCurrentProvider("admob") ads.show( "banner", { x = xPos, y = yPos, appId = "ca-app-pub-XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXX", tappxIdAndroid= "/XXXXXXXXX/Pub-XXXXXXXXX-Android-XXXXXXXXX", tappxShare= 0.8, testMode = isTestMode } ) end showAd( "top", false ) -- false -- ADs end