Play इंस्टॉल का रेफ़रल देने वाला API (एपीआई)
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस दस्तावेज़ में, Play Install Referrer API का इस्तेमाल करने के लिए तकनीकी रेफ़रंस दिया गया है. Play Install Referrer API, मुख्य रूप से AIDL सेवा इंटरफ़ेस है. इसका इस्तेमाल, Java प्रोग्रामर के अलावा अन्य प्रोग्रामर भी करते हैं.
ध्यान दें: Play Install Referrer Library, Play Install Referrer API के लिए एक रैपर उपलब्ध कराती है. इसे Java प्रोग्रामर को एपीआई का इस्तेमाल करने में मदद करने के लिए डिज़ाइन किया गया है.
getInstallReferrer() तरीका
यह तरीका, Bundle
(टेबल 1 में मैप की गई कुंजी) के ज़रिए भेजे गए दिए गए पैकेज के नाम से जुड़ी, ऐप्लिकेशन इंस्टॉल करने वाले रेफ़रर की जानकारी दिखाता है. Google Play से भेजे गए रिस्पॉन्स Bundle
में, रेफ़रल की जानकारी उन फ़ील्ड में सेव की जाती है जिन्हें टेबल 2 में दी गई कुंजियों से मैप किया गया है.
टेबल 1. getInstallReferrer()
बंडल का डेटा
अनुरोध.
पैरामीटर
|
टाइप
|
ब्यौरा
|
package_name
|
String
|
कॉल करने वाले व्यक्ति के ऐप्लिकेशन का पैकेज नाम. इसका इस्तेमाल, कॉलर की पहचान करने के लिए किया जाता है.
|
टेबल 2. getInstallReferrer()
के अनुरोध का जवाब देने वाला डेटा.
सुरक्षा कुंजी
|
टाइप
|
ब्यौरा
|
install_referrer
|
String
|
इंस्टॉल किए गए पैकेज का रेफ़रल यूआरएल.
|
referrer_click_timestamp_seconds
|
long
|
रेफ़रर क्लिक होने का क्लाइंट-साइड टाइमस्टैंप, सेकंड में.
|
install_begin_timestamp_seconds
|
long
|
ऐप्लिकेशन इंस्टॉल होने की शुरुआत का क्लाइंट-साइड टाइमस्टैंप, सेकंड में.
|
referrer_click_timestamp_server_seconds
|
long
|
सर्वर-साइड टाइमस्टैंप, सेकंड में. यह टाइमस्टैंप, रेफ़रर क्लिक होने के समय का होता है.
|
install_begin_timestamp_server_seconds
|
long
|
ऐप्लिकेशन इंस्टॉल होने की शुरुआत के समय का सर्वर-साइड टाइमस्टैंप, सेकंड में.
|
install_version
|
string
|
ऐप्लिकेशन को पहली बार इंस्टॉल करने के समय उसका वर्शन.
|
google_play_instant
|
boolean
|
इससे पता चलता है कि आपके ऐप्लिकेशन का इंस्टैंट वर्शन, पिछले सात दिनों में लॉन्च किया गया था या नहीं.
|
चेतावनी: इंस्टॉल रेफ़रर की जानकारी 90 दिनों तक उपलब्ध रहेगी. ऐप्लिकेशन को फिर से इंस्टॉल किए जाने तक, यह जानकारी बदल नहीं होगी. अपने ऐप्लिकेशन में ग़ैर-ज़रूरी एपीआई कॉल से बचने के लिए, आपको इंस्टॉल करने के बाद पहली बार इस्तेमाल करने के दौरान, एपीआई को सिर्फ़ एक बार कॉल करना चाहिए.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# Play Install Referrer API\n\nThis documentation provides technical reference for using the\nPlay Install Referrer API. The Play Install Referrer API is an\n[AIDL Service Interface](https://developer.android.com/guide/components/aidl.html)\nprimarily used by non-Java programmers.\n\n\n**Note:** The\n[Play Install Referrer Library](/google/play/installreferrer/library)\nprovides a wrapper around the Play Install Referrer API and is designed to help Java\nprogrammers use the API.\n\nThe getInstallReferrer() method\n-------------------------------\n\nThis method returns the app install referrer information corresponding to the\ngiven package name sent through a `Bundle` (key mapped in table 1). In the\nresponse `Bundle` sent by Google Play, the referral information is stored in\nfields mapped to the keys detailed in table 2.\n\n\n**Table 1.** `getInstallReferrer()` bundle data\nrequest.\n\n| Parameter | Type | Description |\n|----------------|----------|----------------------------------------------------------|\n| `package_name` | `String` | The package name of the caller, used for disambiguation. |\n\n\n**Table 2.** Response data from a `getInstallReferrer()`\nrequest.\n\n| Key | Type | Description |\n|-------------------------------------------|-----------|--------------------------------------------------------------------------------------|\n| `install_referrer` | `String` | The referrer URL of the installed package. |\n| `referrer_click_timestamp_seconds` | `long` | The client-side timestamp, in seconds, when the referrer click happened. |\n| `install_begin_timestamp_seconds` | `long` | The client-side timestamp, in seconds, when app installation began. |\n| `referrer_click_timestamp_server_seconds` | `long` | The server-side timestamp, in seconds, when the referrer click happened. |\n| `install_begin_timestamp_server_seconds` | `long` | The server-side timestamp, in seconds, when app installation began. |\n| `install_version` | `string` | The app's version at the time when the app was first installed. |\n| `google_play_instant` | `boolean` | Indicates whether your app's instant experience was launched within the past 7 days. |\n\n**Caution:** The install referrer information will be\navailable for 90 days and **won't change** unless the application is\nreinstalled. To avoid unnecessary API calls in your app, you should invoke the\nAPI **only once** during the first execution after install."]]