- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- GetSubscriptionOfferRequest
- Try it!
Reads one or more subscription offers.
HTTP request
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
package |
Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the packageName field on all the requests. |
product |
Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to "-". Must be set. |
base |
Required. The parent base plan (ID) for which the offers should be read. May be specified as '-' to read offers from multiple base plans. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requests": [
{
object ( |
Fields | |
---|---|
requests[] |
Required. A list of update requests of up to 100 elements. All requests must update different subscriptions. |
Response body
Response message for offers.batchGet endpoint.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"subscriptionOffers": [
{
object ( |
Fields | |
---|---|
subscription |
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/androidpublisher
GetSubscriptionOfferRequest
Request message for offers.get.
JSON representation |
---|
{ "packageName": string, "productId": string, "basePlanId": string, "offerId": string } |
Fields | |
---|---|
package |
Required. The parent app (package name) of the offer to get. |
product |
Required. The parent subscription (ID) of the offer to get. |
base |
Required. The parent base plan (ID) of the offer to get. |
offer |
Required. The unique offer ID of the offer to get. |