# Google Play Console

> Read and reply to app reviews, manage draft store listings and release tracks, and inspect app purchases.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/google-play-console

## Actions

### Commit edit

Commit edit.

**Inputs**

- Changes in review behavior (`changes_in_review_behavior`, text): Optional. Specify how the API should behave if there are changes currently in review. If this value is not set, it will default to "CANCEL_IN_REVIEW_AND_SUBMIT", which will cancel the changes in review and then send all the changes for publishing. One of: `CHANGES_IN_REVIEW_BEHAVIOR_TYPE_UNSPECIFIED` (Changes in review behavior type unspecified), `CANCEL_IN_REVIEW_AND_SUBMIT` (Cancel in review and submit), `ERROR_IF_IN_REVIEW` (Error if in review).
- Edit ID (`edit_id`, text, required): Identifier of the edit.
- Changes not sent for review (`changes_not_sent_for_review`, true/false): When a rejection happens, the parameter will make sure that the changes in this edit won't be reviewed until they are explicitly sent for review from within the Google Play Console UI. These changes will be added to any other changes that are not yet sent for review.

**Outputs**

- `data` (object): An app edit. The resource for EditsService.

**Example output**

```json
{
  "data": {
    "expiryTimeSeconds": "example",
    "id": "example"
  }
}
```

### Create edit

Create edit.

**Inputs**

- Id (`id`, text): Output only. Identifier of the edit. Can be used in subsequent API calls.
- Expiry time seconds (`expiry_time_seconds`, text): Output only. The time (as seconds since Epoch) at which the edit will expire and will be no longer valid for use.

**Outputs**

- `data` (object): An app edit. The resource for EditsService.

**Example output**

```json
{
  "data": {
    "expiryTimeSeconds": "example",
    "id": "example"
  }
}
```

### Delete edit

Delete edit.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Get app details

Get app details.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): The app details. The resource for DetailsService.

**Example output**

```json
{
  "data": {
    "contactEmail": "example",
    "contactPhone": "example",
    "contactWebsite": "example",
    "defaultLanguage": "example"
  }
}
```

### Get edit

Get edit.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): An app edit. The resource for EditsService.

**Example output**

```json
{
  "data": {
    "expiryTimeSeconds": "example",
    "id": "example"
  }
}
```

### Get listing

Get listing.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.
- Language (`language`, text, required): Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).

**Outputs**

- `data` (object): A localized store listing. The resource for ListingsService.

**Example output**

```json
{
  "data": {
    "fullDescription": "example",
    "language": "example",
    "shortDescription": "example",
    "title": "example",
    "video": "example"
  }
}
```

### Get order

Get order.

**Inputs**

- Order ID (`order_id`, text, required): Required. The order ID provided to the user when the subscription or in-app order was purchased.

**Outputs**

- `data` (object): The Order resource encapsulates comprehensive information about a transaction made on Google Play. It includes a variety of attributes that provide details about the order itself, the products purchased, and the history of events related to the order. The Orders APIs provide real-time access to your order data within the Google Play ecosystem. You can retrieve detailed information and metadata for both one-time and recurring orders, including transaction details like charges, taxes, and refunds, as well as metadata such as pricing phases for subscriptions. The Orders APIs let you automate tasks related to order management, reducing the need for manual checks via the Play Developer Console. The following are some of the use cases for this API: + Real-time order data retrieval - Get order details and metadata immediately after a purchase using an order ID. + Order update synchronization - Periodically sync order updates to maintain an up-to-date record of order information. Note: + The Orders API calls count towards your Play Developer API quota, which defaults to 200K daily, and may be insufficient to sync extensive order histories. + A maximum of 1000 orders can be retrieved per call. Using larger page sizes is recommended to minimize quota usage. Check your quota in the Cloud Console and request more if required.

**Example output**

