Playgama
  • Welcome
  • 🚀Quick start
  • Submitting a game
  • Game Requirments
    • 💥Self-check
    • Technical Requirements
    • Advertising Requirements
    • User Experience Requirements
    • Content Requirements
    • Other Requirements
    • Platform-Specific Requirements
  • In-Game Purchases
    • Step-by-step IAP integration guide for Unity
  • FAQ
    • General
    • Submitting a Game
    • Game Moderation
    • Payments and Statistics
  • SDK
    • Getting started
    • Engines
      • Core (Plain JS)
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
      • Unity
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
      • Construct 3
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
      • GDevelop
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
      • Godot
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
      • Game Maker
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
      • Defold
        • 💥Intro
        • Setup
        • Platform Parameters
        • User Data
        • Advertising
          • Banner
          • Interstitial
          • Rewarded
          • AdBlock
        • User Parameters
        • Social Interactions
        • Leaderboards
        • Achievements
        • In-Game Purchases
        • Remote Configuration
    • Playgama Bridge Config
    • Changelog
  • For Partners
    • Getting Started
    • Embed the Widget
      • Adding Games Widget to Your WordPress Site
      • Adding Games Widget to Your Tilda Site
      • Adding Games Widget to Your Framer Site
    • Import the Game Catalog
    • Share your referral link
Powered by GitBook
On this page
  • Platforms section
  • Advertisement section
  • Payments section
  1. SDK

Playgama Bridge Config

This section describes the structure of the playgama-bridge-config.json file, which is used to configure the SDK.

The default file structure looks like this:

{
    "platforms": {
        "game_distribution": {
            "gameId": ""
        },
        "telegram": {
            "adsgramBlockId": ""
        },
        "y8": {
            "gameId": "",
            "adsenseId": "",
            "channelId": ""
        },
        "lagged": {
            "devId": "",
            "publisherId": ""
        }
    },
    "advertisement": {
        "interstitial": {
            "preloadOnStart": true
        },
        "rewarded": {
            "preloadOnStart": true
        }
    },
    "payments": [
        {
            "id": "test_product",
            "playgama": {
                "amount": 1 // int price in Golden Fennecs
            },
            "playdeck": {
                "amount": 1, // int price in Telegram Stars
                "description": "TEST PRODUCT"
            }
        }
    ]
}

Platforms section

In this section you can set up various identifiers required by platforms. If you are not publishing the game on a specific platform, you can delete the corresponding lines.

Advertisement section

In this section you can configure how advertising works.

Preload On Start

The preloadOnStart parameter is responsible for whether the ad should be automatically preloaded at start (supported on some platforms, affects the speed of displaying the ad after calling the showInterstitial / showRewarded methods).

To enable you can specify a true or specific placement.

{
    "advertisement": {
        "interstitial": {
            "preloadOnStart": "test_interstitial_placement"
        }
    },
    ...
}

Placement Fallback

You can add the placementFallback parameter. If the placement is not specified in the game code, then this placement will be passed to the platform native SDK when calling showBanner, showInterstitial, showRewarded methods.

{
    "advertisement": {
        "banner": {
            "placementFallback": "test_banner_placement",
            ...
        },
        "interstitial": {
            "placementFallback": "test_interstitial_placement",
            ...
        },
        "rewarded": {
            "placementFallback": "test_rewarded_placement",
            ...
        }
    },
    ...
}

Placements

You can override which placement will be sent to the platform native SDK.

{
    ...
    "advertisement": {
        "interstitial": {
            "placements": [
                {
                    "id": "test_interstitial_placement",
                    "facebook": "facebook_overrided_placement",
                    "<ANY_PLATFORM_ID_HERE>": "<OVERRIDED_PLACEMENT_FOR_PLATFORM_HERE>"
                }
            ]
        },
        // same for banner or rewarded
        ...
    }
    ...
}

In the example above, if the game code calls a method showInterstitial("test_interstitial_placement") and the game is running on Facebook, the facebook_overrided_placement will be passed to the Facebook native SDK.

Payments section

In this section you can configure in-game purchases.

Each product must have an id (it must be used in the game code when working with methods purchase, consume, getCatalog, getPurchases) and the necessary information for the platforms.

For the Playgama.com platform, you must specify the price in Golden Fennecs.

For the Playdeck platform, you must specify the price in Telegram Stars and a description.

For other platforms that support payments, additional data is not required (it is filled in the developer account on the platform).

PreviousRemote ConfigurationNextChangelog

Last updated 2 days ago