SDKs for Android / Coupons

Coupons

Users can receive the following rewards when a coupon is redeemed:

  • virtual currency packages
  • game keys
  • virtual items
  • bundles

Note
Rewards may include one or more items of the same type (for example, 2 different virtual items).

For information on the features and limitations of coupon promotions, see the In-Game Store guide.

To implement a coupon campaign:

  1. Set up a campaign with coupons.
  2. In the application UI, implement the following elements:
    • field to enter a coupon code
    • coupon reward display form
    • button to redeem coupon code

  1. Implement the coupon logic using the following methods of the Store library:
    • getCouponRewards — returns a list of items that can be credited to the user when the coupon is redeemed.
    • getCouponRewardsByCode — redeems the coupon code and delivers a reward to the user in one of the following ways:
      • to their inventory (virtual items, virtual currency packages, or bundles)
      • via email (game keys)
      • to the entitlement system (game keys)

SDK reference documentation
Learn more about SDK methods and its parameters.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Rate this page
Rate this page
Is there anything we can improve?

Don’t want to answer

Thank you for your feedback!
Last updated: September 6, 2022

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!