class Inappproducts extends Resource (View source)

The "inappproducts" collection of methods.

Typical usage is:

 $androidpublisherService = new Google\Service\AndroidPublisher(...);
 $inappproducts = $androidpublisherService->inappproducts;

Methods

batchDelete(string $packageName, InappproductsBatchDeleteRequest $postBody, array $optParams = [])

Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should not be used to delete subscriptions. See this article for more information.

batchGet(string $packageName, array $optParams = [])

Reads multiple in-app products, which can be managed products or subscriptions. This method should not be used to retrieve subscriptions. See this article for more information.

batchUpdate(string $packageName, InappproductsBatchUpdateRequest $postBody, array $optParams = [])

Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should no longer be used to update subscriptions. See this article for more information.

delete(string $packageName, string $sku, array $optParams = [])

Deletes an in-app product (a managed product or a subscription). This method should no longer be used to delete subscriptions. See this article for more information.

get(string $packageName, string $sku, array $optParams = [])

Gets an in-app product, which can be a managed product or a subscription.

insert(string $packageName, InAppProduct $postBody, array $optParams = [])

Creates an in-app product (a managed product or a subscription). This method should no longer be used to create subscriptions. See this article for more information.

listInappproducts(string $packageName, array $optParams = [])

Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field tokenPagination.nextPageToken will be set and the caller should provide its value as a token request parameter to retrieve the next page. This method should no longer be used to retrieve subscriptions. See this article for more information. (inappproducts.listInappproducts)

patch(string $packageName, string $sku, InAppProduct $postBody, array $optParams = [])

Patches an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.

update(string $packageName, string $sku, InAppProduct $postBody, array $optParams = [])

Updates an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.

Details

batchDelete(string $packageName, InappproductsBatchDeleteRequest $postBody, array $optParams = [])

Deletes in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should not be used to delete subscriptions. See this article for more information.

(inappproducts.batchDelete)

Parameters

string $packageName

Package name of the app.

InappproductsBatchDeleteRequest $postBody
array $optParams

Optional parameters.

Exceptions

Exception

InappproductsBatchGetResponse batchGet(string $packageName, array $optParams = [])

Reads multiple in-app products, which can be managed products or subscriptions. This method should not be used to retrieve subscriptions. See this article for more information.

(inappproducts.batchGet)

Parameters

string $packageName

Package name of the app.

array $optParams

Optional parameters.

Return Value

InappproductsBatchGetResponse

Exceptions

Exception

InappproductsBatchUpdateResponse batchUpdate(string $packageName, InappproductsBatchUpdateRequest $postBody, array $optParams = [])

Updates or inserts one or more in-app products (managed products or subscriptions). Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput. This method should no longer be used to update subscriptions. See this article for more information.

(inappproducts.batchUpdate)

Parameters

string $packageName

Package name of the app.

InappproductsBatchUpdateRequest $postBody
array $optParams

Optional parameters.

Return Value

InappproductsBatchUpdateResponse

Exceptions

Exception

delete(string $packageName, string $sku, array $optParams = [])

Deletes an in-app product (a managed product or a subscription). This method should no longer be used to delete subscriptions. See this article for more information.

(inappproducts.delete)

Parameters

string $packageName

Package name of the app.

string $sku

Unique identifier for the in-app product.

array $optParams

Optional parameters.

Exceptions

Exception

InAppProduct get(string $packageName, string $sku, array $optParams = [])

Gets an in-app product, which can be a managed product or a subscription.

This method should no longer be used to retrieve subscriptions. See this article for more information. (inappproducts.get)

Parameters

string $packageName

Package name of the app.

string $sku

Unique identifier for the in-app product.

array $optParams

Optional parameters.

Return Value

InAppProduct

Exceptions

Exception

InAppProduct insert(string $packageName, InAppProduct $postBody, array $optParams = [])

Creates an in-app product (a managed product or a subscription). This method should no longer be used to create subscriptions. See this article for more information.

(inappproducts.insert)

Parameters

string $packageName

Package name of the app.

InAppProduct $postBody
array $optParams

Optional parameters.

Return Value

InAppProduct

Exceptions

Exception

InappproductsListResponse listInappproducts(string $packageName, array $optParams = [])

Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field tokenPagination.nextPageToken will be set and the caller should provide its value as a token request parameter to retrieve the next page. This method should no longer be used to retrieve subscriptions. See this article for more information. (inappproducts.listInappproducts)

Parameters

string $packageName

Package name of the app.

array $optParams

Optional parameters.

Return Value

InappproductsListResponse

Exceptions

Exception

InAppProduct patch(string $packageName, string $sku, InAppProduct $postBody, array $optParams = [])

Patches an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.

(inappproducts.patch)

Parameters

string $packageName

Package name of the app.

string $sku

Unique identifier for the in-app product.

InAppProduct $postBody
array $optParams

Optional parameters.

Return Value

InAppProduct

Exceptions

Exception

InAppProduct update(string $packageName, string $sku, InAppProduct $postBody, array $optParams = [])

Updates an in-app product (a managed product or a subscription). This method should no longer be used to update subscriptions. See this article for more information.

(inappproducts.update)

Parameters

string $packageName

Package name of the app.

string $sku

Unique identifier for the in-app product.

InAppProduct $postBody
array $optParams

Optional parameters.

Return Value

InAppProduct

Exceptions

Exception