Oops! I did it again...
Learn from my mistake... Guess who didn't listen to himself ;)
In this video we fix that mistake and trouble shoot until everything works.
Video Transcript
00:00But even though I said not to do something, I did it anyways.
00:03I just want to show you the error I made just so it's better
00:07off to learn from it instead of finding it.
00:09So again, I put inside of my reference,
00:13and we're going to see this right away when the first
00:15initial ad finishes and our application begins.
00:18I'm going to get an error telling me
00:20that it can't find a property in the main end.
00:23And if we go back into our flash,
00:25we're going to see that we're in our main end,
00:27we're using the stage with.
00:30And at this stage of the game,
00:32our application doesn't even know that yet.
00:34And because we're not using the preload ad at all,
00:37because we're running it through the server,
00:39I just want to make sure that you comment out
00:41from line 54 all the way to 61.
00:44So now I'm going to republish the file,
00:49and I'm going to go back into our admin
00:54in my game settings, and I'm going to upload a new version,
00:58which you would find that in your game settings.
01:02So I already filled up the profile in my game settings,
01:05just scroll all the way down,
01:06you see upload a new version,
01:09and I want to upload a new version,
01:16and we're just going to pick our main,
01:21and we're going to give it a new version,
01:23next minor version, fixed bug,
01:28used stage before you can use it.
01:36And there we go, and if I just upload this game,
01:39and now because I saved the URL already,
01:41and I'm using the URL that I got from my game files,
01:46which is somewhere here, go back to our game,
01:50like I will give it a few seconds to load.
01:53I don't want to add a new game,
01:54I just want to go to my game,
01:56let's see if we could find this,
02:01and here's my game,
02:05and I want to go to my game settings,
02:10and here we go, so this is the URL of my game,
02:12which I copied, and I put it into my website.
02:16Now if you run the site again,
02:17hopefully it will have enough time to uncache itself,
02:22and reload, let's see if it will, or not.
02:32Oh, it didn't.
02:33All right, let's try to clear our cache.
02:37If not, we're just going to have to wait probably
02:39until it aggregates, it might take some,
02:42I don't know how long,
02:43but it really just depends on their server,
02:45so we might need to wait a little while,
02:47don't worry if it doesn't work immediately.
02:51I just cleared my cache, let's see, maybe that will help.
02:53No, so we're going to pause the video,
02:56and we're going to check this again
02:57in another 30 minutes or so,
02:59and see if it automatically got updated.
03:02As promised, some time passed,
03:04and if we refresh the site again,
03:06I haven't done anything,
03:08we just waited for their site to,
03:11I guess like purge itself from the earlier version,
03:15and now that it's purged,
03:19we should be seeing our game running,
03:22and our game is running, and it's even giving us an ad.
03:28And that's about it for basic ads,
03:30and how to integrate moochie ads.
