npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/google_games

v6.0.0

Published

DataFire integration for Google Play Game Services

Downloads

8

Readme

@datafire/google_games

Client library for Google Play Game Services

Installation and Usage

npm install --save @datafire/google_games
let google_games = require('@datafire/google_games').create({
  access_token: "",
  refresh_token: "",
  client_id: "",
  client_secret: "",
  redirect_uri: ""
});

.then(data => {
  console.log(data);
});

Description

The Google Play games service allows developers to enhance games with social leaderboards, achievements, game state, sign-in with Google, and more.

Actions

oauthCallback

Exchange the code passed to your redirect URI for an access_token

google_games.oauthCallback({
  "code": ""
}, context)

Input

  • input object
    • code required string

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

oauthRefresh

Exchange a refresh_token for an access_token

google_games.oauthRefresh(null, context)

Input

This action has no parameters

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

games.achievementDefinitions.list

Lists all the achievement definitions for your application.

google_games.games.achievementDefinitions.list({}, context)

Input

  • input object
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.achievements.updateMultiple

Updates multiple achievements for the currently authenticated player.

google_games.games.achievements.updateMultiple({}, context)

Input

  • input object
    • body AchievementUpdateMultipleRequest
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.achievements.increment

Increments the steps of the achievement with the given ID for the currently authenticated player.

google_games.games.achievements.increment({
  "achievementId": "",
  "stepsToIncrement": 0
}, context)

Input

  • input object
    • achievementId required string: The ID of the achievement used by this method.
    • stepsToIncrement required integer: The number of steps to increment.
    • requestId string: A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.achievements.reveal

Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.

google_games.games.achievements.reveal({
  "achievementId": ""
}, context)

Input

  • input object
    • achievementId required string: The ID of the achievement used by this method.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.achievements.setStepsAtLeast

Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.

google_games.games.achievements.setStepsAtLeast({
  "achievementId": "",
  "steps": 0
}, context)

Input

  • input object
    • achievementId required string: The ID of the achievement used by this method.
    • steps required integer: The minimum value to set the steps to.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.achievements.unlock

Unlocks this achievement for the currently authenticated player.

google_games.games.achievements.unlock({
  "achievementId": ""
}, context)

Input

  • input object
    • achievementId required string: The ID of the achievement used by this method.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.applications.getEndPoint

Returns a URL for the requested end point type.

google_games.games.applications.getEndPoint({}, context)

Input

  • input object
    • applicationId string: The application ID from the Google Play developer console.
    • endPointType string (values: END_POINT_TYPE_UNSPECIFIED, PROFILE_CREATION, PROFILE_SETTINGS): Type of endpoint being requested.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.applications.played

Indicate that the currently authenticated user is playing your application.

google_games.games.applications.played({}, context)

Input

  • input object
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

Output schema unknown

games.applications.get

Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified platformType, the returned response will not include any instance data.

google_games.games.applications.get({
  "applicationId": ""
}, context)

Input

  • input object
    • applicationId required string: The application ID from the Google Play developer console.
    • language string: The preferred language to use for strings returned by this method.
    • platformType string (values: PLATFORM_TYPE_UNSPECIFIED, ANDROID, IOS, WEB_APP): Restrict application details returned to the specific platform.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.applications.verify

Verifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.

google_games.games.applications.verify({
  "applicationId": ""
}, context)

Input

  • input object
    • applicationId required string: The application ID from the Google Play developer console.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.events.listDefinitions

Returns a list of the event definitions in this application.

google_games.games.events.listDefinitions({}, context)

Input

  • input object
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of event definitions to return in the response, used for paging. For any response, the actual number of event definitions to return may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.events.listByPlayer

Returns a list showing the current progress on events in this application for the currently authenticated user.

google_games.games.events.listByPlayer({}, context)

Input

  • input object
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of events to return in the response, used for paging. For any response, the actual number of events to return may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.events.record

Records a batch of changes to the number of times events have occurred for the currently authenticated user of this application.

google_games.games.events.record({}, context)

Input

  • input object
    • language string: The preferred language to use for strings returned by this method.
    • body EventRecordRequest
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.leaderboards.list

Lists all the leaderboard metadata for your application.

google_games.games.leaderboards.list({}, context)

Input

  • input object
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of leaderboards to return in the response. For any response, the actual number of leaderboards returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.scores.submitMultiple

Submits multiple scores to leaderboards.

google_games.games.scores.submitMultiple({}, context)

