Skip to content

Most visited

Recently visited

navigation

Play Install Referrer API

This documentation provides technical reference for using the Play Install Referrer API. The Play Install Referrer API is an AIDL Service Interface) primarly used by non-Java programmers.

Note: The Play Install Referrer Library provides a wrapper around the Play Install Referrer API and is designed to help Java programmers use the API.

The getInstallReferrer() method

This method returns the app install referrer information corresponding to the given package name sent through a Bundle (key mapped in table 1). In the response Bundle sent by Google Play, the referral information is stored in fields mapped to the keys detailed in table 2.

Table 1. getInstallReferrer() bundle data. request.

Parameter Type Description
package_name String The package name of the caller, used for disambiguation.

Table 2. Response data from a getInstallReferrer() request.

Key Type Description
install_referrer String The referrer url of the installed package.
referrer_click_timestamp_seconds long The timestamp in seconds when referrer click happens.
install_begin_timestamp_seconds long The timestamp in seconds when installation begins.
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)