使用沙箱資料測試查詢
沙箱平台是一項實用的工具,其中提供綜合資料集,可讓您在廣告資料中心更有效率地進行隱私權檢查作業。與一般資料不同的是,該資料集不須進行隱私權檢查,因此應用於實驗和查詢開發。沙箱可從下列這幾個方面改善查詢開發的工作流程:
- 更快的工作執行速度 - 查詢沙箱資料不須經過隱私權檢查,因此工作執行速度會更快。
- 可檢查基本資料 - 您可以對沙箱資料使用
SELECT *
,進一步瞭解可能的結果。
- 避免差異檢查 - 差異檢查會檢視查詢記錄,但不受沙箱資料查詢作業影響。進一步瞭解差異檢查
這些改善項目可加速疊代草稿查詢,並降低因隱私權檢查而出錯的頻率。因此,廣告資料中心建議您盡可能使用沙箱資料開發查詢。
沙箱資料和隱私權限制
由於沙箱提供的是綜合資料,因此廣告資料中心放寬特定隱私權限制。舉例來說,只有在查詢沙箱資料時才能執行下列動作:
- 使用
SELECT *
執行查詢。
- 執行一系列類似的查詢。這是開發 SQL 查詢的常見做法,但如果不是用沙箱資料進行,就很有可能發生隱私權檢查問題。用沙箱資料執行的工作無須強制經過資料差異檢查,因此能加速 SQL 疊代作業。進一步瞭解廣告資料中心的隱私權檢查
沙箱查詢工作流程
使用沙箱資料與使用自有資料開發查詢,工作流程幾乎相同,唯一的差別在於:
- 查詢沙箱資料時,您可以撰寫使用
SELECT *
的查詢。
- 執行沙箱資料查詢時,您必須:
- 選取介於 2018-08-18 00:00:00 至 2018-09-17 23:59:59 之間的開始日期和結束日期。
- 在「廣告資料來源」下拉式選單中,選取「廣告資料中心沙箱客戶」。
- 如果是透過 API,則必須使用您所在區域的特定沙箱帳戶 ID:
us
: '131148133' (美國)
europe
: '548904246' (歐洲)
asia-northeast1
: '811078775' (東北亞 1)
australia-southeast1
: '448592203' (澳洲東南 1)
進一步瞭解如何在廣告資料中心撰寫及執行查詢
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-02-08 (世界標準時間)。
[null,null,["上次更新時間:2024-02-08 (世界標準時間)。"],[[["Ads Data Hub provides a synthetic dataset sandbox to help users experiment and develop queries without privacy restrictions, leading to faster query development."],["Sandbox data allows the use of `SELECT *` and running similar queries repeatedly, which is restricted with real data due to privacy checks."],["To use sandbox data, queries must be limited to a specific date range (2018-08-18 to 2018-09-17) and use a designated sandbox customer ID."],["While the query development workflow is largely the same, sandbox data enables flexibility and speed by bypassing certain privacy limitations, leading to faster iterations and fewer errors."]]],["The Ads Data Hub platform offers a synthetic dataset, or \"sandbox,\" for query development and experimentation, bypassing privacy checks. This allows for faster job runs, `SELECT *` usage for data inspection, and no difference checks. Sandbox use is recommended for iterating on draft queries and reducing privacy-related errors. Queries on sandbox data have specific parameters like an auto-updated date range and require selecting \"ADH Sandbox Customer.\" API users must use a specific sandbox account ID for their region.\n"]]