@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
- code required
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
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
- access_token
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 specifiedmaxResults
. - 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").
- language
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").
- achievementId required
Output
- output AchievementIncrementResponse
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").
- achievementId required
Output
- output AchievementRevealResponse
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").
- achievementId required
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").
- achievementId required
Output
- output AchievementUnlockResponse
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").
- applicationId
Output
- output EndPoint
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").
- $.xgafv
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").
- applicationId required
Output
- output Application
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").
- applicationId required
Output
- output ApplicationVerifyResponse
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 specifiedmaxResults
. - 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").
- language
Output
- output EventDefinitionListResponse
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").
- language
Output
- output PlayerEventListResponse
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").
- language
Output
- output EventUpdateResponse
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 specifiedmaxResults
. - 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").
- language
Output
- output LeaderboardListResponse
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").
- language
Output
- output PlayerScoreListResponse
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").
- leaderboardId required
Output
- output Leaderboard
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").
- leaderboardId required
Output
- output PlayerScoreResponse
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 specifiedmaxResults
. - 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").
- leaderboardId required
Output
- output LeaderboardScores
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 specifiedmaxResults
. - 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").
- leaderboardId required
Output
- output LeaderboardScores
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").
- $.xgafv
Output
- output MetagameConfig
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 specifiedmaxResults
. - 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").
- collection required
Output
- output PlayerListResponse
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 ofme
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").
- playerId required
Output
- output Player
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 ofme
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 specifiedmaxResults
. - 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").
- playerId required
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 ofme
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 specifiedmaxResults
. - 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").
- playerId required
Output
- output CategoryListResponse
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 ofme
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 specifiedmaxResults
. - 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").
- playerId required
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 ofme
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 specifiedmaxResults
. - 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").
- playerId required
Output
- output SnapshotListResponse
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 ofPLATFORM_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").
- clientRevision required
Output
- output RevisionCheckResponse
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").
- snapshotId required
Output
- output Snapshot
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").
- snapshotName required
Output
- output ResolveSnapshotHeadResponse
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").
- $.xgafv
Output
- output StatsResponse
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 stringgames#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.
- achievementType
AchievementDefinitionsListResponse
- AchievementDefinitionsListResponse
object
: A list of achievement definition objects.- items
array
: The achievement definitions.- items AchievementDefinition
- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#achievementDefinitionsListResponse
. - nextPageToken
string
: Token corresponding to the next page of results.
- items
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 stringgames#achievementIncrementResponse
. - newlyUnlocked
boolean
: Whether the current steps for the achievement has reached the number of steps required to unlock.
- currentSteps
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 beUNLOCKED
if the achievement was already unlocked. - kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#achievementRevealResponse
.
- currentState
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 stringgames#achievementSetStepsAtLeastResponse
. - newlyUnlocked
boolean
: Whether the current steps for the achievement has reached the number of steps required to unlock.
- currentSteps
AchievementUnlockResponse
- AchievementUnlockResponse
object
: An achievement unlock response- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#achievementUnlockResponse
. - newlyUnlocked
boolean
: Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
- kind
AchievementUpdateMultipleRequest
- AchievementUpdateMultipleRequest
object
: A list of achievement update requests.- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#achievementUpdateMultipleRequest
. - updates
array
: The individual achievement update requests.- items AchievementUpdateRequest
- kind
AchievementUpdateMultipleResponse
- AchievementUpdateMultipleResponse
object
: Response message for UpdateMultipleAchievements rpc.- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#achievementUpdateMultipleResponse
. - updatedAchievements
array
: The updated state of the achievements.
- kind
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 stringgames#achievementUpdateRequest
. - setStepsAtLeastPayload GamesAchievementSetStepsAtLeast
- updateType
string
(values: ACHIEVEMENT_UPDATE_TYPE_UNSPECIFIED, REVEAL, UNLOCK, INCREMENT, SET_STEPS_AT_LEAST): The type of update being applied.
- achievementId
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 stringgames#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.
- achievementId
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.- items ImageAsset
- 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)
- items
- id
string
: The ID of the application. - instances
array
: The instances of the application.- items Instance
- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#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").
- achievement_count
ApplicationCategory
- ApplicationCategory
object
: An application category object.- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#applicationCategory
. - primary
string
: The primary category. - secondary
string
: The secondary category.
- kind
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 stringgames#applicationVerifyResponse
. - player_id
string
: The ID of the player that was issued the auth token used in this request.
- alternate_player_id
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 stringgames#category
.
- category
CategoryListResponse
- CategoryListResponse
object
: A third party list metagame categories response.- items
array
: The list of categories with usage data.- items Category
- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#categoryListResponse
. - nextPageToken
string
: Token corresponding to the next page of results.
- items
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.
- url
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 stringgames#eventBatchRecordFailure
. - range EventPeriodRange
- failureCause
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 stringgames#eventChild
.
- childId
EventDefinition
- EventDefinition
object
: An event definition resource.- childEvents
array
: A list of events that are a child of this event.- items EventChild
- 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 stringgames#eventDefinition
. - visibility
string
(values: EVENT_VISIBILITY_UNSPECIFIED, REVEALED, HIDDEN): The visibility of event being tracked in this definition.
- childEvents
EventDefinitionListResponse
- EventDefinitionListResponse
object
: A ListDefinitions response.- items
array
: The event definitions.- items EventDefinition
- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#eventDefinitionListResponse
. - nextPageToken
string
: The pagination token for the next page of results.
- items
EventPeriodRange
- EventPeriodRange
object
: An event period time range.- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#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).
- kind
EventPeriodUpdate
- EventPeriodUpdate
object
: An event period update resource.- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#eventPeriodUpdate
. - timePeriod EventPeriodRange
- updates
array
: The updates being made for this time period.- items EventUpdateRequest
- kind
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 stringgames#eventRecordFailure
.
- eventId
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 stringgames#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.- items EventPeriodUpdate
- currentTimeMillis
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 stringgames#eventUpdateRequest
. - updateCount
string
: The number of times this event occurred in this time period.
- definitionId
EventUpdateResponse
- EventUpdateResponse
object
: An event period update resource.- batchFailures
array
: Any batch-wide failures which occurred applying updates.- items EventBatchRecordFailure
- eventFailures
array
: Any failures updating a particular event.- items EventRecordFailure
- kind
string
: Uniquely identifies the type of this resource. Value is always the fixed stringgames#eventUpdateResponse
. - playerEvents
array
: The current status of any updated events- items PlayerEvent
- batchFailures
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 stringgames#GamesAchievementIncrement
. - requestId
string
: The requestId associated with an increment to an achievement. - steps
integer
: The number of steps to be incremented.
- kind
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 stringgames#GamesAchievementSetStepsAtLeast
. - steps
integer
: The minimum number of steps for the achievement to be set to.
- kind
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 stringgames#imageAsset
. - name
string
: The name of the asset. - url
string
: The URL of the asset. - width
integer
: The width of the asset.
- height
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 stringgames#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
- acquisitionUri
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 stringgames#instanceAndroidDetails
. - packageName
string
: Android package name which maps to Google Play URL. - preferred
boolean
: Indicates that this instance is the default for new installations.
- enablePiracyCheck
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 stringgames#instanceIosDetails
. - preferredForIpad
boolean
: Indicates that this instance is the default for new installations on iPad devices. - preferredForIphone
boolean
: Indicates that this
- bundleIdentifier