AI-generated Key Takeaways
-
This documentation details the process and requirements for submitting Data Safety labels for your Android app through the Google Play Developer API.
-
You'll need to make an HTTP POST request to a specific URL, including your app's package name.
-
The request body must contain a CSV file with your Data Safety responses, formatted as described in the provided links.
-
Successful submission will result in an empty response body, and you'll need the 'androidpublisher' OAuth scope for authorization.
Writes the Safety Labels declaration of an app.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/dataSafety
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
packageName |
Required. Package name of the app. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "safetyLabels": string } |
Fields | |
---|---|
safetyLabels |
Required. Contents of the CSV file containing Data Safety responses. For the format of this file, see the Help Center documentation at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cunderstand-the-csv-format To download an up to date template, follow the steps at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cexport-to-a-csv-file |
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher