Is it normal for adView/adEnd to be called twice each for one ad?

I’m using Vungle incentivized ads with corona build 2014.2438 and the facebook build.settings workaround.

adStart is only firing once - but I’m seeing adView and adEnd get called 2x when an ad completes - and it’s happening for both the type of ad that has a “closing banner” (in other words you have to close the ad by hitting the x when its  over, example “campus life” ad) or one without the closing banner (e.g. TubeMogul)

Is this normal?

I’m having the same problem…

I’m on the same boat :/ 

I’m trying incentivized videos and I’m getting two adView (and two adEnd) events after watching a video:

 

From the terminal:

I/Corona  ( 8877): onSystemEVENT.type:applicationResume

I/Corona  ( 8877): event.type: adEnd

I/Corona  ( 8877): event.type: adView

I/Corona  ( 8877): event.type: adView

I/Corona  ( 8877): event.type: adEnd

 

causing me to reward twice for a single video view. This didn’t happen before with the same code.

I have a workaround for the meantime :) 

I’m using a variable, named currentlyPlaying, it starts as “false”(1) at the start of the game then I make it true(2) when the video plays and finally at the adView event I make it false again(3,4). So at the adView event I check to see wether a video is playing. Simple and it works, I’m hoping for a proper fix as you guys.

local currentlyPlaying = false  --1

function vungleListener( event )

  print("event.type: ", event.type)

  print("currentlyPlaying: ", tostring(currentlyPlaying))

    if ( event.type == “adStart” and event.isError ) then

      currentlyPlaying = false

    elseif ( event.type == “adStart” and not event.isError ) then

       currentlyPlaying = true  --2 

    end

    if ( event.type == “adView” and event.isCompletedView and currentlyPlaying == true) then – CHECK  currentlyPlaying

    

     – REWARD

      currentlyPlaying = false --3

     

    elseif ( event.type == “adView” and event.isCompletedView == false and currentlyPlaying == true) then – CHECK  currentlyPlaying

     – NO REWARD   

      currentlyPlaying = false --4

    end

end

I’m having the same problem…

I’m on the same boat :/ 

I’m trying incentivized videos and I’m getting two adView (and two adEnd) events after watching a video:

 

From the terminal:

I/Corona  ( 8877): onSystemEVENT.type:applicationResume

I/Corona  ( 8877): event.type: adEnd

I/Corona  ( 8877): event.type: adView

I/Corona  ( 8877): event.type: adView

I/Corona  ( 8877): event.type: adEnd

 

causing me to reward twice for a single video view. This didn’t happen before with the same code.

I have a workaround for the meantime :) 

I’m using a variable, named currentlyPlaying, it starts as “false”(1) at the start of the game then I make it true(2) when the video plays and finally at the adView event I make it false again(3,4). So at the adView event I check to see wether a video is playing. Simple and it works, I’m hoping for a proper fix as you guys.

local currentlyPlaying = false  --1

function vungleListener( event )

  print("event.type: ", event.type)

  print("currentlyPlaying: ", tostring(currentlyPlaying))

    if ( event.type == “adStart” and event.isError ) then

      currentlyPlaying = false

    elseif ( event.type == “adStart” and not event.isError ) then

       currentlyPlaying = true  --2 

    end

    if ( event.type == “adView” and event.isCompletedView and currentlyPlaying == true) then – CHECK  currentlyPlaying

    

     – REWARD

      currentlyPlaying = false --3

     

    elseif ( event.type == “adView” and event.isCompletedView == false and currentlyPlaying == true) then – CHECK  currentlyPlaying

     – NO REWARD   

      currentlyPlaying = false --4

    end

end