本文段落:
- 事前準備
- 設置「受眾」條件INSTAG 整合 Google Ad Manager 代碼
- Google Ad Manager 鍵值(Key/Value) 設置
- Google Ad Manager 鍵值(Key/Value) 檢查是否有傳入受眾
▎事前準備
- 擁有 Google Ad Manager 帳號
- 建立關注濃度受眾
▎INSTAG 整合 Google Ad Manager 代碼
Google Ad Manager 鍵值(Key/Value) 程式碼
選擇「整合」點擊「Google Ad Manager」進入

將下列程式碼複製並貼入原 Google Ad Manager 裡
// 加入下列四行程式,將受眾傳入 GAM 鍵值(Key/Value) googletag.pubads().setTargeting('itg_segments_0', JSON.parse(localStorage.getItem('_itg_segments'))['pr0']); googletag.pubads().setTargeting('itg_segments_20', JSON.parse(localStorage.getItem('_itg_segments'))['pr20']); googletag.pubads().setTargeting('itg_segments_50', JSON.parse(localStorage.getItem('_itg_segments'))['pr50']); googletag.pubads().setTargeting('itg_segments_80', JSON.parse(localStorage.getItem('_itg_segments'))['pr80']);
▎Google Ad Manager 鍵值(Key/Value) 設置
建立鍵值
選擇「鍵值」點擊「新的鍵/值」進入建立

設定「受眾代號」整合
依序建立 itg_segments_0、itg_segments_20、itg_segments_50 、itg_segments_80 四種關注濃度區隔受眾

- 名稱:itg_segments_80 (為上一段 GAM 程式傳入的代號)
- 顯示名稱:itg_segments_80 (可更改)
- 值類型:動態
- 製作值的報表:在報表中加入值
最後按下「儲存」後即可。
▎檢查 Google Ad Manager 鍵值(Key/Value) 是否有傳入受眾
使用 Google Publisher Console 調試控制台
網址最後加入「?google_console=1」開啟控制台

點擊「Open Targeting Info」展開下方查看「網頁層級指定目標」,即可看到「鍵值」是否有帶入。