```json
{
  "data": {
    "buyerAddress": {
      "buyerCountry": "example",
      "buyerPostcode": "example",
      "buyerState": "example"
    },
    "createTime": "example",
    "developerRevenueInBuyerCurrency": {
      "currencyCode": "example",
      "nanos": 1,
      "units": "example"
    },
    "lastEventTime": "example",
    "lineItems": [],
    "orderDetails": {
      "taxInclusive": false
    },
    "orderHistory": {
      "cancellationEvent": {
        "eventTime": "example"
      },
      "partialRefundEvents": [],
      "processedEvent": {
        "eventTime": "example"
      },
      "refundEvent": {
        "eventTime": "example",
        "refundDetails": {
          "tax": {
            "currencyCode": "example",
            "nanos": 1,
            "units": "example"
          },
          "total": {
            "currencyCode": "example",
            "nanos": 1,
            "units": "example"
          }
        },
        "refundReason": "REFUND_REASON_UNSPECIFIED"
      }
    },
    "orderId": "example",
    "pointsDetails": {
      "pointsCouponValue": {
        "currencyCode": "example",
        "nanos": 1,
        "units": "example"
      },
      "pointsDiscountRateMicros": "example",
      "pointsOfferId": "example",
      "pointsSpent": "example"
    },
    "purchaseToken": "example",
    "salesChannel": "SALES_CHANNEL_UNSPECIFIED",
    "state": "STATE_UNSPECIFIED",
    "tax": {
      "currencyCode": "example",
      "nanos": 1,
      "units": "example"
    },
    "total": {
      "currencyCode": "example",
      "nanos": 1,
      "units": "example"
    }
  }
}
```

### Get review

Get review.

**Inputs**

- Translation language (`translation_language`, text): Language localization code.
- Review ID (`review_id`, text, required): Unique identifier for a review.

**Outputs**

- `data` (object): An Android app review.

**Example output**

```json
{
  "data": {
    "authorName": "example",
    "comments": [],
    "reviewId": "example"
  }
}
```

### Get subscription

Get subscription.

**Inputs**

- Token (`token`, text, required): Required. The token provided to the user's device when the subscription was purchased.

**Outputs**

- `data` (object): Indicates the status of a user's subscription purchase.

**Example output**

```json
{
  "data": {
    "acknowledgementState": "ACKNOWLEDGEMENT_STATE_UNSPECIFIED",
    "canceledStateContext": {
      "developerInitiatedCancellation": {},
      "replacementCancellation": {},
      "systemInitiatedCancellation": {},
      "userInitiatedCancellation": {
        "cancelSurveyResult": {
          "reason": "CANCEL_SURVEY_REASON_UNSPECIFIED",
          "reasonUserInput": "example"
        },
        "cancelTime": "example"
      }
    },
    "etag": "example",
    "externalAccountIdentifiers": {
      "externalAccountId": "example",
      "obfuscatedExternalAccountId": "example",
      "obfuscatedExternalProfileId": "example"
    },
    "inGracePeriodStateContext": {
      "renewalDeclined": {
        "pendingOrderId": "example"
      }
    },
    "kind": "example",
    "lineItems": [],
    "linkedPurchaseToken": "example",
    "onHoldStateContext": {
      "renewalDeclined": {
        "pendingOrderId": "example"
      }
    },
    "outOfAppPurchaseContext": {
      "expiredExternalAccountIdentifiers": {
        "externalAccountId": "example",
        "obfuscatedExternalAccountId": "example",
        "obfuscatedExternalProfileId": "example"
      },
      "expiredPurchaseToken": "example"
    },
    "pausedStateContext": {
      "autoResumeTime": "example"
    },
    "regionCode": "example",
    "startTime": "example",
    "subscribeWithGoogleInfo": {
      "emailAddress": "example",
      "familyName": "example",
      "givenName": "example",
      "profileId": "example",
      "profileName": "example"
    },
    "subscriptionState": "SUBSCRIPTION_STATE_UNSPECIFIED",
    "testPurchase": {}
  }
}
```

### Get track

Get track.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.
- Track (`track`, text, required): Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)

**Outputs**

