DEV Community

Mohamed Gani
Mohamed Gani

Posted on Edited on

Publish and Monetize Your Games on Y8.com

If you're a game developer looking to publish your games 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://developer.y8.com/

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.
- Y8 Managed Partnership (YMP) — You send Y8 invoices, and the payment is handled manually.

YMP is the default partnership, while AFP is available to eligible
developers.

If you're interested in AFP, contact Y8 at developers@y8.com to
learn about eligibility and the application process.

🧠 Step 3: Get Your Game Credentials

Before integrating the Y8 SDK, open your game in the Y8 Developer Portal and go to SDK Initialization.

Under Credentials, you can find the IDs required for SDK integration:

Game ID — Identifies your application. Always required.
App ID — Identifies your game to Y8 platform services. Required for advertising

Copy these credentials from the Developer Portal and use them when configuring the Y8 SDK.

🎮 Step 4: Integrate the Y8 SDK

The Y8 SDK supports multiple platforms, including JavaScript, Unity, Construct 3, and Haxe.

For complete SDK details and API examples, see the Y8 SDK Documentation.

For a quick overview, here's a JavaScript example.

Include the Y8 SDK in the <head> section of your HTML:

<head>
    <script src="https://cdn.y8.com/minimal-sdk/2-0/y8.min.js" async></script>
</head>
Enter fullscreen mode Exit fullscreen mode

Initialize the SDK after it has loaded:

<script>
let y8Sdk;

window.addEventListener("y8sdk.ready", function () {
    y8Sdk = y8.sdk();

    const appConfig = {
        appId: "<app id>",
        autoLogin: true
    };

    const adConfig = {
        gameId: "<game id>",
        preloadAdBreaks: "on",
        sound: "on",
        onReady: () => {}
    };

    y8Sdk.init(appConfig, adConfig);

    y8Sdk.onAuth((user, error) => {
        if (error) {
            console.error(error);
            return;
        }

        console.log(user);
    });
}, { once: true });

// Handle the case where the SDK already loaded
if (window.y8 && window.y8.emitReadyEvent) {
    window.y8.emitReadyEvent();
}
</script>
Enter fullscreen mode Exit fullscreen mode

Display Ads

Use showAd() to request an ad break:

y8Sdk.showAd({
    type: "start",              // start | pause | next | browse | reward
    name: "start-game",

    beforeAd: () => {
        // Pause your game
    },

    afterAd: () => {
        // Resume your game
    },

    beforeReward: (showAdFn) => {
        // Rewarded ads only
        showAdFn();
    },

    adDismissed: () => {
        // Player skipped or dismissed the ad
    },

    adViewed: () => {
        // Reward the player after a rewarded ad is viewed
    },

    adBreakDone: (info) => {
        // Called when the ad break is complete
    }
}).catch((error) => {
    console.error(error);
});
Enter fullscreen mode Exit fullscreen mode

For rewarded ads, grant the reward from adViewed, not simply when the ad is requested.

Other Platforms

The Y8 SDK is also available for:

  • Unity WebGL
  • Construct 3
  • Haxe

See the Y8 SDK Documentation for platform-specific installation instructions and examples.

🎯 Step 5: Request Review and Go Live

Once you've completed your game setup, SDK integration, and testing:

  1. Save your changes in the Developer Portal.
  2. Click Request Review to submit your game to the Y8 team.
  3. Check the Feedback section for review updates or requests from the Y8 team.
  4. If changes are requested, update your game and submit it for review again.
  5. Once your game is approved, it can go live on Y8.com.
  6. With advertising properly integrated and monetization enabled, your game can begin generating advertising revenue.

Useful Links

✅ 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)