Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Appodeal new plugin so far.
Started by agramonte Feb 02 2018 09:06 PM

13 replies to this topic
appodeal banner
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 677 posts
  • Corona SDK

First one small issue. If I don't specify the disable disableWriteExternalPermissionCheck in the init I always get the error toast message. It appears that the default is false:

appodeal.init( A.adListener, { appKey=appodealId, disableWriteExternalPermissionCheck=true, 
supportedAdTypes={"banner", "interstitial", "rewardedVideo"} } )

Now the other issue I have is the banner ads. They don't show at all. After the init if I try to show them nothing happens. Nothing in the logs. If I try to load them I get this error:

K88: ERROR: appodeal.load(adUnitType [, options ]), 
Request ignored. You didn't specify 'banner' in supportedAdTypes during init()

I tried both to specify the "banner" as an adType in init and not including the suppoertedAdTypes property. I still get the same error.

 

Interstitial and reward video work as expected with absolutely no issues.

 

Here is the important part of my implementation.

A.adListener = function( event )

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

	if event.phase == "init" then  -- Successful initialization
        appodeal.show( "banner", { yAlign="bottom" } )
    elseif event.type == "rewardedVideo" and event.data.name == "reward" and event.phase == "playbackEnded" then
		A.eventDispatcher:dispatchEvent( { name="rewarded", data=true } ) 
	end
end


local appodealId = appodealIds[A.platform]
	appodeal.init( A.adListener, { appKey=appodealId, 
disableWriteExternalPermissionCheck=true, 
supportedAdTypes={"banner", "interstitial", "rewardedVideo"} } )




[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 677 posts
  • Corona SDK

Here are the logs if they help.

02-03 09:29:37.772: D/Appodeal(15847): Caching Banner (debugType: banner_320, isLoaded: false, isLoading: false)
02-03 09:29:37.774: D/Appodeal(15847): Banners Initialized
02-03 09:29:37.782: D/Appodeal(15847): Showing Banner (debugType: banner_320, isLoaded: false, isLoading: true, placement: 'default')
02-03 09:29:37.783: D/Appodeal(15847): Show Banner, result: true
02-03 09:29:37.786: D/Appodeal(15847): Advertising ID: 4aea5ff3-822f-45e5-aaf5-7be082cb71af
02-03 09:29:38.160: D/Appodeal(15847): {"status":"ok","banners_disabled":true}
02-03 09:29:38.161: D/Appodeal(15847): Banners disabled

And my build settings. For banners all I removed was Facebook (don't feel like getting paid from 3 places) and Flurry (need the analytics).

 -- Base
        ['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },

        -- Banner
        ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Yandex'] = { publisherId = 'com.coronalabs' },
        
        -- Interstitial
        ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' },
        
        -- Rewarded Video
        ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' },
        ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' }


[TOPIC: post.html]
#3

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 677 posts
  • Corona SDK

One last updated. I created a new ID for one of my other apps and the banner ads work as expected. I'll send an e-mail to support for the appId that doesn't work.



[TOPIC: post.html]
#4

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 229 posts
  • Corona Staff

Hi agramonte,

About this new init parameter error - that is known and intended behavior.

Well, since it bothers you and looks like something is wrong, I’ll discuss it with an appodeal team. And either I’ll come up here with an explanation (and possible doc update) or we’ll change the default behavior.

Like, we’ve already bounced back and forth with the default behavior for this parameter. Your comment is really important, btw, it may actually change engineers opinion on this. Thanks for the feedback and I’m glad that other issue is already solved.



[TOPIC: post.html]
#5

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 677 posts
  • Corona SDK

Sorry, it doesn't bother me at all. I am sorry I wasn't clear. It just is opposite of what the documentation states and that is all. Otherwise, I am good. Thank you for taking the time to read this. Plugin working great so far.



[TOPIC: post.html]
#6

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 229 posts
  • Corona Staff

Docs will be updated soon.  ;)


  • agramonte likes this

[TOPIC: post.html]
#7

simon.natt

[GLOBAL: userInfoPane.html]
simon.natt
  • Contributor

  • 137 posts
  • Corona SDK

Hi all,

I am using/testing Appodeal legacy/releaseplugin using the git sample Appodeal application.

https://github.com/coronalabs/plugins-sample-appodeal

I cannot get any test banners or real banners to show either. Tried a new app ID same result. Interstitials (static and video) and rewarded video test ads and real ads work without issue.

Cant get any useful debug info from xcode.
 



[TOPIC: post.html]
#8

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 229 posts
  • Corona Staff

Hi simon.natt,

It seems that there is some appID issue, that is the only reason why banners don't work, although everything else is.

Unfortunately, can't say anything about it, since it's now exactly my field of work. I think, appodeal support team will guide you through this issue easily.



[TOPIC: post.html]
#9

simon.natt

[GLOBAL: userInfoPane.html]
simon.natt
  • Contributor

  • 137 posts
  • Corona SDK

Ok yes suspected there to be an appID issue as agramonte pointed out he resolved the same issue by creating a new one addID/instance. No luck for me, I am on Appodeal chat currently with support. I have not yet been advised what the issue is or how.when it can be resolved. I'll post back here once a resolution is discovered.



[TOPIC: post.html]
#10

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 229 posts
  • Corona Staff

Sure, if you have any more questions - feel free to ask them too!



[TOPIC: post.html]
#11

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 677 posts
  • Corona SDK

At least for me, Appodeal resolved the issue with my ID in about 3 minutes.



[TOPIC: post.html]
#12

simon.natt

[GLOBAL: userInfoPane.html]
simon.natt
  • Contributor

  • 137 posts
  • Corona SDK

Its been nearly a hour and I am no closer @agramonte



[TOPIC: post.html]
#13

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 677 posts
  • Corona SDK

this is the line that let them know what the problem was:

02-03 09:29:38.160: D/Appodeal(15847): {"status":"ok","banners_disabled":true}

Did you turn on logging on? What does your init look like? And how about the build settings? 



[TOPIC: post.html]
#14

simon.natt

[GLOBAL: userInfoPane.html]
simon.natt
  • Contributor

  • 137 posts
  • Corona SDK

Update: I was able to contact an Appodeal engineer Nazar directly (thanks karpovpw for putting me in-touch) and he was able to solve my issue efficiently.

There was a bug in the Corona Appodeal plugin source code that wasn't allowing banners to show (not sure if isolated to just the Corona plugin source or not). Nazar quickly identified this by replicating the bug and rectified the problem. He then pushed the plugin live (whilst I slept). It is now functioning without fail.

Presumably this was affecting anyone who was attempting to show banners using the latest Appodeal (legacy/release) plugin. So efficient rectification and identification of this bug was both valuable to all Corona users, Appodeals business interests and myself.

Agramonte: Yes debug mode/logging was on, using iOS I never received any useful output. Apart from 'banner loaded successfully' Thanks for your help on this also.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: appodeal, banner