Using Google Play Billing, you can offer in-app products that charge users on a one-time basis, known as managed products. Managed products can include items like virtual goods (example: game levels or potions) and premium services within your app on Google Play.
- You can also create a subscription, which charges users on a recurring basis.
Important: Google Play Developer Program Policies and transaction fees apply to all in-app products, including both managed products and subscriptions.
Availability
If you're in a supported location for merchant registration, you can use Google Play Billing.
If you’re in a supported location and want to start using Google Play Billing features in your apps, set up a payments profile and review the Google Play Billing API documentation.
After you create a managed product, it’s available for users running the latest version of the Google Play Store.
Required permissions
To offer a managed product, you need to declare the com.android.vending.BILLING
permission in your app’s APK manifest file. If you distribute your app globally, you can still publish apps that use com.android.vending.BILLING
permission in all countries.
Create managed products
Create a single managed product
- Product IDs need to start with a lowercase letter or a number and must be composed of only lowercase letters (a-z), numbers (0-9), underscores (_), and periods (.)
- Note: The product ID
android.test
is unavailable for use, along with all product IDs that start withandroid.test
.
To create a managed product:
- Sign in to your Play Console.
- Select an app.
- On the left menu, click Store presence > In-app products > Managed products.
- Click Create Managed Product.
- Enter your product details.
- Title: A short name of the item (up to 55 characters, but we recommend limiting titles to 25 characters to display properly in all contexts), like "Sleeping potion."
- Description: A long description of the item (up to 80 characters), like “Instantly puts creatures to sleep."
- Price: Enter a price in your local currency or select a pricing template.
- Next to “Status,” choose Active or Inactive.
- To be available for purchase, a product needs to be active, and its app needs to be published.
- If you’re using a test account, active items are available in unpublished apps. To learn more, go to our Android Developers site.
- Click Save.
Languages & translations
Managed products use the same default language as their app. To add translations in specific languages, select a managed product, and then click Add translations. Learn more about translating your app.
Create a batch of multiple managed products
Upload a CSV file of managed products
- Sign in to your Play Console.
- Select an app.
- On the left menu, click Store presence > In-app products > Managed products.
- Click Import/Export > Import managed products from CSV file.
- To overwrite existing managed products in your product list, select the Overwrite existing products checkbox. This will overwrite existing products only if the value of a
Product ID
in the CSV file matches theProduct ID
of an existing managed product in the product list. Overwriting a product doesn't delete managed products that aren't included in the CSV.
- To overwrite existing managed products in your product list, select the Overwrite existing products checkbox. This will overwrite existing products only if the value of a
- Click Browse files, and then select your CSV file.
Export a CSV file of existing managed products
If you’ve created managed products one at a time in the Play Console, exporting a CSV file can be a good way to start creating them using a CSV file instead.
- Sign in to your Play Console.
- Select an app.
- On the left menu, click Store presence > In-app products > Managed products.
- Click Import/Export > Export in-app products to CSV file.
View a CSV file example
- The first example defines a title and description in two different languages (
en_US
andes_ES
). A pricing template defines the item's price. - The second example doesn't use a pricing template. Instead, it specifies a price for the default country (US). The Play Console uses current exchange rates and locally relevant pricing patterns to automatically set the prices in all other countries where the app is distributed.
- The third example also doesn't use a pricing template. The item's price is specified manually for each country where the app is distributed.
CSV syntax example
Product ID,Published State,Purchase Type,Auto Translate,Locale; Title; Description,Auto Fill Prices,Price,Pricing Template ID
Managed product examples
Example 1
basic_sleeping_potion,published,managed_by_android,false,en_US; Basic Sleeping Potion; Puts small creatures to sleep.; es_ES; Poción básica de dormir; Causa las criaturas pequeñas ir a dormir.,false,,4637138456024710495
Example 2
standard_sleeping_potion, published,managed_by_android,false,en_US; Standard Sleeping Potion; Puts all creatures to sleep for 2 minutes.,true, 1990000,
Example 3
invisibility_potion,published, managed_by_android,false,en_US; Invisibility Potion; Invisible to all enemies for 5 minutes.,false, US; 1990000; BR; 6990000; RU; 129000000; IN; 130000000; ID; 27000000000; MX; 37000000,
Data values for CSV files
Product ID |
Setting this value in the CSV file has the same effect as entering a Product ID when creating a new managed product. If you specify a |
Publish State |
This value must be set to published or unpublished . This is the same as setting a managed product as Active or Inactive. |
Purchase Type |
This value must be set to |
Auto Translate |
This value must be set to If you want to provide translations of a managed product’s title and description, specify these translations explicitly within the |
|
If you include only one locale for an item, you must specify your app's default locale and the item's default title and description:
When setting the Note: When specifying the If you want to include translated versions of the item's title and description, you must list the default locale, title, and description, followed by the locales, titles, and descriptions for each translation. In the following example, the managed product uses
Note: An app contains a single default language, but each managed product maintains its own list of translations. Even though the first locale in each item's |
Auto Fill Prices , Country , and Price |
You can set Note: When you specify an item's price in a CSV file, provide a price in micro-units, where 1,000,000 micro-units is equivalent to 1 unit of real currency. Use auto-filled prices The following sections describe how the value of If you set For example, under the following conditions:
You'd set the values of Set your own price per country If you set Note: You must provide a country code and price for each country that your app targets. To view and edit the list of countries that your app targets, open your app's Pricing & distribution page. Each For example, if you're offering your app for the following prices (all taxes included) in other countries:
You can set the values of
|
Pricing Template ID |
If an item is linked to a pricing template, you should set If you import a CSV file, and you've checked the Overwrite existing products checkbox in the "Import In-app Products" dialog, you can update the links between managed products and pricing templates. To link the product to a specific pricing template, set the You can link up to 1000 app prices or managed product prices to a particular pricing template. Therefore, don't specify the same |