You can use the Google Play Grouping API tag users with relevant data which is used to customize their Play Store experience by showing them specific content from your app. For example, you may want long-term, engaged users to see different events, featured products, and store listings. You may want to highlight exciting new additions to lapsed users, or promote specific app content to users you know have enjoyed it before.
Overview
You can use the Google Play Grouping API to tag users so that Google Play can customize the content they see across the Play Store. Firstly, you create tags created with the API. You can then use these tags in Play Console to define audiences for targeting Play Store content (for example, promotional content).
The Grouping API provides strong privacy guarantees for end users, including user-visible notification when the API is first used, and opt-out options managed by Google through My Activity.
Note: The Grouping API is only available to select Play partners who meet our eligibility criteria.
Prerequirements
Eligible games and app developers need to take the following steps before accessing and using the Grouping API:
- Games developers: Integrate the Play Games Services SDK to access the Grouping API. Set up the API as described here.
- App developers: Integrate the Play Grouping SDK to access the Grouping API. Set up the SDK and API as described here.
Using the Grouping API to create an audience
You can follow the steps below to ensure the Grouping API is working and create audiences in Play Console.
Step 1: Verify the API is workingIf you have not set up the Grouping API before, you can follow these instructions. This will guide you through the process of downloading the Play Grouping SDK, using it in your Android project, and requesting an API token.
After you’ve integrated the SDK into your app, you must upload and roll out the updated version to your users. If you're having trouble, you can find a short list of common SDK errors here.
If you have correctly integrated the API, then when you visit the Custom Audiences page (Grow > Custom audiences), you'll see a graphic and text about custom audiences. You may have to request access to use the feature if your current permissions restrict you from creating and managing audiences, specifically the Manage store presence permission.
If the API is working correctly and you have the required permissions, you can create audiences in Play Console:
- Click Create audience.
- Enter the required information:
- Audience: Enter a unique name for your audience. Users won't see this name. You can also enter a description.
- API tag rules: Define at least one tag rule that defines your new audience. These tags must already be created via the API.
- Click Save.
To create a valid API tag rule:
- Select a tag key.
- Select an operator (each tag type has its own operators)
- Enter or select a value depending on the selected tag type:
- Input for the string, integer, and timestamp tags.
- Dropdown menu for boolean tags.
- Select a time reference only when the selected tag type is timestamp.
Consider the following information if adding multiple rules:
- You can add up to five rules.
- The Add rule button is only visible if there are less than five rules.
- The Remove button is visible if the rule has been set.
Targeting promotional content on Google Play
After creating an audience in Play Console, you can begin to create events that target them specifically. You can also view audience statistics on your app's dashboard in Play Console.
Create promotional content for a custom audienceTo create an event targeting a custom audience:
- When creating a promotional content event, scroll to the "Featuring" section and select A specific audience.
- In the Select audience group dropdown, select Custom audience.
- Click Select a custom audience.
- Select the audience you want to target.
- Note: If there are no created audiences, you can create a new audience, the newly created audience will be pre-selected, then click Apply. If there are already created audiences, you can select an audience and click Apply or you can create a new audience via the ‘Create audience’ button.
- Click Submit event or Save as draft.
When viewing app statistics in Play Console, audiences are available as filters in the reports on the Promotional content page.
For example, to view only events that were targeted to a specific audience:
- Open Play Console and go to the Promotional content reports page (Grow > Store performance > Promotional content reports).
- Click + Event to configure your report.
- Use the filter to select Audience to show only events relevant for the selected audience.
- Note: You can also click + Audience and then use the filter to select an additional audience to show events specific to multiple selected audiences
Example use cases for custom audiences
The following are examples that illustrate how you might use the Play Grouping API to drive engagement for your app or game.
Example 1: Targeting players at specific levelsCreate a tag called ‘level’ and make the value an integer for the game level that users have reached. Update this each time the user plays the game.
Create audiences like ‘Level 4 and under’, ‘Level 5-9’, ‘Level 10-14’, etc.
When running a major update event you can now customize the message for players that use the game at each grouping of levels, perhaps appealing to them with specific imagery and characters.
To improve player retention and engagement, you might use the Play Grouping API to target players based on their game level by:
- Creating a tag named "level" and assigning each player a corresponding integer value.
- Creating audiences based on specific level ranges, such as "Level 4 and under," "Level 5-9," "Level 10-14," and so on.
- Customizing promotional messages for each audience to players at different levels. For example, you could highlight features or content that are particularly relevant to their current gameplay experience.
To re-engage players who haven't been active in your app for a while, you might use the Play Grouping API to target specific segments by:
- Creating a tag named "last_session" and assigning each player a timestamp indicating the end of their most recent session.
- Creating an audience of players whose "last_session" tag is older than a specific threshold (for example, 14 days, 30 days).
- Running targeted promotions to attract these lapsed users back to your app. You can offer incentives, highlight new content, or remind them of features they may have enjoyed.
Google Play also has predefined churned and lapsed audiences metric definitions available for promotional content:
- Churned users are those who have uninstalled your app.
- Lapsed users are those who have kept the app installed but not opened it in 28 days.
Custom audiences allow you to craft your own definitions of lapsed and churned, to meet the needs of your business.
If your app offers multiple features, you could use the Play Grouping API to target users based on their feature usage by:
- Creating boolean tags for each feature (for example, "walking," "rollerblading," "baking").
- Defining audiences based on specific combinations of features (for example, users who have used both "walking" and "rollerblading").
- Customizing promotional messages to highlight relevant features or content for each audience. For example, you could offer a discount on a new walking feature to users who frequently use the "rollerblading" feature.