選擇通知的 CPID
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳送方案狀態通知給使用者時,請務必考量下列因素:
- 使用者的 CPID 是否已向 GTAF 註冊?在 CPID 向 GTAF 註冊之前,GTAF 不會知道 CPID,因此無法傳送為 CPID 推送的通知。
- 使用者是否已同意 DPA 與 GTAF 分享方案狀態資訊?
如「註冊 CPID」一節所述,只有在客戶的條款允許的情況下,GTAF 才會代為註冊 CPID。這表示 CPID 是根據 Google Play 服務中「行動數據方案」模組的同意聲明規定註冊。
當 DPA 從後端收到觸發事件,得知使用者的方案狀態有變更時,可以採用下列其中一種方法,查閱要用於傳送通知的 CPID:
- 使用使用者最新註冊的 CPID。
- 如果使用者已同意,請使用使用者最新註冊的 CPID。
- 使用最新產生的 CPID。
已註冊的 CPID
DPA 會查詢最新註冊的 CPID,並用來傳送通知。如果 DPA 選擇這個方法,就「必須」實作「Register CPID」API,並儲存每位使用者的最新註冊 CPID。請注意,GTAF 只會註冊符合 Google Play 服務中「行動數據方案」模組服務條款的 CPID。
已取得同意聲明的使用者註冊 CPID
DPA 會查詢最新註冊的 CPID,且只會在使用者授予同意聲明時傳送通知。如果 DPA 選擇這個方法,就「必須」實作「Register CPID」和「Consent」API,並儲存每個使用者的最新註冊 CPID 和同意聲明狀態。
最新產生的 CPID
DPA 可以儲存每位使用者最新產生的 CPID,並用於傳送通知給使用者。這是最不建議使用的方法,因為這會涉及向可能同意或不同意用戶端條款的所有使用者傳送通知,並使用可能未納入 GTAF 的 CPID。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","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-26 (世界標準時間)。"],[],["To send plan status notifications, the DPA must consider if the user's CPID is registered with GTAF and if the user consented to share plan status. The DPA can use the latest registered CPID, but this requires implementing the CPID registration API. Alternatively, they can use the registered CPID only for users who granted consent, requiring both CPID registration and consent APIs. A less desirable method is using the latest generated CPID.\n"]]