Google Play Install Referrer
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณสามารถใช้ Install Referrer API ของ Google Play Store เพื่อดึงข้อมูลเนื้อหาการอ้างอิงจาก Google Play อย่างปลอดภัย เช่น
- URL ที่มาของแพ็กเกจที่ติดตั้ง
- การประทับเวลาเป็นวินาทีของเวลาที่เกิดการคลิกผู้อ้างอิง (ทั้งฝั่งไคลเอ็นต์และฝั่งเซิร์ฟเวอร์)
- การประทับเวลาเป็นวินาทีของเวลาที่เริ่มการติดตั้ง (ทั้งฝั่งไคลเอ็นต์และฝั่งเซิร์ฟเวอร์)
- เวอร์ชันของแอป ณ เวลาที่ติดตั้งแอปครั้งแรก
- ผู้ใช้โต้ตอบกับประสบการณ์การใช้งานทันทีของแอปในช่วง 7 วันที่ผ่านมาหรือไม่
ข้อกำหนด
แอป Google Play Store ในอุปกรณ์จะแสดง Install Referrer API อุปกรณ์ที่มีแอป Google Play เวอร์ชัน 8.3.73 ขึ้นไปจะมีสิทธิ์เข้าถึง API โดยอัตโนมัติ
นอกจากนี้ คุณต้องมีบัญชี Google Play Console เพื่อใช้ Install Referrer API ด้วย
การใช้ API
Install Referrer API ติดตั้งใช้งานเป็นอินเทอร์เฟซ Android Interface Definition Language (AIDL)
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# Google Play Install Referrer\n\nYou can use the Google Play Store's Install Referrer API to securely retrieve referral content\nfrom Google Play, such as:\n\n- The referrer URL of the installed package.\n- The timestamp, in seconds, of when a referrer click happened (both client- and server-side).\n- The timestamp, in seconds, of when an installation began (both client- and server-side).\n- The app's version at the time when the app was first installed.\n- Whether the user has interacted with your app's [instant experience](/topic/google-play-instant/overview) in the past 7 days.\n\nRequirements\n------------\n\nThe Install Referrer API is exposed by the Google Play Store app on a device. Devices with a\nGoogle Play app version of 8.3.73 or later automatically have access to the API.\n\nYou must also have a Google Play Console account to use the Install Referrer API.\n\nUsing the API\n-------------\n\nThe Install Referrer API is implemented as an\n[Android Interface Definition Language (AIDL)](/guide/components/aidl) interface.\n\n- If you are using the Kotlin programming language or the Java programming language, use the [Play Install Referrer Client Library](/google/play/installreferrer/library) to simplify your coding.\n- If you are using another programming language, use the [Play Install Referrer API](/google/play/installreferrer/igetinstallreferrerservice)."]]