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 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.
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.
Placements
You can override which placement will be sent to the platform native SDK.
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).
Last updated