Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Appnext problem on Android
Started by Dev-Ze.rocks Oct 01 2016 10:46 AM

8 replies to this topic
appnext android ads
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Dev-Ze.rocks

[GLOBAL: userInfoPane.html]
Dev-Ze.rocks
  • Contributor

  • 206 posts
  • Corona SDK

Hello everybody.

I implemented the Appnext plugin in one of my apps and it is working very well on ios, but on Android I constantly get the following errors:

Received adError for 74ccc155-xxxx-464b-90c3-0f19f0c27034_rewarded with message: Error loading video
Received adLoaded for 92060199-xxxx-4415-ab8f-2869ef8c6e43_interstitial with message:
Received adError for 92060199-xxxx-4415-ab8f-2869ef8c6e43_interstitial with message: no ads

The first two errors I get on plugin initialization, the last one I get when trying to show the interstitial.

 

I already changed the ad ids twice without any success. This is my code:

---- appnext
local function appnextAdListener( event )
    print( "Received " .. event.event .. " for " .. event.adKey .. " with message: " .. event.message )
    if event.event == "adError" then
      gameOverAdsCounter = 0
    elseif event.event == "adLoaded" and event.adKey == adTable.rewardedAdKey then
      --this should actually not be necessary, but sometimes the other check seems not to work :/
      gameOverGroup.continueVideoBtn.alpha = 1
    elseif event.event == "adClosed" and event.adKey == adTable.rewardedAdKey then
      --rewarded video watched
      gameOverAdsCounter = 0
      appnext.loadAd( adTable.rewardedAdKey )
      
      countingDown = true
      local numPoints = globals.continuePointsVideo[numTries]
      local function addPoints()
        numPoints = numPoints-1
        if numPoints >= 0 and points < curWorldPoints then
          makeRing("in")
          timer.performWithDelay(500, function() 
            points = points + 1
            if points%globals.pointsToCount == 0 then
              addCollPoints(globals.pointsToCount)
            end
            collisionAnimation(50)
            if mode == "survivalMode" then
              pointsText.text = points
            else
              pointsText.text = curWorldPoints-points
            end
            checkLevel()
            addPoints()
          end)
        else
          timer.performWithDelay(500, function()
            countingDown = false
            if points < curWorldPoints then
              startFct()
            end
          end)
        end
      end
      helper.hideGroup(gameOverGroup)
      timer.performWithDelay(500, function() addPoints() end)
    elseif event.event == "adClosed" and event.adKey == adTable.interstitialAdKey then
      --interstitial closed
      gameOverAdsCounter = 0
    end
    
end

--initialize appnext
appnext.init( appnextAdListener )

adTable.interstitialAdKey = appnext.createAd( "interstitial", adTable.interstitialPlacementID, adTable.interstitialConfig )
adTable.rewardedAdKey = appnext.createAd( "rewarded", adTable.rewardedPlacementID, adTable.rewardedConfig )


-- Load your ads before showing
appnext.loadAd( adTable.interstitialAdKey )
appnext.loadAd( adTable.rewardedAdKey )


-- Later in code, when actually showing the interstitial
if ( appnext.adIsLoaded( adTable.interstitialAdKey ) ) then
  if gameOverAdsCounter >= gameOversToShowAd then
    appnext.showAd( adTable.interstitialAdKey )
    delay = 500
  end
else
  appnext.loadAd( adTable.interstitialAdKey )
end

When the game is about to show an interstitial, the screen gets black for some moment but returns to normal afterwards without showing any interstitial.

 

I got in contact with Appnext and they said that they have corrected the problem and that a new sdk should be available already. I was wondering if Corona already implemented this sdk or when this will happen.

 

I was wondering as well if I am the only one experiencing this problem??

 

Best,

Felix

 



[TOPIC: post.html]
#2

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

The Appnext Corona plugin is maintained by Appnext themselves. If you still see this issue I can only assume that they haven't updated the Corona plugin yet.



[TOPIC: post.html]
#3

Dev-Ze.rocks

[GLOBAL: userInfoPane.html]
Dev-Ze.rocks
  • Contributor

  • 206 posts
  • Corona SDK

Hei ingemar,

did not get noticed about this message. Thank you for your answer.

Do you know how I could check if I have the latest version of the plugin?

 

Do you know if I am the only one with this problem? Or if I am the only one using this plugin??

 

Thank you,

Felix



[TOPIC: post.html]
#4

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

I believe they are still working on the update.



[TOPIC: post.html]
#5

Dev-Ze.rocks

[GLOBAL: userInfoPane.html]
Dev-Ze.rocks
  • Contributor

  • 206 posts
  • Corona SDK

Hello again,

it is still not working and I just found that

appnext.getApiVersion()

does not work, at least on Android.

 

I am really curious if I am the only one using this plugin or if I am the only one that can't get it to work?

 

Best,

Felix



[TOPIC: post.html]
#6

Dev-Ze.rocks

[GLOBAL: userInfoPane.html]
Dev-Ze.rocks
  • Contributor

  • 206 posts
  • Corona SDK

BUMP,

as I am still facing the problem...

Anyone else has this problem?

 

The App is stuck at the state: "Action required" phase in the appnext panel under the "Set-up progress" tab.

How to advance here?

 

Remembering, on iOS everything worked right away...

 

Best,

Felix



[TOPIC: post.html]
#7

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

@Felix

AppNext maintains this plugin themselves and any issues with the plugin can only be fixed by them.

I've contacted them and asked for a plugin status and when/if they plan to update this plugin.



[TOPIC: post.html]
#8

Dev-Ze.rocks

[GLOBAL: userInfoPane.html]
Dev-Ze.rocks
  • Contributor

  • 206 posts
  • Corona SDK

Ingemar_cl,

thank you!

 

So I am really the only one that is using this plugin? Or just the only one that has problems?

 

Best,

Felix



[TOPIC: post.html]
#9

Dev-Ze.rocks

[GLOBAL: userInfoPane.html]
Dev-Ze.rocks
  • Contributor

  • 206 posts
  • Corona SDK

Finally (and sadly), I am not the only one with this problem.

 

https://forums.coronalabs.com/topic/67089-appnext-error-when-loading-ads/




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: appnext, android, ads