Google Play Game Services Publishing API . achievementConfigurations

Instance Methods

close()

Close httplib2 connections.

delete(achievementId, x__xgafv=None)

Delete the achievement configuration with the given ID.

get(achievementId, x__xgafv=None)

Retrieves the metadata of the achievement configuration with the given ID.

insert(applicationId, body=None, x__xgafv=None)

Insert a new achievement configuration in this application.

list(applicationId, maxResults=None, pageToken=None, x__xgafv=None)

Returns a list of the achievement configurations in this application.

list_next(previous_request, previous_response)

Retrieves the next page of results.

update(achievementId, body=None, x__xgafv=None)

Update the metadata of the achievement configuration with the given ID.

Method Details

close()
Close httplib2 connections.
delete(achievementId, x__xgafv=None)
Delete the achievement configuration with the given ID.

Args:
  achievementId: string, The ID of the achievement used by this method. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(achievementId, x__xgafv=None)
Retrieves the metadata of the achievement configuration with the given ID.

Args:
  achievementId: string, The ID of the achievement used by this method. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # An achievement configuration resource.
    "draft": { # An achievement configuration detail. # The draft data of the achievement.
      "pointValue": 42, # Point value for the achievement.
      "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
      "description": { # A localized string bundle resource. # Localized strings for the achievement description.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
      "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
      "name": { # A localized string bundle resource. # Localized strings for the achievement name.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
    },
    "stepsToUnlock": 42, # Steps to unlock. Only applicable to incremental achievements.
    "achievementType": "A String", # The type of the achievement.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`.
    "published": { # An achievement configuration detail. # The read-only published data of the achievement.
      "pointValue": 42, # Point value for the achievement.
      "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
      "description": { # A localized string bundle resource. # Localized strings for the achievement description.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
      "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
      "name": { # A localized string bundle resource. # Localized strings for the achievement name.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
    },
    "token": "A String", # The token for this resource.
    "initialState": "A String", # The initial state of the achievement.
    "id": "A String", # The ID of the achievement.
  }
insert(applicationId, body=None, x__xgafv=None)
Insert a new achievement configuration in this application.

Args:
  applicationId: string, The application ID from the Google Play developer console. (required)
  body: object, The request body.
    The object takes the form of:

{ # An achievement configuration resource.
  "draft": { # An achievement configuration detail. # The draft data of the achievement.
    "pointValue": 42, # Point value for the achievement.
    "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
    "description": { # A localized string bundle resource. # Localized strings for the achievement description.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
    "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
    "name": { # A localized string bundle resource. # Localized strings for the achievement name.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
  },
  "stepsToUnlock": 42, # Steps to unlock. Only applicable to incremental achievements.
  "achievementType": "A String", # The type of the achievement.
  "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`.
  "published": { # An achievement configuration detail. # The read-only published data of the achievement.
    "pointValue": 42, # Point value for the achievement.
    "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
    "description": { # A localized string bundle resource. # Localized strings for the achievement description.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
    "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
    "name": { # A localized string bundle resource. # Localized strings for the achievement name.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
  },
  "token": "A String", # The token for this resource.
  "initialState": "A String", # The initial state of the achievement.
  "id": "A String", # The ID of the achievement.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # An achievement configuration resource.
    "draft": { # An achievement configuration detail. # The draft data of the achievement.
      "pointValue": 42, # Point value for the achievement.
      "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
      "description": { # A localized string bundle resource. # Localized strings for the achievement description.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
      "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
      "name": { # A localized string bundle resource. # Localized strings for the achievement name.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
    },
    "stepsToUnlock": 42, # Steps to unlock. Only applicable to incremental achievements.
    "achievementType": "A String", # The type of the achievement.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`.
    "published": { # An achievement configuration detail. # The read-only published data of the achievement.
      "pointValue": 42, # Point value for the achievement.
      "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
      "description": { # A localized string bundle resource. # Localized strings for the achievement description.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
      "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
      "name": { # A localized string bundle resource. # Localized strings for the achievement name.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
    },
    "token": "A String", # The token for this resource.
    "initialState": "A String", # The initial state of the achievement.
    "id": "A String", # The ID of the achievement.
  }
list(applicationId, maxResults=None, pageToken=None, x__xgafv=None)
Returns a list of the achievement configurations in this application.

Args:
  applicationId: string, The application ID from the Google Play developer console. (required)
  maxResults: integer, The maximum number of resource configurations to return in the response, used for paging. For any response, the actual number of resources returned may be less than the specified `maxResults`.
  pageToken: string, The token returned by the previous request.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A ListConfigurations response.
    "nextPageToken": "A String", # The pagination token for the next page of results.
    "items": [ # The achievement configurations.
      { # An achievement configuration resource.
        "draft": { # An achievement configuration detail. # The draft data of the achievement.
          "pointValue": 42, # Point value for the achievement.
          "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
          "description": { # A localized string bundle resource. # Localized strings for the achievement description.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
            "translations": [ # The locale strings.
              { # A localized string resource.
                "value": "A String", # The string value.
                "locale": "A String", # The locale string.
                "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
              },
            ],
          },
          "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
          "name": { # A localized string bundle resource. # Localized strings for the achievement name.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
            "translations": [ # The locale strings.
              { # A localized string resource.
                "value": "A String", # The string value.
                "locale": "A String", # The locale string.
                "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
              },
            ],
          },
        },
        "stepsToUnlock": 42, # Steps to unlock. Only applicable to incremental achievements.
        "achievementType": "A String", # The type of the achievement.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`.
        "published": { # An achievement configuration detail. # The read-only published data of the achievement.
          "pointValue": 42, # Point value for the achievement.
          "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
          "description": { # A localized string bundle resource. # Localized strings for the achievement description.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
            "translations": [ # The locale strings.
              { # A localized string resource.
                "value": "A String", # The string value.
                "locale": "A String", # The locale string.
                "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
              },
            ],
          },
          "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
          "name": { # A localized string bundle resource. # Localized strings for the achievement name.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
            "translations": [ # The locale strings.
              { # A localized string resource.
                "value": "A String", # The string value.
                "locale": "A String", # The locale string.
                "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
              },
            ],
          },
        },
        "token": "A String", # The token for this resource.
        "initialState": "A String", # The initial state of the achievement.
        "id": "A String", # The ID of the achievement.
      },
    ],
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationListResponse`.
  }
list_next(previous_request, previous_response)
Retrieves the next page of results.

Args:
  previous_request: The request for the previous page. (required)
  previous_response: The response from the request for the previous page. (required)

Returns:
  A request object that you can call 'execute()' on to request the next
  page. Returns None if there are no more items in the collection.
    
update(achievementId, body=None, x__xgafv=None)
Update the metadata of the achievement configuration with the given ID.

Args:
  achievementId: string, The ID of the achievement used by this method. (required)
  body: object, The request body.
    The object takes the form of:

{ # An achievement configuration resource.
  "draft": { # An achievement configuration detail. # The draft data of the achievement.
    "pointValue": 42, # Point value for the achievement.
    "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
    "description": { # A localized string bundle resource. # Localized strings for the achievement description.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
    "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
    "name": { # A localized string bundle resource. # Localized strings for the achievement name.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
  },
  "stepsToUnlock": 42, # Steps to unlock. Only applicable to incremental achievements.
  "achievementType": "A String", # The type of the achievement.
  "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`.
  "published": { # An achievement configuration detail. # The read-only published data of the achievement.
    "pointValue": 42, # Point value for the achievement.
    "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
    "description": { # A localized string bundle resource. # Localized strings for the achievement description.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
    "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
    "name": { # A localized string bundle resource. # Localized strings for the achievement name.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
      "translations": [ # The locale strings.
        { # A localized string resource.
          "value": "A String", # The string value.
          "locale": "A String", # The locale string.
          "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
        },
      ],
    },
  },
  "token": "A String", # The token for this resource.
  "initialState": "A String", # The initial state of the achievement.
  "id": "A String", # The ID of the achievement.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # An achievement configuration resource.
    "draft": { # An achievement configuration detail. # The draft data of the achievement.
      "pointValue": 42, # Point value for the achievement.
      "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
      "description": { # A localized string bundle resource. # Localized strings for the achievement description.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
      "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
      "name": { # A localized string bundle resource. # Localized strings for the achievement name.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
    },
    "stepsToUnlock": 42, # Steps to unlock. Only applicable to incremental achievements.
    "achievementType": "A String", # The type of the achievement.
    "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfiguration`.
    "published": { # An achievement configuration detail. # The read-only published data of the achievement.
      "pointValue": 42, # Point value for the achievement.
      "iconUrl": "A String", # The icon url of this achievement. Writes to this field are ignored.
      "description": { # A localized string bundle resource. # Localized strings for the achievement description.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
      "sortRank": 42, # The sort rank of this achievement. Writes to this field are ignored.
      "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#achievementConfigurationDetail`.
      "name": { # A localized string bundle resource. # Localized strings for the achievement name.
        "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedStringBundle`.
        "translations": [ # The locale strings.
          { # A localized string resource.
            "value": "A String", # The string value.
            "locale": "A String", # The locale string.
            "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#localizedString`.
          },
        ],
      },
    },
    "token": "A String", # The token for this resource.
    "initialState": "A String", # The initial state of the achievement.
    "id": "A String", # The ID of the achievement.
  }