Input

  • input object
    • language string: The preferred language to use for strings returned by this method.
    • body PlayerScoreSubmissionList
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.leaderboards.get

Retrieves the metadata of the leaderboard with the given ID.

google_games.games.leaderboards.get({
  "leaderboardId": ""
}, context)

Input

  • input object
    • leaderboardId required string: The ID of the leaderboard.
    • language string: The preferred language to use for strings returned by this method.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.scores.submit

Submits a score to the specified leaderboard.

google_games.games.scores.submit({
  "leaderboardId": "",
  "score": ""
}, context)

Input

  • input object
    • leaderboardId required string: The ID of the leaderboard.
    • score required string: The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.
    • language string: The preferred language to use for strings returned by this method.
    • scoreTag string: Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.scores.list

Lists the scores in a leaderboard, starting from the top.

google_games.games.scores.list({
  "leaderboardId": "",
  "collection": "",
  "timeSpan": ""
}, context)

Input

  • input object
    • leaderboardId required string: The ID of the leaderboard.
    • collection required string (values: SCORE_COLLECTION_UNSPECIFIED, PUBLIC, SOCIAL, FRIENDS): The collection of scores you're requesting.
    • timeSpan required string (values: SCORE_TIME_SPAN_UNSPECIFIED, ALL_TIME, WEEKLY, DAILY): The time span for the scores and ranks you're requesting.
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.scores.listWindow

Lists the scores in a leaderboard around (and including) a player's score.

google_games.games.scores.listWindow({
  "leaderboardId": "",
  "collection": "",
  "timeSpan": ""
}, context)

Input

  • input object
    • leaderboardId required string: The ID of the leaderboard.
    • collection required string (values: SCORE_COLLECTION_UNSPECIFIED, PUBLIC, SOCIAL, FRIENDS): The collection of scores you're requesting.
    • timeSpan required string (values: SCORE_TIME_SPAN_UNSPECIFIED, ALL_TIME, WEEKLY, DAILY): The time span for the scores and ranks you're requesting.
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • resultsAbove integer: The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults.
    • returnTopIfAbsent boolean: True if the top scores should be returned when the player is not in the leaderboard. Defaults to true.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.metagame.getMetagameConfig

Return the metagame configuration data for the calling application.

google_games.games.metagame.getMetagameConfig({}, context)

Input

  • input object
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.players.list

Get the collection of players for the currently authenticated user.

google_games.games.players.list({
  "collection": ""
}, context)

Input

  • input object
    • collection required string (values: CONNECTED, VISIBLE, FRIENDS_ALL): Collection of players being retrieved
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.players.get

Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.

google_games.games.players.get({
  "playerId": ""
}, context)

Input

  • input object
    • playerId required string: A player ID. A value of me may be used in place of the authenticated player's ID.
    • language string: The preferred language to use for strings returned by this method.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.achievements.list

Lists the progress for all your application's achievements for the currently authenticated player.

google_games.games.achievements.list({
  "playerId": ""
}, context)

Input

  • input object
    • playerId required string: A player ID. A value of me may be used in place of the authenticated player's ID.
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • state string (values: ALL, HIDDEN, REVEALED, UNLOCKED): Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.metagame.listCategoriesByPlayer

List play data aggregated per category for the player corresponding to playerId.

google_games.games.metagame.listCategoriesByPlayer({
  "playerId": "",
  "collection": ""
}, context)

