getOfferById

open fun getOfferById(productId: String, offerId: String): OfferInfo

Looks up a subscription offer by its Play Console offer id.

Return

The matching offer, or null when the product has no such offer — including when the user is not eligible for it, since Play only returns offers the current account can actually redeem.

Since

4.4.0

Parameters

productId

Subscription product id.

offerId

Offer id configured in Play Console.