My ads in Chartboost are not working… I already have publishing network live in chartboost but still not working… in advertizing network in chartboost need to pay… is there any way can use chartboost ads for free?? Im using this code
- local cb = require “ChartboostSDK.chartboost”
- local cbdata = require “ChartboostSDK.chartboostdata”
- local appId
- local appSignature
- local environment = system.getInfo( “platformName” )
- print(environment)
- if environment == “simulator” or environment == “Win” then
- appId = “524a3b8f17ba47435xxxxxxx”
- appSignature = “8a01f0b66289588a98726924827f154ffxxxxxxx”
- elseif environment == “Android” then
- appId = “524a3b8f17ba47435xxxxxxx”
- appSignature = “8a01f0b66289588a98726924827f154ffxxxxxxx”
- elseif environment == “iPhone OS” or environment == “Mac OS X” then
- appId = “5264856416ba474d53xxxxxxx”
- appSignature = “fa2c5d10035be5b52516ca10e7e99f6fxxxxxxx”
- end
- local delegate = {
- shouldRequestInterstitial = function(location) print("Chartboost: shouldRequestInterstitial " … location … “?”); return true end,
- shouldDisplayInterstitial = function(location) print("Chartboost: shouldDisplayInterstitial " … location … “?”); return true end,
- didCacheInterstitial = function(location) print("Chartboost: didCacheInterstitial " … location); return end,
- didFailToLoadInterstitial = function(location) print("Chartboost: didFailToLoadInterstitial " … location); return end,
- didDismissInterstitial = function(location) print("Chartboost: didDismissInterstitial " … location); return end,
- didCloseInterstitial = function(location) print("Chartboost: didCloseInterstitial " … location); return end,
- didClickInterstitial = function(location) print("Chartboost: didClickInterstitial " … location); return end,
- didShowInterstitial = function(location) print("Chartboost: didShowInterstitial " … location); return end,
- shouldDisplayLoadingViewForMoreApps = function() return true end,
- shouldRequestMoreApps = function() print(“Chartboost: shouldRequestMoreApps”); return true end,
- shouldDisplayMoreApps = function() print(“Chartboost: shouldDisplayMoreApps”); return true end,
- didCacheMoreApps = function() print(“Chartboost: didCacheMoreApps”); return end,
- didFailToLoadMoreApps = function() print(“Chartboost: didFailToLoadMoreApps”); return end,
- didDismissMoreApps = function() print(“Chartboost: didDismissMoreApps”); return end,
- didCloseMoreApps = function() print(“Chartboost: didCloseMoreApps”); return end,
- didClickMoreApps = function() print(“Chartboost: didClickMoreApps”); return end,
- didShowMoreApps = function() print(“Chartboost: didShowMoreApps”); return end,
- shouldRequestInterstitialsInFirstSession = function() return true end
- }
- cb.create{appId = appId,
- appSignature = appSignature,
- delegate = delegate,
- appVersion = “1.0.8”,
- appBundle = “eight.app.studio.aliendisruption”}
- cb.startSession()
- cbdata.cacheInterstitialData(“Default”, function(response)
- local ad_id = response[“ad_id”]
- local link = response.link
- print ("Success requesting ad: "…tostring(link))
- cbdata.showInterstitialData(ad_id, function(response)
- print("Success showing ad "…ad_id)
- end, function(error)
- print("Error showing: "…error)
- end)
- end, function(error)
- print("Error requesting: "…error)
- end)
- function adshow.showmore (adsinfo)
- if adsinfo == “more_games” then
- cb.cacheMoreApps()
- cb.showMoreApps()
- elseif adsinfo == “Interstitial” then
- cb.cacheInterstitial()
- cb.showInterstitial()
- end
- end
More Game are Working Fine but the cb.showInterstitial() and others are not working…
testing mode is working fine