Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Install Referrer API vs. INSTALL_REFERRER broadcast

Tags:

Recently Google released Google Play Install Referrer API (announcement).

Comparing to the INSTALL_REFERRER broadcast from Google Play, it provides extra information like click and installs time in addition to referrer itself.

First question: is it a complete replacement for INSTALL_REFERRER broadcast? Should we just drop the broadcast receiver and start using a new API?

Second: is there any information in what particular cases new API is more reliable then INSTALL_REFERRER broadcast?

like image 388
zasadnyy Avatar asked Nov 30 '17 10:11

zasadnyy


People also ask

What is Google Play install referrer API?

The Google Install Referrer is an Android-specific measurement technology that attributes clicks on Google Play Store app pages to the correlating app download. Google's Install Referrer framework sends an install referrer (or unique code string) to the Google Play store when an ad click has occurred.

Is Play install referrer API safe?

The Google Play Referrer is a standard and highly reliable and accurate method to attribute conversions through Google Play (but not Android out of store). It enables the attribution provider to send attribution parameters to the store, which then passes them back to the source when the app is downloaded.

What is referer API?

You can use the Google Play Store's Install Referrer API to securely retrieve referral content from Google Play, such as: The referrer URL of the installed package. The timestamp, in seconds, of when a referrer click happened (both client- and server-side).

What is referrer API Android?

The Play Install Referrer API is an AIDL Service Interface primarily 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.


1 Answers

It's all about SECURITY and SIMPLICITY. As the doc implies, you can use the Google Play Store's Install Referrer API to securely retrieve more accurate and reliable referral content from Google Play and also you can consider switch to Install Referrer API Client Library to simplify your development process. and as u mentioned in the query it returns ReferrerDetails object that hold extra info related to the install with the below three methods.

ReferrerDetails response = mReferrerClient.getInstallReferrer();
response.getInstallReferrer();
response.getReferrerClickTimestampSeconds();
response.getInstallBeginTimestampSeconds();

The API works only from Play Store version 8.3.73 onwards. Any developers that would like to begin using it can start right away, but a connection must be established between their app and the Play Store.

Also, check an article from Adjust that explains how new API can prevent click injection fraud for mobile ads.

P.S. You need to keep track with the latest API levels to be able to deliver the best solutions to the problems you face in your projects.

like image 90
Anoop M Maddasseri Avatar answered Sep 27 '22 17:09

Anoop M Maddasseri