Page Summary
-
The content details how to list the games of a given game center using an HTTP GET request.
-
The required path parameter for the request is the
parent, specifying the game center. -
The response body contains a list of
Gameobjects, each representing a game with details like name, orientation, genres, and static content. -
The
Gameobject includes nested structures likeStaticContentfor images and videos, andImage,Video, andSizefor their representation. -
Enums are used to define supported
OrientationandGenrecategories for games.
- HTTP request
- Path parameters
- Request body
- Response body
- Game
- StaticContent
- Image
- Size
- Video
- Size
- Orientation
- Genre
Lists the games of a given game center.
HTTP request
GET https://gamesnackspartner.googleapis.com/v1/{parent=accounts/*/gamecenters/*}/games
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The game center which owns the collection of games. Format: accounts/{account}/gamecenters/{gamecenter} |
Request body
The request body must be empty.
Response body
Response definition for the games list rpc.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"games": [
{
object ( |
| Fields | |
|---|---|
games[] |
The games returned in the list response. |
Game
Representation of a game.
| JSON representation |
|---|
{ "name": string, "orientation": enum ( |
| Fields | |
|---|---|
name |
Required. Name of the game. Format: accounts/{account}/gamecenters/{gamecenter}/games/{game} |
orientation |
Screen orientations supported by the game. |
genres[] |
List of genres that are used to classify the game. |
displayName |
The name of the game provided by the developer. |
version |
The version of the game provided by the developer, e.g. |
description |
The description of the game provided by the developer. |
embedUri |
GameCenter URI that embeds the game for a given game center. |
staticContent |
The images and videos of the game. |
publishTime |
The time when the game first went live. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
StaticContent
Representation of the game static content, e.g. images and videos.
| JSON representation |
|---|
{ "icons": [ { object ( |
| Fields | |
|---|---|
icons[] |
The icons used to represent the game. Multiple values represent different sizes. |
horizontalBanners[] |
The horizontal banner of the game. The width of the image should be greater than its height. |
verticalBanners[] |
The vertical banner of the game. The height of the image should be greater than its width. |
trailers[] |
The trailers of the game. |
Image
Representation of an image.
| JSON representation |
|---|
{
"size": {
object ( |
| Fields | |
|---|---|
size |
Size of the image. |
uri |
The URI of the image. Images may be in bitmap (e.g. PNG) or vector (e.g. SVG) formats. |
Size
Representation of images dimensions.
| JSON representation |
|---|
{ "widthPixels": string, "heightPixels": string } |
| Fields | |
|---|---|
widthPixels |
Width of the image in pixels. |
heightPixels |
Height of the image in pixels. |
Video
Representation of a video.
| JSON representation |
|---|
{
"uri": string,
"size": {
object ( |
| Fields | |
|---|---|
uri |
The URI of the video. Videos may be in MP4 format. |
size |
Size of the video. |
Size
Representation of videos dimensions.
| JSON representation |
|---|
{ "widthPixels": string, "heightPixels": string } |
| Fields | |
|---|---|
widthPixels |
Width of the video in pixels. |
heightPixels |
Height of the video in pixels. |
Orientation
Screen orientations supported by the game.
| Enums | |
|---|---|
ORIENTATION_UNSPECIFIED |
The default value, do not use. |
ANY |
The game is supported in landscape and portrait modes. |
LANDSCAPE |
The game is supported in landscape mode. |
PORTRAIT |
The game is supported in portrait mode. |
Genre
The games categories that are used to classify the game.
| Enums | |
|---|---|
GENRE_UNSPECIFIED |
The default value, do not use. |
ACTION |
Emphasizes combat and reflexes. |
ADVENTURE |
Focuses on exploration, story, and puzzle-solving. |
ARCADE |
Emphasizes fast-paced action, simple controls, and escalating difficulty. |
BOARD |
Mnipulates pieces on a board according to specific rules. |
CARD |
Features a deck of specialized cards as the main tool for gameplay. |
CASINO |
Features simulations of traditional casino experiences. |
CASUAL |
Focuses on providing intuitive and easy-to-learn gameplay. |
EDUCATIONAL |
Designed to teach skills or concepts through engaging gameplay. |
MUSIC |
Focuses on music interactions in the gameplay. |
PUZZLE |
Challenges the player's problem-solving skills. |
RACING |
Players control a vehicle and try to reach the finish line first. |
ROLE_PLAYING |
Fantasy or sci-fi world where players make choices that shape the story. |
SIMULATION |
Mimic real-world activities or scenarios. |
SPORTS |
Recreate real-world sports with realistic gameplay. |
STRATEGY |
Focuses on planning, tactics, and resource management |
TRIVIA |
Tests knowledge with questions across various subjects. |
WORD |
Focuses on vocabulary, word formation, and spelling. |