Create a flag configuration

The Update a game section describes how to activate and set up your game's features by updating its archive. The updated game has to pass moderation again (the moderation period depends on the team's current workload). Alternatively, you can use the Remote Config feature provided by Varioqub to manage your game settings without updating the archive. Your changes are applied within a few seconds and don't require any additional checks.

For instance, with Remote Config, you can:

  • Manage the display of interstitial ads when the game starts.
  • Configure dynamic balancing of gameplay parameters, difficulty levels, and economy.
  • Adapt your game mechanics to suit users from different countries.
  • Manage seasonal offers and promotions as well as your game's look and feel depending on the current time.
  • Set up the reward amount for watching rewarded videos.
  • Adjust graphics quality depending on the user's device to optimize performance.
  • Gradually introduce new features to track their impact on game metrics.

Remote Config is set up in two steps: setting the flags (key-value pairs) in the Yandex Games Console and integrating the getFlags() SDK method into your game.

Note

You can create up to 100 flags and specify one default value and two conditional values for each.

Step 1. Create a flag configuration

  1. Open the Games Console.

  2. Go to the Flags tab and click Add flag.

  3. Specify the flag name and its default value.

  4. If necessary, specify additional conditions. To do this, click Add value. Each value may have multiple options.

    Available value parameters:

    • Languages: The language on the devices of users who will be shown your configuration.
    • Regions: The region set on the user's device.
    • Platforms: Mobile or desktop devices or TVs. The device type is determined using the User-agent directive.
    • Client features: You can specify your custom parameters as key-value pairs. For example, param=value. To specify multiple values combined with the "AND" operator, list the parameters separated by commas. Example: aparam=avalue,bparam=bvalue.
  5. Click Save.

To change the flag value, click it or the icon.

Step 2. Apply the config to the game

When the config is ready, publish it to apply the changes to the game.

  1. Click Publish config.

  2. Verify the changes you made and click Save. The config will be applied to the game under the specified conditions immediately after saving.

Versioning is provided for remote configurations. After publishing the flag configuration, Varioqub creates an up-to-date game version reflecting the changes. You can go back to the previous version: changes saved in the current version will be deleted.

Step 3. Activate the config

Activate the remote flag configuration using the getFlags() method. For more information, see Yandex Games SDK.