หากต้องการใช้ไลบรารี Tuning Fork ในแอปของคุณเอง ให้เปิดใช้ Android
Performance Parameters API ใน Google Cloud Console คุณต้องมีบัญชีนักพัฒนาแอป Google
เพื่อสร้างโปรเจ็กต์ Google Cloud Console
คุณใช้โปรเจ็กต์คอนโซล Google Cloud ที่มีอยู่ได้ทําตามขั้นตอนด้านล่างเพื่อเพิ่มข้อจํากัดคีย์ API ที่เหมาะสมลงในโปรเจ็กต์ที่มีอยู่
จำนวนก้าว
ทำตามขั้นตอนต่อไปนี้เพื่อเปิดใช้ API
ไปที่หน้าโปรเจ็กต์ในคอนโซล Google Cloud เลือกโปรเจ็กต์ที่มีอยู่หรือสร้างโปรเจ็กต์ใหม่
จำกัดคีย์ API ให้ใช้ได้กับ Android Performance Parameters API เท่านั้น
เลือกจำกัดคีย์ในส่วนการจำกัด API
เลือก Android Performance Parameters API จากรายการ
รูปที่ 3 จำกัดคีย์สำหรับ Android Performance Parameters API
อย่าลืมคลิกบันทึกเพื่อเปิดใช้การจำกัด
ความเป็นส่วนตัว
โปรดอ่านนโยบายความเป็นส่วนตัวของแอปเพื่อให้แน่ใจว่านโยบายดังกล่าวระบุอย่างเหมาะสมว่า
อาจมีการแชร์ข้อมูลเกี่ยวกับอุปกรณ์และการใช้งานกับ Google ภายใต้ส่วนที่ 3.b ของข้อกำหนดในการให้บริการของ Google APIs ซึ่งควบคุมการใช้ Android Performance Parameters API ของคุณ คุณต้องดำเนินการต่อไปนี้
"ปฏิบัติตามกฎหมายและกฎระเบียบด้านความเป็นส่วนตัวที่เกี่ยวข้องทั้งหมด รวมถึงกฎหมายและกฎระเบียบที่
ใช้กับ PII คุณจะต้องจัดทำและปฏิบัติตามนโยบายความเป็นส่วนตัวสำหรับไคลเอ็นต์ API ของคุณ ซึ่งอธิบายให้ผู้ใช้ไคลเอ็นต์ API ของคุณทราบอย่างชัดเจนและถูกต้องว่าคุณเก็บรวบรวมข้อมูลผู้ใช้ใด และคุณใช้และแชร์ข้อมูลดังกล่าว (รวมถึงเพื่อการโฆษณา) กับ Google และบุคคลที่สามอย่างไร"
[[["เข้าใจง่าย","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-08-26 UTC"],[],[],null,["To use the Tuning Fork library in your own app, enable the Android\nPerformance Parameters API in the Google Cloud Console. You need a Google\ndeveloper account to create a Google Cloud Console project.\n\nYou can use an existing Google Cloud Console project. Follow\nthe steps below to **add the proper API key restrictions** to your existing\nproject.\n\nSteps\n\nFollow these steps to enable the API:\n\n1. In the Google Cloud Console, go to the **Projects** page. Select an\n existing project or create a new project.\n\n [Go\n to the Projects Page](https://console.cloud.google.com/project)\n\n For more information on creating a Google Cloud Console project, see the\n [Cloud API documentation](https://cloud.google.com/apis/docs/getting-started).\n2. Enable the Android Performance Parameters API on the project you selected.\n\n [Enable\n the API](https://console.cloud.google.com/apis/api/performanceparameters.googleapis.com/overview)\n\n If it has not been enabled, click **ENABLE**.\n3. Select the **Credentials** tab on the left.\n\n4. If the project does not have an existing API key, click **CREATE\n CREDENTIALS** and select **API Key**.\n\n\n **Figure 1.** Create an API key\n5. Copy the API\n key. Later, you will input it into the Unity plugin.\n\n6. Restrict the API key to Android apps only:\n\n 1. You should see a **Key restrictions** section. If not, double-click the API key.\n 2. Under **Application restrictions** , select **Android apps**.\n 3. Click **ADD AN ITEM**.\n 4. Enter your app's package name.\n 5. Enter the SHA-1 certificate fingerprint to\n [authenticate your app](https://developers.google.com/android/guides/client-auth).\n Use the release certificate fingerprint:\n\n ```\n keytool -exportcert -list -v \\\n -alias your-key-name -keystore path-to-production-keystore\n ```\n\n\n **Figure 2.** Restrict the key to Android apps only\n7. Restrict the API key to the Android Performance Parameters API:\n\n 1. Under **API restrictions** , select **Restrict key**.\n 2. Select **Android Performance Parameters API** from the list.\n\n\n **Figure 3.** Restrict the key to the Android Performance Parameters API\n8. Make sure to click **Save** to enable the restrictions.\n\nPrivacy\n\nReview your app's Privacy Policy to ensure that it appropriately reflects that\ndata about devices and usage may be shared with Google. Under Section 3.b the\n[Google APIs Terms of Service](https://developers.google.com/terms), which\ngoverns your use of the Android Performance Parameters APIs, you must:\n\n\"comply with all applicable privacy laws and regulations including those\napplying to PII. You will provide and adhere to a privacy policy for your API\nClient that clearly and accurately describes to users of your API Client what\nuser information you collect and how you use and share such information\n(including for advertising) with Google and third parties.\""]]