Provides information required for banner configuration in a list format. There are 3 API responses according to the Request Body type_banner value.

  1. small: Returns the information needed to configure normal banners, notices, and rolling banners.
  2. great: Returns only the information needed to configure full banners.
  3. rolling: Returns only the information needed to configure the rolling banner.

 

  • Request URL
    Common URL https://promotion.qpyou.cn/api/banner
    Sandbox URL https://sandbox-promotion.qpyou.cn/api/banner
    HTTP Method POST
    Content-Type text/html
    Data Format JSON
  • Request Body
    Field Name Description Type Required
    user User information Object Y
    ㄴ uid User ID managed by platform String N
    ㄴ vid VID managed by login center on integration module, or PlayerID managed by Hive Authenticaion v4. The value is empty with individual modules. String N
    ㄴ player_token user authentication information String N
    ㄴ did Unique ID for each device that Hive Provisioning generates String Y
    ㄴ world Game server information String Y
    ㄴ language Language code set on game or device (based on ISO 639-1) String Y
    ㄴ hive_country Requested country information
    If no value exists, the field is determined based on the request IP.
    String N
    ㄴ age_gate_u13 Whether to limit users under 13 according to COPPA
    Game studio sends the return value from implementing relevant functions in Hive SDK.

    • true: restrict the users under 13
    • false: no restriction
    Boolean Y
    game Game information Object Y
    ㄴ appid AppID of a game which attempts to expose the banner String Y
    ㄴ app_version Game version required to determine whether displaying an examination banner or not String Y
    promotion Promotion campaign data Object Y
    ㄴ type_camp Promotion campaign type (select or enter directly when registering a campaign in the Hive console)

    • all: all types
    • event: event type
    • notice: notice type
    • cross: cross campaign type
    • Others: notice type defined by the user, up to 10 alphabetical lower case letters
    String Y
    ㄴ type_banner Campaign banner type

    • small: normal banner (strip banner)
    • great: full banner
    • rolling: Rolling Banner
    String Y
  • Request Body Example
  • Request Example
  •  

    • Response (the type_banner value in Request Body is small: normal banner, notice, rolling banner)
      Field Name Description Type Required
      result_code response code

      • 200: verification success
      • others: failure
      Integer Y
      result_message response message String Y
      count the number of banners Integer Y
      banner the list of banners
      The array is empty([]) without banner registration.
      Array Y
      ㄴ pid promotion campaign ID String N
      ㄴ image The image URL of campaign banner String N
      ㄴ link The URL opening when user clicks a campaign banner String N
      ㄴ start_date The start date of campaign String N
      ㄴ end_date The end date of campaign String N
      ㄴ start_unixtimestamp The start time of campaign (Unix timestamp) Integer N
      ㄴ end_unixtimestamp The end time of campaign (Unix timestamp) Integer N
      ㄴ type_link The type to open pages when user clicks a campaign banner (select when registering campaigns)

      • webview: Open an internal link
      • webbrowser: Open an external link
      • market: Open the market (App Store) page
      • notice: Open the Hive notice page
      • text: Open the promotion text notice
      • interwork: Move to the specified page in the game
      • none: Stay on the page
      String N
      ㄴ interwork_data Provides API and parameters to move to a specific page in the game (NULL if there is no corresponding information)

      Object N
      ㄴㄴ api API URI String N
      ㄴㄴ param Query string parameter value to be used in the API URI String N
      ㄴ type_banner Campaign banner type

      • small: normal banner
      • rolling: Rolling Banner
      String N
      ㄴ type_camp The campaign type of promotion

      • event: event type
      • notice: notice type
      • permit: examination banner
      • cross: cross banner
      String N
      ㄴ badge The information of the badge notifying an event will end soon, and the badge notifying the available period one can receive gifts. Only normal banners return this field value. The rolling banners always return NULL. The normal banners also returns NULL if there is no badge information set in the Period Notification Badge Settings of the Hive console. The notice type does not have this field. Object N
      ㄴㄴ title the texts in the badge String N
      ㄴㄴ type the type of the badge exposed

      • shutdown: the badge notifying the imminent end of an event
      • gift: the badge notifying the available period of receiving a gift.
      String N
      ㄴㄴ start_date the start date of badge exposure (ISO-8601 format) String N
      ㄴㄴ end_date the end date of badge exposure (ISO-8601 format) String N
      ㄴㄴ start_unixtimestamp the start time of badge exposure (Unix timestamp) Integer N
      ㄴㄴ end_unixtimestamp the end time of badge exposure (Unix timestamp) Integer N
      notice_count the number of notices Integer Y
      notice the information of the posted notice Array Y
      ㄴ pid the id of the posted notice String N
      ㄴ notice_type the type of the posted notice String N
      ㄴ title the title of the posted notice String N
      ㄴ link the URL of the posted notice String N
      ㄴ start_date the start time of the exposure of the post String N
      ㄴ end_date the end time of the exposure of the post String N
      ㄴ start_unixtimestamp the start time of the exposure of the post (Unix timestamp) String N
      ㄴ end_unixtimestamp the end time of the exposure of the post (Unix timestamp) String N
      ㄴ view_count the number of views for the post String N
      ㄴ game_index the index information of the game from the post String N
      ㄴ language the language code set for the post (based on ISO 639-1) String N
      rolling_count the number of rolling banners Integer Y
      rolling the information of the rolling banner Array Y
      ㄴ pid promotion campaign ID String N
      ㄴ image The image URL of campaign banner String N
      ㄴ link URL to go to when clicking the banner String N
      ㄴ start_date The start date of campaign String N
      ㄴ end_date The end date of campaign String N
      ㄴ start_unixtimestamp The start time of campaign (Unix timestamp) String N
      ㄴ end_unixtimestamp The end time of campaign (Unix timestamp) String N
      ㄴ type_link The type to open pages when user clicks a campaign banner (select when registering campaigns)

      • webview: Open an internal link
      • webbrowser: Open an external link
      • market: Open the market (App Store) page
      • notice: Open the Hive notice page
      • text: Open the promotion text notice
      • interwork: Move to the specified page in the game
      • none: Stay on the page
      String N
      ㄴ type_banner Campaign banner type

      • small: normal banner
      • rolling: Rolling Banner
      String N
      ㄴ type_camp The campaign type of promotion

      • event: event type
      • notice: notice type
      • permit: examination banner
      • cross: cross banner
      String N
      ㄴ interwork_data Provides API and parameters to move to a specific page in the game (NULL if there is no information) Object N
      ㄴㄴ api API URI String N
      ㄴㄴ param Query string parameter value to be used in the API URI String N
    • Result code
      Code Message Description
      200 Success data transmission succeeded
    • Response Example (Normal Banner, Notice, Rolling Banner)

     

    • Response (the type_banner value in the Request Body is great or rolling: full banner or rolling banner)
      Field Name Description Type Required
      result_code response code

      • 200: verification success
      • others: failure
      String Y
      result_message response message String Y
      count the number of banners Integer Y
      banner the list of banners
      The array is empty([]) without banner registration.
      Array Y
      ㄴ pid promotion campaign ID String N
      ㄴ image The image URL of campaign banner String N
      ㄴ link The URL opening when user clicks a campaign banner String N
      ㄴ start_date The start date of campaign String N
      ㄴ end_date The end date of campaign String N
      ㄴ start_unixtimestamp The start time of campaign (Unix timestamp) Integer N
      ㄴ end_unixtimestamp The end time of campaign (Unix timestamp) Integer N
      ㄴ type_link The type to open pages when user clicks a campaign banner (select when registering campaigns)

      • webview: Open an internal link
      • webbrowser: Open an external link
      • market: Open the market (App Store) page
      • notice: Open the Hive notice page
      • text: Open the promotion text notice
      • interwork: Move to the specified page in the game
      • none: Stay on the page
      String N
      ㄴ interwork_data Provides API and parameters to move to a specific page in the game (NULL if there is no information)

      Object N
      ㄴㄴ api API URI String N
      ㄴㄴ param Query string parameter value to be used in the API URI String N
      ㄴ type_banner Campaign banner type

      • great: full banner
      • small: normal banner (strip banner)
      • rolling: Rolling Banner
      String N
      ㄴ type_camp Promotion campaign type (select or enter directly when registering a campaign in the Hive console)

      • event: event type
      • notice: notice type
      • permit: examination banner
      • cross: cross banner
      String N
      ㄴ badge The information of the badge notifying an event will end soon, and the badge notifying the available period one can receive gifts. The rolling banners and full banners always return NULL. Object N
      ㄴㄴ title the texts in the badge String N
      ㄴㄴ type the type of the badge exposed

      • shutdown: the badge notifying the imminent end of an event
      • gift: the badge notifying the available period of receiving a gift.
      String N
      ㄴㄴ start_date the start date of badge exposure (ISO-8601 format) String N
      ㄴㄴ end_date the end date of badge exposure (ISO-8601 format) String N
      ㄴㄴ start_unixtimestamp the start time of badge exposure (Unix timestamp) Integer N
      ㄴㄴ end_unixtimestamp the end time of badge exposure (Unix timestamp) Integer N
    • Result code
      Code Message Description
      200 Success data transmission succeeded
    • Response Example (Full Banner or Rolling Banner)