Master Data Reference of GS2-SerialKey

Reference of the format of master data and various models to be imported

Master Data Format

{
  "version": "2022-09-13",
  "campaignModels": [
    {
      "name": "[string]Campaign name",
      "metadata": "[string?]Metadata",
      "enableCampaignCode": "[bool]Whether to allow redemption with campaign code"
    }
  ]
}
TypeConditionRequiredDefaultValue LimitsDescription
versionstring
2022-09-13Format version of master data
campaignModelsList<CampaignModel>~ 1000 itemsCampaign Model
The campaign model is used to define and manage campaigns, linking them to serial codes.

Model

CampaignModel

Campaign Model

The campaign model is used to define and manage campaigns, linking them to serial codes.

TypeConditionRequiredDefaultValue LimitsDescription
campaignIdstring
✓*
~ 1024 charsCampaign Model GRN
* Automatically configured on the server
namestring
~ 128 charsCampaign name
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.
enableCampaignCodebool
falseWhether to allow redemption with campaign code