AppoDeal Multiple ad type

if i put show all ad type for example  

local sceneGroup = self.view appodeal.show( "banner", { yAlign="top" } ) appodeal.show( "video" ) appodeal.show( "interstitial" ) appodeal.show( "rewardedVideo" ) local myText = display.newText( "Rate 5 Stars", 275, 510, native.systemFont, 10 )

will it chose which on of them shows automatically? or will it just show all the ads that loaded

The banner ad will show and then the other ones would probably stack if available.

But why would you want to do that? Show the banner at all times and then show the others when necessary.

oops my bad i wanted to show the banner at all time and the other ones in order like if the video is not available then show interstitial and if that isn’t then show reward i don’t want them to stack

Well if that is the case you can check if the particular ad is loaded first before showing them:

if appodeal.isLoaded("interstitial") then appodeal.show("interstitial") elseif appodeal.isLoaded("video") then appodeal.show("video") end

But Appodeal in my experience usually gets > 95% fill rate (and this is LatAm for me) so it would be very rare that you would end up showing anything other than an interstitial with my code above.

What I have done in the past is decide what percentage of ads you want to be video and doing something like this:

local adRandom = math.random(1, 10) if adRandom \> 7 and appodeal.isLoaded("video") then appodeal.show("video") else appodeal.show("interstitial") end

Hope this helps you.

The banner ad will show and then the other ones would probably stack if available.

But why would you want to do that? Show the banner at all times and then show the others when necessary.

oops my bad i wanted to show the banner at all time and the other ones in order like if the video is not available then show interstitial and if that isn’t then show reward i don’t want them to stack

Well if that is the case you can check if the particular ad is loaded first before showing them:

if appodeal.isLoaded("interstitial") then appodeal.show("interstitial") elseif appodeal.isLoaded("video") then appodeal.show("video") end

But Appodeal in my experience usually gets > 95% fill rate (and this is LatAm for me) so it would be very rare that you would end up showing anything other than an interstitial with my code above.

What I have done in the past is decide what percentage of ads you want to be video and doing something like this:

local adRandom = math.random(1, 10) if adRandom \> 7 and appodeal.isLoaded("video") then appodeal.show("video") else appodeal.show("interstitial") end

Hope this helps you.