• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

AdColony has the player watched entire ad

J

JoKing

Guest
Hi guys. If anyone of you is using AdColony can you explain me how to check has player watched entire video, for example if they have watched entire video they get 10 gold or something like that. Video is Interstitial (is that a problem). Tnx
 
<bump>
I also have The Same Question?
I know that there are two types of video ads.
(1:Simple Video Ads
(2: Virtual Currency

No. (2 requires a Back-End Server and Some Knowledge Of PHP. I personally feel that i have to buy a Server . And i can't invest on that too. So any one with a good idea will be appreciated .
Or can suggest other video ads provider that let me do that with out buying any server or other kind of stuffs.
Thanks
 
Last edited:
D

digidi

Guest
Yes you can use interstitial videos for that. When calling this video, it will trigger the Social Asynchronous Event. Use this code:

Code:
show_debug_message("async_load = "+string(json_encode(async_load)));

var shown = ds_map_find_value(async_load, "shown");
if (shown == 1)
{
    global.gold += 20;
}
In this article they are talking about a 'type', which doesn't exist on the map but 'shown' does :)
 
H

Howard Lehr

Guest
Yes you can use interstitial videos for that. When calling this video, it will trigger the Social Asynchronous Event. Use this code:

Code:
show_debug_message("async_load = "+string(json_encode(async_load)));

var shown = ds_map_find_value(async_load, "shown");
if (shown == 1)
{
    global.gold += 20;
}
In this article they are talking about a 'type', which doesn't exist on the map but 'shown' does :)
Thanks digidi, that fake "type" was killing me. This didn't work:
Code:
var type = ds_map_find_value(async_load,"type");
if type == "adcolony_started"
{
    with obj_HUD
    {
        AdColony_started = true;
    }
}
if type == "adcolony_finished"
{
    var shown = ds_map_find_value(async_load,"shown");
    if shown == 0
    {
        room_goto(Ad_Substitute);
    }
    if shown == 1
    {
        with obj_HUD
        {
            AdColony_finished = 1;
        }
    }
}
but this does:
Code:
///handle AdColony
var shown = ds_map_find_value(async_load,"shown");
if shown == 0
{
    room_goto(Ad_Substitute);
}
if shown == 1
{
    with obj_HUD
    {
        AdColony_finished = 1;
    }
}
Is there a way we can get the documentation fixed so others aren't lead astray?
 
Top