Before proceeding, ensure that the final, ready-to-publish version of the game is open in Stencyl.
Display Mochi Ad
.640
and the h: entry to 480
.We have successfully implemented the MochiAds advertising instructions in our game, and the message has let us know that our game has correctly communicated with the MochiAds servers.
The first step was to create a new when created event in the Main Menu scene. We then added the instruction block that displays the advertisement, but we needed to specify the size of the advertisement, so we provided the correct dimensions of our game—640 pixels wide and 480 pixels high. Providing the correct dimensions ensures that the advertisement will completely fill the screen, and failure to provide the correct information may lead to inappropriately sized advertisements being placed.
Once we had the Mochi Ad instruction block in place, we needed to let Stencyl know the unique Game ID, so that it can be passed to the MochiAds servers each time an advertisement is displayed. The Game ID was placed into the Mochi Game ID text box, in the Web section of the Stencyl Settings dialog box.
We're nearly at the stage where we can start being credited for each advertisement that is displayed in our game, but there's a little more work required to configure our game in the Mochi Media Dashboard.
We haven't provided enough information for Mochi Media to start displaying real advertisements in our game and to start being paid, so sign in to the Mochi Media website, display the overview page for your game, and click on the Activate NOW! button under the Ads heading.
The page that will be displayed will take you step by step through completing your game profile, uploading your game, and having it reviewed by a member of the MochiAds team to ensure that it meets the required standards.
Before Mochi Media can transfer any money to you, you will also need to provide some payment details. Note that payment information does not need to be provided immediately—Mochi Media will continue to credit your account and will hold payment until the required information has been provided.
Mochi Media needs to ensure that advertisements are only displayed in appropriate games, so a Mochi Media employee will check your game to make sure that it works, and that the content of the game is appropriate for the target audience. As long as your game is playable, is of a reasonable standard, and does not contain obvious bugs, your game should be accepted within approximately 24 hours of correctly completing the game profile.
While this book has primarily been designed to be used with the free version of Stencyl, it should be noted that the subscription versions of Stencyl that output Flash games include the ability to create a custom preloader —the graphics and progress bar that are displayed as the game is loading on a web page. One of the custom preloader options provides the facility to display advertisements while the game is loading. This provides a more professional impression of the game and is accepted within the gaming community as an acceptable method of displaying advertisements without interfering with, or slowing down, the player's entry into the game.
3.133.128.145