Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

AD's error
Started by vladoz260 Jan 15 2017 12:03 AM

- - - - -
1 reply to this topic

Best Answer ingemar_cl , 15 January 2017 - 12:39 AM

https://docs.coronalabs.com/plugin/appodeal/init.html

The parameter name for appodeal.init() is appKey (not appId).

 

Also I see that you are using the ads.* CoronaProvider style of listener. That doesn't work well with our more modern monetization plugins like Appodeal. You should use a separate listener for non ads.* listeners. As an example you cannot assume that if isError=false that an ad has been loaded. You should look for the "loaded" phase.

 

Event properties for Appdeal documented here:

https://docs.coronalabs.com/plugin/appodeal/event/adsRequest/index.html

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

vladoz260

[GLOBAL: userInfoPane.html]
vladoz260
  • Enthusiast

  • 33 posts
  • Corona SDK

I got a problem during trying to show Appodeal interstitial ad

 

the initialization code

adProvider = "appodeal"
function adListener( event )
print("asd")
local msg = event.response
-- Quick debug message regarding the response from the library
print( "Message from the ads library: ", msg )
if ( event.isError ) then
print( "Error, no ad received", msg )
else
print( "Ah ha! Got one!" )
end
end

ads.init( adListener, {appId = "518e7293d9d79e23140de4f8a3eedf70c05b5a7ec5c4921c"})

and code when i try to launch AD in other scene

ads.show("interstitial") 

It would happen in 1st scene but there floats the error

Attached Thumbnails

  • bdZ51u92Q_E.jpg


[TOPIC: post.html]
#2

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

  Best Answer

https://docs.coronalabs.com/plugin/appodeal/init.html

The parameter name for appodeal.init() is appKey (not appId).

 

Also I see that you are using the ads.* CoronaProvider style of listener. That doesn't work well with our more modern monetization plugins like Appodeal. You should use a separate listener for non ads.* listeners. As an example you cannot assume that if isError=false that an ad has been loaded. You should look for the "loaded" phase.

 

Event properties for Appdeal documented here:

https://docs.coronalabs.com/plugin/appodeal/event/adsRequest/index.html




[topic_controls]
[/topic_controls]