DEV Community

Mohamed Gani
Mohamed Gani

Posted on

Publish and Monetize Your Games on Y8.com

If you're a game developer looking to publish your HTML5 or Unity WebGL game on Y8.com and earn revenue, this quick guide will help you get started.

🧩 Step 1: Create an Account and Upload Your Game

To submit a game:
👉 Go to https://www.y8.com/upload

You'll need a Y8 developer account.
After logging in, you can upload your game package directly through this page.

💰 Step 2: Choose Your Revenue Share Program

Y8 offers two types of revenue share models:

- AFP (AdSense for Platforms) — You get paid directly by Google through your own AdSense account.
- Manual Revenue Share — You send Y8 invoices, and the payment is handled manually.

To apply for AFP, first create a Studio:

Visit https://www.y8.com/studios

Once your studio is approved, you'll be able to apply for AFP directly from your studio page.

🧠 Step 3: Create an Application for Your Game

Before integrating the SDK, register your game as an application:

➡️ Go to https://account.y8.com/applications/

Create a new application entry for your game — this will give you your App ID.

Step 4: Integrate the Y8 SDK

🎮 JavaScript / HTML5 Games
📦 Repository: https://github.com/Y8Games/y8-afp-ads-sdk-javascript

  1. Download the gameBreakBeta.js file from the repository and place it in your project folder.
  2. Add the following line to your index.html file:

<script src="gameBreakBeta.js"></script>

Game ID Setup

You can get your Game ID from the Y8 team once your game is approved.

let _gameId = '249093'; // Replace with your assigned Game ID before going live
Enter fullscreen mode Exit fullscreen mode

Display Ads

nextAds(); //Show interstitial ads
showReward(); //Show Rewarded Ads
pauseGame(); //Pause the game
resumeGame(); //Resume the game
rewardAdsCompleted(); //Trigger rewards after completing an ad
noRewardedAdsTryLater(); //Call if no rewarded ads are available
rewardAdsCanceled(); //Trigger if the user cancels the rewarded ad

Enter fullscreen mode Exit fullscreen mode

Testing Mode

var _testAds = true; // Set to false when the game is ready for live
Enter fullscreen mode Exit fullscreen mode

Construct 3 Games

📦 Repository: https://github.com/Y8Games/y8-construct3-sdk

  1. Download the c3Example_y8 project from the repository.
  2. Open your Construct 3 project or start a new one.
  3. Right-click the Scripts folder and choose Add Script.
  4. Copy the contents of c3Example_y8/main.js into your project's main.js.
  5. Update your App ID in:
let _appId = 'YOUR_APP_ID';
Enter fullscreen mode Exit fullscreen mode
  1. Copy the y8API event sheet from c3Example_y8 and paste it into your project.
  2. Once your game is approved, replace the test Game ID with your assigned one:
let _gameId = 'YOUR_GAME_ID';
Enter fullscreen mode Exit fullscreen mode

Available Functions

showAds()   //Show interstitial ads
showRewardAds() //Show rewarded ads
rewardAdDismissed() //Skip ad, no reward, watch next time
RewardAdGained() //Reward earned, action completed.
NoRewardAds() //No ads available, try again later.
Enter fullscreen mode Exit fullscreen mode

🧩 Unity WebGL Games

📦 Repository: https://github.com/Y8Games/y8-webgl-template

  1. Download the responsiveWebGL template and import it into your Unity project.
  2. When building for WebGL, use the Y8 template y8Responsive.
  3. Download the assets folder containing the required files:
    • y8MinimalAds.jslib
    • y8MinimalAds.cs
    • Y8AdsListener.cs
  4. Create a new GameObject named GameObjectAds.
  5. Add both y8MinimalAds.cs and Y8AdsListener.cs components.

Use the following functions for ads:

showAd()    //Show interstitial ads
showRewardAd()  //Show rewarded ads
pauseGame() //Pause the game
resumeGame()    //Resume the game
rewardAdsCompleted()    //Reward after completing an ad
noRewardedAdsTryLater() //Called when no rewarded ads are available
rewardAdsCanceled() //Triggered if the user cancels the ad
Enter fullscreen mode Exit fullscreen mode

Assign Your IDs

  • App ID — Enter it under “ENTER APP ID HERE” in the Inspector.
  • Ads ID (Game ID) — Enter under “ENTER ADS ID HERE”.
  • Enable Test Ads for testing; disable before publishing live.

🎯 Step 5: Submit for QA and Go Live
Once your integration is complete and tested:

✅ Submit your game for QA.
✅ After approval, your game will go live on Y8.com and start earning revenue!

Useful Links

- Upload Games: https://www.y8.com/upload
- Create Studio: https://www.y8.com/studios
- Create Application: https://account.y8.com/applications/
- Y8 JavaScript SDK: https://github.com/Y8Games/y8-afp-ads-sdk-javascript
- Y8 Construct 3 SDK: https://github.com/Y8Games/y8-construct3-sdk
- Y8 Unity WebGL Template: https://github.com/Y8Games/y8-webgl-template

Final Thoughts
With Y8’s SDK integration, your game can easily monetize across HTML5, Construct 3, and Unity WebGL — all while reaching millions of players worldwide.

Start uploading, integrate ads, and grow your revenue today!

Top comments (0)