Skip to main content

Advertising

Overview

SpellSync allows you to implement the display of advertisements or rewarded videos in the game. Advertising in SpellSync is handled using the Ads Manager ss.ads. The manager manages banners on the game page:

  • Ad display;
  • Automatic update timer management;
  • Advertising show frequency.

Supported platforms

  • Google Play
  • CrazyGames
  • Yandex Games
  • VK Games
  • VK Play
  • OK Games
  • PlayDeck
  • GameDistribution
  • GameMonetize
  • GamePix
  • WG Playground
  • SmartMarket
  • Web (custom site)
  • Android (alternative stores)
  • Platforms without support
  • Kongregate
  • Additional Sections

    Ad Manager

    FREE

    The ad manager rules over the banners on the page. Its responsibility consists in displaying ads, managing auto-refresh and ads frequency timers.

    Available ad manager properties:

    // Is AdBlock enabled
    ss.ads.isAdblockEnabled;

    // Is the banner available
    ss.ads.isStickyAvailable;
    ss.ads.isFullscreenAvailable;
    ss.ads.isRewardedAvailable;
    ss.ads.isPreloaderAvailable;

    // Is the ads playing now
    ss.ads.isStickyPlaying;
    ss.ads.isFullscreenPlaying;
    ss.ads.isRewardedPlaying;
    ss.ads.isPreloaderPlaying;

    // Check enabled advertising overlays
    // Countdown overlay before displaying fullscreen ads is enabled
    ss.ads.isCountdownOverlayEnabled;
    // Overlay is enabled for failed display of rewarded video
    ss.ads.isRewardedFailedOverlayEnabled;

    // Can fullscreen ads be shown on the platform before gameplay starts
    ss.ads.canShowFullscreenBeforeGamePlay;

    You can subscribe for the following basic events:

    // Ads show started
    ss.ads.on('start', () => {});
    // Ads show ended
    ss.ads.on('close', (success) => {});

    Fullscreen

    FREE

    Fullscreen banner or interstitial is pop-up, often fullscreen skippable (sometimes only after a few seconds) advertising. Usually it is shown in transition between levels. Its displaying is prohibited during the gameplay on many platforms. It is allowed to show only in pause between game sessions.

    It is also prohibited during the navigation by the VK Games platform. So, we will consider this a bad practice on other platforms too.

    Call example:

    // Show fullscreen, returns a promise
    ss.ads.showFullscreen();

    // Show fullscreen with a countdown overlay before displaying the advertisement
    ss.ads.showFullscreen({ showCountdownOverlay: true });

    // Showing started
    ss.ads.on('fullscreen:start', () => {});
    // Showing ended
    ss.ads.on('fullscreen:close', (success) => {});

    Preloader

    FREE

    Pleloader is a banner that appears when loading the game. On many platforms, it is implemented through Fullscreen, but is not tied to its timers (except for Yandex.Games).

    Displaying is allowed only before the start of the game.

    Call example:

    // Show preloader, returns a promise
    ss.ads.showPreloader();

    // Showing started
    ss.ads.on('preloader:start', () => {});
    // Showing ended
    ss.ads.on('preloader:close', (success) => {});

    Rewarded Video

    FREE

    Rewarded Video is a non-skippable video ad that aims to give the player a reward for watching. It is forbidden to show without a reward.

    Call example:

    // Show rewarded video, returns a promise
    ss.ads.showRewardedVideo();

    // Show rewarded video with an option to display an overlay
    // in case of an unsuccessful display of the rewarded video
    ss.ads.showRewardedVideo({ showFailedOverlay: true });

    // Asynchronously
    const success = await ss.ads.showRewardedVideo();
    if (success) {
    ss.player.add('gold', 5000);
    }

    // Showing started
    ss.ads.on('rewarded:start', () => {});
    // Showing ended
    ss.ads.on('rewarded:close', (success) => {});
    // Reward is received
    ss.ads.on('rewarded:reward', () => {});

    Sticky Banner

    FREE

    Sticky banner is a fixed bottom banner. It takes ~50-100px (110px VK Direct Games). The banner must not cover the play region.

    In the panel, you can customize the auto-refresh frequency. The banner will be updated according to the specified frequency immediately of the start.

    Call example:

    // Show the sticky banner, then it will auto-update itself
    ss.ads.showSticky();
    // Refresh the sticky banner, forced refreshing
    ss.ads.refreshSticky();
    // Close the sticky banner
    ss.ads.closeSticky();

    // Open the banner
    ss.ads.on('sticky:start', () => {});
    // The banner appears on the screen
    ss.ads.on('sticky:render', () => {});
    // The banner updated
    ss.ads.on('sticky:refresh', () => {});
    // Close the banner
    ss.ads.on('sticky:close', () => {});

    Supported platforms

  • Google Play
  • CrazyGames
  • Yandex Games
  • PlayDeck
  • GameDistribution
  • VK Games
  • OK Games
  • Platforms without support
  • GamePix
  • GameMonetize
  • SmartMarket
  • VK Play
  • WG Playground
  • Kongregate
  • Android (alternative stores)
  • Web (custom site)
  • Stay in Touch

    Other documents of this chapter available Here. To get started, welcome to the Tutorials chapter.

    SpellSync Community Telegram: @spellsync.

    For your suggestions e-mail: [email protected]

    We Wish you Success!