- `data` (object): A track configuration. The resource for TracksService.

**Example output**

```json
{
  "data": {
    "releases": [],
    "track": "example"
  }
}
```

### List apks

List apks.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): Response listing all APKs.

**Example output**

```json
{
  "data": {
    "apks": [],
    "kind": "example"
  }
}
```

### List bundles

List bundles.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): Response listing all app bundles.

**Example output**

```json
{
  "data": {
    "bundles": [],
    "kind": "example"
  }
}
```

### List listings

List listings.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): Response listing all localized listings.

**Example output**

```json
{
  "data": {
    "kind": "example",
    "listings": []
  }
}
```

### List reviews

List reviews.

**Inputs**

- Max results (`max_results`, number): How many results the list operation should return.
- Token (`token`, text): Pagination token. If empty, list starts at the first review.
- Translation language (`translation_language`, text): Language localization code.
- Start index (`start_index`, number): The index of the first element to return.

**Outputs**

- `data` (object): Response listing reviews.

**Example output**

```json
{
  "data": {
    "pageInfo": {
      "resultPerPage": 1,
      "startIndex": 1,
      "totalResults": 1
    },
    "reviews": [],
    "tokenPagination": {
      "nextPageToken": "example",
      "previousPageToken": "example"
    }
  }
}
```

### List tracks

List tracks.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): Response listing all tracks.

**Example output**

```json
{
  "data": {
    "kind": "example",
    "tracks": []
  }
}
```

### Reply to review

Reply to review.

**Inputs**

- Review ID (`review_id`, text, required): Unique identifier for a review.
- Reply text (`reply_text`, text): The text to set as the reply. Replies of more than approximately 350 characters will be rejected. HTML tags will be stripped.

**Outputs**

- `data` (object): Response on status of replying to a review.

**Example output**

```json
{
  "data": {
    "result": {
      "lastEdited": {
        "nanos": 1,
        "seconds": "example"
      },
      "replyText": "example"
    }
  }
}
```

### Update app details

Update app details.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.
- Contact website (`contact_website`, text): The user-visible website for this app.
- Contact email (`contact_email`, text): The user-visible support email for this app.
- Contact phone (`contact_phone`, text): The user-visible support telephone number for this app.
- Default language (`default_language`, text): Default language code, in BCP 47 format (eg "en-US").

**Outputs**

- `data` (object): The app details. The resource for DetailsService.

**Example output**

```json
{
  "data": {
    "contactEmail": "example",
    "contactPhone": "example",
    "contactWebsite": "example",
    "defaultLanguage": "example"
  }
}
```

### Update listing

Update listing.

**Inputs**

- Language (`language`, text, required): Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German).
- Edit ID (`edit_id`, text, required): Identifier of the edit.
- Full description (`full_description`, text): Full description of the app.
- Video (`video`, text): URL of a promotional YouTube video for the app.
- Short description (`short_description`, text): Short description of the app.
- Title (`title`, text): Localized title of the app.

**Outputs**

- `data` (object): A localized store listing. The resource for ListingsService.

**Example output**

```json
{
  "data": {
    "fullDescription": "example",
    "language": "example",
    "shortDescription": "example",
    "title": "example",
    "video": "example"
  }
}
```

### Update track

Update track.

**Inputs**

- Track (`track`, text, required): Identifier of the track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name)
- Edit ID (`edit_id`, text, required): Identifier of the edit.
- Releases (`releases`, list): In a read request, represents all active releases in the track. In an update request, represents desired changes.

**Outputs**

- `data` (object): A track configuration. The resource for TracksService.

**Example output**

```json
{
  "data": {
    "releases": [],
    "track": "example"
  }
}
```

### Validate edit

Validate edit.

**Inputs**

- Edit ID (`edit_id`, text, required): Identifier of the edit.

**Outputs**

- `data` (object): An app edit. The resource for EditsService.

**Example output**

```json
{
  "data": {
    "expiryTimeSeconds": "example",
    "id": "example"
  }
}
```
