Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Applovin.load doesn't work except in init
Started by corona4182 Nov 10 2016 06:15 AM

- - - - -
1 reply to this topic

Best Answer corona4182 , 10 November 2016 - 06:39 AM

Solved it!

Nothing to do with the version actually.

 

I called "self.load" in the "displayed" event and that what caused the problem. 

It is too soon for Applovin to handle another loading it seems.

 

The loading is now called in the "hidden" event and everything works fine!

[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

corona4182

[GLOBAL: userInfoPane.html]
corona4182
  • Observer

  • 16 posts
  • Corona SDK

Hi! New topic created no to spam this one with a different issue.

 

I'm building on iOS and applovin.load doesn't seem to work past the first try.

 

I'm building on 2949 and have the problem since I switched from 2828.

The first ad loaded with init works fine

if event.phase == "init" then
    if event.isError then
        print("An appLovin error has occured")
    else
        print("Loading an appLovin ad")
        self:loadAd()
    end
end
function applovinManager:loadAd ()
    print("Try to load ad")
    applovin.load()
end

However, any subsequent load seems to fail as no ad shows up.

 

I'm launching the loading in the "displayed" event in the listener I put in the init call.

 



[TOPIC: post.html]
#2

corona4182

[GLOBAL: userInfoPane.html]
corona4182
  • Observer

  • 16 posts
  • Corona SDK

  Best Answer

Solved it!

Nothing to do with the version actually.

 

I called "self.load" in the "displayed" event and that what caused the problem. 

It is too soon for Applovin to handle another loading it seems.

 

The loading is now called in the "hidden" event and everything works fine!




[topic_controls]
[/topic_controls]