GS2-SerialKey Master Data Reference

Reference for the master data format and the models to be imported

Master Data Format

{
  "version": "2022-09-13",
  "campaignModels": [
    {
      "name": "[string]Campaign Model 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
A Campaign Model is used to define and manage campaigns, linking them to serial codes.

Model

CampaignModel

Campaign Model

A Campaign Model is used to define and manage campaigns, linking them to serial codes.

TypeConditionRequiredDefaultValue LimitsDescription
campaignIdstring
*
~ 1024 charsGRN of the Campaign Model
* Set automatically by the server
namestring
~ 128 charsCampaign Model 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.
enableCampaignCodeboolfalseWhether to allow redemption with campaign code
When enabled, users can redeem rewards using a shared campaign code (the campaign name) instead of individual serial codes. This allows a single code to be used by multiple users.