Appodeal Invalid supportedAdType

Hi!

I’ve been struggling with this for a few hours now and can’t seem to find any solution. Whatever ad type I try to call with appodeal.show(“AdType”) results in the error seen in the title of this post. 

If anyone could shed some light on this that’d be much appreciated!  :slight_smile:

Can you share the code and build settings that you are using? Are you calling init first and waited for the load or check to see if is loaded? Have you checked your control panel and made sure you have not turned off all the types? Are you putting quotes over the ad type: it should be “banner” and not banner.

Are you actually using the string “AdType” or are you using “banner”, “interstitial”, “rewardedVideo” etc.?
 

Rob

Sure!

I’ve double checked all of my settings on my control panel and everything is in order. I’m using the same setup and code as I did with my previous game (here it works without issues), changing to the new ID for this game of course. I’ll post some code too, but it seems it’s complaining about the AdType no matter what I do. Here’s the code:[lua]local appodeal = require( “plugin.appodeal” )

local function adListener( event )

if ( event.phase == “init” ) then – Successful initialization

print(“succes”)

elseif ( event.phase == “failed” ) then
print( event.type )
print( event.isError )
print( event.response )
end
end

appodeal.init( adListener, { appKey=“403163ad735d7891543d975069aa3fa32f286af71f525a9c”, testMode = true, hasUserConsent=false} )[/lua]

Then later on in a different scene I require the plugin again and just call appodeal.show(“interstital”). Both times the AdType is invalid.

I’m using “interstitial”. But I’ve tried “banner” and “rewardedVideo” as well, unfortunately they all return the same error message.

Well, for some reason it works now! I’m guessing there must have been some issue at Appodeals end. Whatever it was it’s solved now! :slight_smile:

build setting? do you check if it is loaded? can you print the listener event?

local json = require( "json" ) print("+++++appodeal:",json.prettify(event))

Can you share the code and build settings that you are using? Are you calling init first and waited for the load or check to see if is loaded? Have you checked your control panel and made sure you have not turned off all the types? Are you putting quotes over the ad type: it should be “banner” and not banner.

Are you actually using the string “AdType” or are you using “banner”, “interstitial”, “rewardedVideo” etc.?
 

Rob

Sure!

I’ve double checked all of my settings on my control panel and everything is in order. I’m using the same setup and code as I did with my previous game (here it works without issues), changing to the new ID for this game of course. I’ll post some code too, but it seems it’s complaining about the AdType no matter what I do. Here’s the code:[lua]local appodeal = require( “plugin.appodeal” )

local function adListener( event )

if ( event.phase == “init” ) then – Successful initialization

print(“succes”)

elseif ( event.phase == “failed” ) then
print( event.type )
print( event.isError )
print( event.response )
end
end

appodeal.init( adListener, { appKey=“403163ad735d7891543d975069aa3fa32f286af71f525a9c”, testMode = true, hasUserConsent=false} )[/lua]

Then later on in a different scene I require the plugin again and just call appodeal.show(“interstital”). Both times the AdType is invalid.

I’m using “interstitial”. But I’ve tried “banner” and “rewardedVideo” as well, unfortunately they all return the same error message.

Well, for some reason it works now! I’m guessing there must have been some issue at Appodeals end. Whatever it was it’s solved now! :slight_smile:

build setting? do you check if it is loaded? can you print the listener event?

local json = require( "json" ) print("+++++appodeal:",json.prettify(event))