1. Home
  2. Android
  3. InApp Products
  4. Create InApp Products for your Android App

Create InApp Products for your Android App

InApp Products

InApp products are digital products which can be purchased by a player. Basically an inapp product can only be purchased once. However you can consume a purchase, so it can be purchased again. This is usefull for items like coin packages.

Just to be sure...

You must have uploaded an apk with billing permission before you can perform following steps! Just included the InApp Plugin for Construct 2 and build an apk file then.

Consumables and non-consumables

In Google Play you can only create non-consumable products (called “managed” products). Like mentioned above, those products can only be purchased once. However this isn’t applicable on items like gem packages or something similar.

To handle this, you need to consume the product after it had been purchased. This must happen in your code / project, for instance in Construct 2.

Managed products and Subscriptions

Please visit your Google Play Developer Console and select the app where you want to add a new inapp product.

  Google Play Developer Console

On the left hand side, click “Store presence” and eventually “In-app products”.

Google Play differs between “Managed products” and “Subscriptions“. A managed product fits mostly for items as “Remove Ads”, “Buy xxx coins” and so on. A subscription fits the best for a premium account. So if the user pays for a subscription is account gets benifits, like more EXP or something like that.

Managed

Basically a managed product can only be purchased once. However you can “consume” a managed product, so that it get purchasable again.

Examples

  • Unconsumable: RemoveAds
  • Consumable: Coin packages

Subscrtiption

A subscription has to paied in a defined interval, for instance every month. As long the player pays the fee, he has access to premium features for instance.

Example

  • Premium account with more features than the free subscription

Add new product

To add a new product either select the Managed products tab or the Subscriptions tab.

Here click on ‘CREATE MANAGED PRODUCT

Now enter the unique Product ID to identify your Product later in the game code. I personally use the game name and the product name separated with a dot.

Example: GAMENAME.PRODUCTNAME

Important

This ID must be unique for the game / app listed in Google Play. Moreover you need to add this ID later to your “Purchase product” function.

Next add a title and a description in each language your game / app supports.

At the Status you either can set the item inactive (if it isn’t available yet) or active.

Finally you can set a fixed price or use a Pricing template. Google Play automatically converts the price in all supported currencies for your game / app.

Once you feel ready, click on the save button.

If all information are valid, you get this message.

You can then go back to the overview of your in-app products. Here you’ll find your new item. If you set it on active, players can purchase it (if it’s implemented in the game code though). Otherwise the item is not purchasable.

 

Updated on January 7, 2018

Was this article helpful?

Related Articles

Comments

    1. Hi!
      In construct 2 you need a plugin for this. You can use the default “IAP” plugin by scirra or the “CordovaInApp” plugin by Cranberrygame / “CocoonInapp” plugin by Ludei.

      The usage is similar on all three plugins. Basically you need to fetch the item list from Google Play first. Then you can use the action “Purchase [PRODUCT_ID]”.

      Regards
      Andy

Leave a Comment

Privacy Preference Center

Strictly Necessary

Cookies that are necessary for the site to function properly.

gdpr,PYPF, woocommerce_cart_hash, woocommerce_items_in_cart, _wp_wocommerce_session

Google Analytics (Google Inc.)

We are using Google Analytics with anonymized IP (Google Inc.) to track usage data of our website anonymously. Please see more information at the privacy policy of Google Inc. https://www.google.com/intl/en/policies/privacy/

_ga,_gid, _gat, AMP_TOKEN,_gac, __utma, __utmt, __utmb, __utmc,__utmz,__utmv, __utmx,__utmxx,_gaexp
_ga,_gid, _gat, AMP_TOKEN,_gac, __utma, __utmt, __utmb, __utmc,__utmz,__utmv, __utmx,__utmxx,_gaexp

Google Adsense (Google Inc.)

We are using Google AdSense to show personalized ads on our webpage and our forum. For more information see the privacy policy by Google.
https://www.google.com/policies/technologies/ads/

Doubleclick, __gads, __gac
Doubleclick, __gads, __gac

Close your account?

Your account will be closed and all data will be permanently deleted and cannot be recovered. Are you sure?