---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/games/doc/en/config.md
  - https://yandex.com/dev/games/doc/hi/config.md
  - https://yandex.com/dev/games/doc/ko/config.md
  - https://yandex.com/dev/games/doc/ru/config.md
  - https://yandex.com/dev/games/doc/tr/config.md
  - https://yandex.com/dev/games/doc/vi/config.md
  - https://yandex.com/dev/games/doc/zh/config.md
  - href: en/config.md
    type: text/markdown
    title: Markdown version
  - href: llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/games/doc/en/llms.txt

# Flags

<!-- source: en/_includes/script-common.md -->
<!-- source: en/_includes/script/index-js.md -->

<!-- endsource: en/_includes/script/index-js.md -->

<!-- source: en/_includes/script/requirements-js.md -->

<!-- endsource: en/_includes/script/requirements-js.md -->

<!-- source: en/_includes/script/image-modal-js.md -->

<!-- endsource: en/_includes/script/image-modal-js.md -->
<!-- endsource: en/_includes/script-common.md -->

The [Release updates](https://yandex.com/dev/games/doc/en/console/update-game.md) 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](https://varioqub.ru/){.external} 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:

- 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&nbsp;Games Console and integrating the `ysdk.getFlags()` SDK method into your game.

{% note info %}

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

{% endnote %}


### Step 1. Create a flag configuration {#create-flag-config}

1. Open the [Games Console](https://games.yandex.com/console){.external}.

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

3. Specify the flag name and its default value (type: `string`). The maximum flag length is 100 characters.

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 ![](_images/icons/full.svg) icon.


### Step 2. Apply the config to the game {#apply-config}

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-config}

Activate the remote flag configuration using the `ysdk.getFlags()` method. For more information, see [Remote configuration](https://yandex.com/dev/games/doc/en/sdk/sdk-config.md).