Input

  • input object
    • playerId required string: A player ID. A value of me may be used in place of the authenticated player's ID.
    • collection required string (values: COLLECTION_UNSPECIFIED, ALL): The collection of categories for which data will be returned.
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of category resources to return in the response, used for paging. For any response, the actual number of category resources returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.scores.get

Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span. `NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; only one parameter may be set to 'ALL'.

google_games.games.scores.get({
  "playerId": "",
  "leaderboardId": "",
  "timeSpan": ""
}, context)

Input

  • input object
    • playerId required string: A player ID. A value of me may be used in place of the authenticated player's ID.
    • leaderboardId required string: The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application.
    • timeSpan required string (values: SCORE_TIME_SPAN_UNSPECIFIED, ALL, ALL_TIME, WEEKLY, DAILY): The time span for the scores and ranks you're requesting.
    • includeRankType string (values: INCLUDE_RANK_TYPE_UNSPECIFIED, ALL, PUBLIC, SOCIAL, FRIENDS): The types of ranks to return. If the parameter is omitted, no ranks will be returned.
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.snapshots.list

Retrieves a list of snapshots created by your application for the player corresponding to the player ID.

google_games.games.snapshots.list({
  "playerId": ""
}, context)

Input

  • input object
    • playerId required string: A player ID. A value of me may be used in place of the authenticated player's ID.
    • language string: The preferred language to use for strings returned by this method.
    • maxResults integer: The maximum number of snapshot resources to return in the response, used for paging. For any response, the actual number of snapshot resources returned may be less than the specified maxResults.
    • pageToken string: The token returned by the previous request.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.revisions.check

Checks whether the games client is out of date.

google_games.games.revisions.check({
  "clientRevision": ""
}, context)

Input

  • input object
    • clientRevision required string: The revision of the client SDK used by your application. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: * ANDROID - Client is running the Android SDK. * IOS - Client is running the iOS SDK. * WEB_APP - Client is running as a Web App.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.snapshots.get

Retrieves the metadata for a given snapshot ID.

google_games.games.snapshots.get({
  "snapshotId": ""
}, context)

Input

  • input object
    • snapshotId required string: The ID of the snapshot.
    • language string: The preferred language to use for strings returned by this method.
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.snapshotsExtended.resolveSnapshotHead

Resolves any potential conflicts according to the resolution policy specified in the request and returns the snapshot head after the resolution.

google_games.games.snapshotsExtended.resolveSnapshotHead({
  "snapshotName": ""
}, context)

Input

  • input object
    • snapshotName required string: Required. Name of the snapshot.
    • body ResolveSnapshotHeadRequest
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

games.stats.get

Returns engagement and spend statistics in this application for the currently authenticated user.

google_games.games.stats.get({}, context)

Input

  • input object
    • $.xgafv string (values: 1, 2): V1 error format.
    • access_token string: OAuth access token.
    • alt string (values: json, media, proto): Data format for response.
    • callback string: JSONP
    • fields string: Selector specifying which fields to include in a partial response.
    • key string: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • oauth_token string: OAuth 2.0 token for the current user.
    • prettyPrint boolean: Returns response with indentations and line breaks.
    • quotaUser string: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • upload_protocol string: Upload protocol for media (e.g. "raw", "multipart").
    • uploadType string: Legacy upload protocol for media (e.g. "media", "multipart").

Output

Definitions

AchievementDefinition

  • AchievementDefinition object: An achievement definition object.
    • achievementType string (values: ACHIEVEMENT_TYPE_UNSPECIFIED, STANDARD, INCREMENTAL): The type of the achievement.
    • description string: The description of the achievement.
    • experiencePoints string: Experience points which will be earned when unlocking this achievement.
    • formattedTotalSteps string: The total steps for an incremental achievement as a string.
    • id string: The ID of the achievement.
    • initialState string (values: INITIAL_ACHIEVEMENT_STATE_UNSPECIFIED, HIDDEN, REVEALED, UNLOCKED): The initial state of the achievement.
    • isRevealedIconUrlDefault boolean: Indicates whether the revealed icon image being returned is a default image, or is provided by the game.
    • isUnlockedIconUrlDefault boolean: Indicates whether the unlocked icon image being returned is a default image, or is game-provided.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementDefinition.
    • name string: The name of the achievement.
    • revealedIconUrl string: The image URL for the revealed achievement icon.
    • totalSteps integer: The total steps for an incremental achievement.
    • unlockedIconUrl string: The image URL for the unlocked achievement icon.

AchievementDefinitionsListResponse

  • AchievementDefinitionsListResponse object: A list of achievement definition objects.
    • items array: The achievement definitions.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementDefinitionsListResponse.
    • nextPageToken string: Token corresponding to the next page of results.

AchievementIncrementResponse

  • AchievementIncrementResponse object: An achievement increment response
    • currentSteps integer: The current steps recorded for this incremental achievement.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementIncrementResponse.
    • newlyUnlocked boolean: Whether the current steps for the achievement has reached the number of steps required to unlock.

AchievementRevealResponse

  • AchievementRevealResponse object: An achievement reveal response
    • currentState string (values: REVEAL_ACHIEVEMENT_STATE_UNSPECIFIED, REVEALED, UNLOCKED): The current state of the achievement for which a reveal was attempted. This might be UNLOCKED if the achievement was already unlocked.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementRevealResponse.

AchievementSetStepsAtLeastResponse

  • AchievementSetStepsAtLeastResponse object: An achievement set steps at least response.
    • currentSteps integer: The current steps recorded for this incremental achievement.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementSetStepsAtLeastResponse.
    • newlyUnlocked boolean: Whether the current steps for the achievement has reached the number of steps required to unlock.

AchievementUnlockResponse

  • AchievementUnlockResponse object: An achievement unlock response
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUnlockResponse.
    • newlyUnlocked boolean: Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).

AchievementUpdateMultipleRequest

  • AchievementUpdateMultipleRequest object: A list of achievement update requests.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateMultipleRequest.
    • updates array: The individual achievement update requests.

AchievementUpdateMultipleResponse

  • AchievementUpdateMultipleResponse object: Response message for UpdateMultipleAchievements rpc.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateMultipleResponse.
    • updatedAchievements array: The updated state of the achievements.

AchievementUpdateRequest

  • AchievementUpdateRequest object: A request to update an achievement.
    • achievementId string: The achievement this update is being applied to.
    • incrementPayload GamesAchievementIncrement
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateRequest.
    • setStepsAtLeastPayload GamesAchievementSetStepsAtLeast
    • updateType string (values: ACHIEVEMENT_UPDATE_TYPE_UNSPECIFIED, REVEAL, UNLOCK, INCREMENT, SET_STEPS_AT_LEAST): The type of update being applied.

AchievementUpdateResponse

  • AchievementUpdateResponse object: An updated achievement.
    • achievementId string: The achievement this update is was applied to.
    • currentState string (values: UPDATED_ACHIEVEMENT_STATE_UNSPECIFIED, HIDDEN, REVEALED, UNLOCKED): The current state of the achievement.
    • currentSteps integer: The current steps recorded for this achievement if it is incremental.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUpdateResponse.
    • newlyUnlocked boolean: Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
    • updateOccurred boolean: Whether the requested updates actually affected the achievement.

Application

  • Application object: The Application resource.
    • achievement_count integer: The number of achievements visible to the currently authenticated player.
    • assets array: The assets of the application.
    • author string: The author of the application.
    • category ApplicationCategory
    • description string: The description of the application.
    • enabledFeatures array: A list of features that have been enabled for the application.
      • items string (values: APPLICATION_FEATURE_UNSPECIFIED, SNAPSHOTS)
    • id string: The ID of the application.
    • instances array: The instances of the application.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#application.
    • lastUpdatedTimestamp string: The last updated timestamp of the application.
    • leaderboard_count integer: The number of leaderboards visible to the currently authenticated player.
    • name string: The name of the application.
    • themeColor string: A hint to the client UI for what color to use as an app-themed color. The color is given as an RGB triplet (e.g. "E0E0E0").

ApplicationCategory

  • ApplicationCategory object: An application category object.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#applicationCategory.
    • primary string: The primary category.
    • secondary string: The secondary category.

ApplicationVerifyResponse

  • ApplicationVerifyResponse object: A third party application verification response resource.
    • alternate_player_id string: An alternate ID that was once used for the player that was issued the auth token used in this request. (This field is not normally populated.)
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#applicationVerifyResponse.
    • player_id string: The ID of the player that was issued the auth token used in this request.

Category

  • Category object: Data related to individual game categories.
    • category string: The category name.
    • experiencePoints string: Experience points earned in this category.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#category.

CategoryListResponse

  • CategoryListResponse object: A third party list metagame categories response.
    • items array: The list of categories with usage data.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#categoryListResponse.
    • nextPageToken string: Token corresponding to the next page of results.

EndPoint

  • EndPoint object: Container for a URL end point of the requested type.
    • url string: A URL suitable for loading in a web browser for the requested endpoint.

EventBatchRecordFailure

  • EventBatchRecordFailure object: A batch update failure resource.
    • failureCause string (values: EVENT_FAILURE_CAUSE_UNSPECIFIED, TOO_LARGE, TIME_PERIOD_EXPIRED, TIME_PERIOD_SHORT, TIME_PERIOD_LONG, ALREADY_UPDATED, RECORD_RATE_HIGH): The cause for the update failure.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventBatchRecordFailure.
    • range EventPeriodRange

EventChild

  • EventChild object: An event child relationship resource.
    • childId string: The ID of the child event.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventChild.

EventDefinition

  • EventDefinition object: An event definition resource.
    • childEvents array: A list of events that are a child of this event.
    • description string: Description of what this event represents.
    • displayName string: The name to display for the event.
    • id string: The ID of the event.
    • imageUrl string: The base URL for the image that represents the event.
    • isDefaultImageUrl boolean: Indicates whether the icon image being returned is a default image, or is game-provided.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventDefinition.
    • visibility string (values: EVENT_VISIBILITY_UNSPECIFIED, REVEALED, HIDDEN): The visibility of event being tracked in this definition.

EventDefinitionListResponse

  • EventDefinitionListResponse object: A ListDefinitions response.
    • items array: The event definitions.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventDefinitionListResponse.
    • nextPageToken string: The pagination token for the next page of results.

EventPeriodRange

  • EventPeriodRange object: An event period time range.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventPeriodRange.
    • periodEndMillis string: The time when this update period ends, in millis, since 1970 UTC (Unix Epoch).
    • periodStartMillis string: The time when this update period begins, in millis, since 1970 UTC (Unix Epoch).

EventPeriodUpdate

  • EventPeriodUpdate object: An event period update resource.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventPeriodUpdate.
    • timePeriod EventPeriodRange
    • updates array: The updates being made for this time period.

EventRecordFailure

  • EventRecordFailure object: An event update failure resource.
    • eventId string: The ID of the event that was not updated.
    • failureCause string (values: EVENT_UPDATE_FAILURE_CAUSE_UNSPECIFIED, NOT_FOUND, INVALID_UPDATE_VALUE): The cause for the update failure.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventRecordFailure.

EventRecordRequest

  • EventRecordRequest object: An event period update resource.
    • currentTimeMillis string: The current time when this update was sent, in milliseconds, since 1970 UTC (Unix Epoch).
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventRecordRequest.
    • requestId string: The request ID used to identify this attempt to record events.
    • timePeriods array: A list of the time period updates being made in this request.

EventUpdateRequest

  • EventUpdateRequest object: An event period update resource.
    • definitionId string: The ID of the event being modified in this update.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventUpdateRequest.
    • updateCount string: The number of times this event occurred in this time period.

EventUpdateResponse

  • EventUpdateResponse object: An event period update resource.
    • batchFailures array: Any batch-wide failures which occurred applying updates.
    • eventFailures array: Any failures updating a particular event.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#eventUpdateResponse.
    • playerEvents array: The current status of any updated events

GamesAchievementIncrement

  • GamesAchievementIncrement object: The payload to request to increment an achievement.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#GamesAchievementIncrement.
    • requestId string: The requestId associated with an increment to an achievement.
    • steps integer: The number of steps to be incremented.

GamesAchievementSetStepsAtLeast

  • GamesAchievementSetStepsAtLeast object: The payload to request to increment an achievement.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#GamesAchievementSetStepsAtLeast.
    • steps integer: The minimum number of steps for the achievement to be set to.

ImageAsset

  • ImageAsset object: An image asset object.
    • height integer: The height of the asset.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#imageAsset.
    • name string: The name of the asset.
    • url string: The URL of the asset.
    • width integer: The width of the asset.

Instance

  • Instance object: The Instance resource.
    • acquisitionUri string: URI which shows where a user can acquire this instance.
    • androidInstance InstanceAndroidDetails
    • iosInstance InstanceIosDetails
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#instance.
    • name string: Localized display name.
    • platformType string (values: PLATFORM_TYPE_UNSPECIFIED, ANDROID, IOS, WEB_APP): The platform type.
    • realtimePlay boolean: Flag to show if this game instance supports realtime play.
    • turnBasedPlay boolean: Flag to show if this game instance supports turn based play.
    • webInstance InstanceWebDetails

InstanceAndroidDetails

  • InstanceAndroidDetails object: The Android instance details resource.
    • enablePiracyCheck boolean: Flag indicating whether the anti-piracy check is enabled.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#instanceAndroidDetails.
    • packageName string: Android package name which maps to Google Play URL.
    • preferred boolean: Indicates that this instance is the default for new installations.

InstanceIosDetails

  • InstanceIosDetails object: The iOS details resource.
    • bundleIdentifier string: Bundle identifier.
    • itunesAppId string: iTunes App ID.
    • kind string: Uniquely identifies the type of this resource. Value is always the fixed string games#instanceIosDetails.
    • preferredForIpad boolean: Indicates that this instance is the default for new installations on iPad devices.
    • preferredForIphone boolean: Indicates that this