限制資料使用是一種資料處理選項,可讓您進一步控制 Meta 的系統如何使用您的資料,並且在遵守美國各州隱私法規的情況下提供更完善的支援。若要運用此功能,您必須主動啟用「限制資料使用」。針對美國適用「限制資料使用」地區已經啟用「限制資料使用」的用戶,當 Meta 收到這些用戶的資料時,我們會根據身為服務提供者或處理者的角色,依適用情況處理該資料,並依照我們各州專屬條款所述方式限制該資料的使用。
下列 Meta 產品提供「限制資料使用」。可用情況會視州 / 省而改變。請查看以下表格以瞭解詳情:
Meta 商業工具 (Meta 像素、經由 Facebook SDK 的應用程式事件、應用程式事件 API、轉換 API、離線轉換 API) | Audience Network SDK | 顧客檔案自訂廣告受眾 | |
---|---|---|---|
加州 | 2023 年 6 月 1 日起生效 | ||
科羅拉多州 | 2023 年 6 月 1 日起生效 | 2023 年 6 月 1 日起生效 | |
康乃狄克州 | 2023 年 6 月 1 日起生效 | 2023 年 6 月 1 日起生效 | |
德拉瓦州 | 2024 年 12 月 18 日起生效 | 2024 年 12 月 18 日起生效 | |
佛羅里達州 | 2024 年 6 月 24 日起生效 | 2024 年 6 月 24 日起生效 | |
蒙大拿州 | 2024 年 9 月 23 日起生效 | 2024 年 9 月 23 日起生效 | |
內布拉斯加州 | 2024 年 12 月 18 日起生效 | 2024 年 12 月 18 日起生效 | |
新罕布夏州 | 2024 年 12 月 18 日起生效 | 2024 年 12 月 18 日起生效 | |
紐澤西州 | 2024 年 12 月 18 日起生效 | 2024 年 12 月 18 日起生效 | |
奧勒岡州 | 2024 年 6 月 24 日起生效 | 2024 年 6 月 24 日起生效 | |
德州 | 2024 年 6 月 24 日起生效 | 2024 年 6 月 24 日起生效 |
「限制資料使用」將經由稱為「資料處理選項」的參數傳送,且可選擇包含用戶的國家/地區和州/省。若廣告主不確定國家 / 地區或州 / 省,可以選擇由 Meta 事件或記錄是否來自適用的州 / 省。
針對商業工具及 Audience Network,「限制資料使用」僅適用於加州、科羅拉多州、康乃狄克州、德拉瓦州、佛羅里達州、蒙大拿州、內布拉斯加州、新罕布夏州、紐澤西州、奧勒岡州或德州的民眾。若企業商家啟用「限制資料使用」但位置參數並未設為美國和加州、科羅拉多州、康乃狄克州、德拉瓦州、佛羅里達州、蒙大拿州、內布拉斯加州、新罕布夏州、紐澤西州、奧勒岡州或德州,我們會判斷事件是否來自上述州別之一。如果加州、科羅拉多州、康乃狄克州、德拉瓦州、佛羅里達州、蒙大拿州、內布拉斯加州、新罕布夏州、紐澤西州、奧勒岡州或德州的事件已經啟用「限制資料使用」,我們會根據身為服務提供者或處理者的角色,並根據各州專屬條款的資料使用限制處理該資料。
企業商家可能會發現啟用「限制資料使用」會影響行銷活動的成效和效果,且再次鎖定目標受眾和成效衡量功能將會受到限制。
針對顧客名單自訂廣告受眾,「限制資料使用」僅限加州民眾使用。如果來自加州的顧客名單中的記錄已經啟用「限制資料使用」,我們會根據身為服務提供者或處理者的角色,並根據各州專屬條款的資料使用限制處理該資料。若企業商家啟用「限制資料使用」但位置參數並未設為美國和加州,我們會判斷記錄是否來自上述州別之一。
企業商家可能會留意到啟用「限制資料使用」時,廣告受眾的規模會受到影響。
支援的 API 如下方所列。
深入瞭解資料處理選項:
欄位 | 說明 |
---|---|
資料處理選項 陣列 | 您想為特定事件或記錄啟用的處理選項。目前可接受的值為 此欄位的名稱可能會以不同的方式顯示,視您所使用的 API 和實作方式而定。例如, 您可以傳送空白陣列,以明確指示不應使用「限制資料使用」模式來處理此事件或記錄。 |
資料處理選項國家/地區 整數 | 多數 API 的選用項目。如需詳細資訊,請見以下備註。 要與此資料處理選項建立關聯的國家/地區。目前適用於美國的可接受值為 |
資料處理選項州/省 整數 | 多數 API 的選用項目。如需詳細資訊,請見以下備註。 要與此資料處理選項建立關聯的州/省。目前適用於加州的可接受值為 注意:
|
執行 | 新增資料處理選項 |
---|---|
瀏覽器像素 | 更新像素初始化程式碼以指定 如要明確不啟用「有限資料使用」(LDU),請使用: fbq('dataProcessingOptions', []); fbq('init', '{pixel_id}'); fbq('track', 'PageView'); 如要啟用 LDU 並讓 Meta 執行地理定位,請使用: fbq('dataProcessingOptions', ['LDU'], 0, 0); 如要啟用 LDU 並指定位置(例如加州),請使用: fbq('dataProcessingOptions', ['LDU'], 1, 1000); |
圖像標籤 | 將以下項目新增至像素圖像標籤:
請參閱參考資料,了解可接受的值。 如要明確不啟用 LDU,請為 <img src="https://www.facebook.com/tr?id={pixel_id}&ev=Purchase&dpo=" /> 如要啟用 LDU 並讓 Meta 執行地理定位,請使用: <img src="https://www.facebook.com/tr?id={pixel_id}&ev=Purchase&vdpo=LDU&dpoco=0&dpost=0" /> 如要啟用 LDU 並手動指定位置(例如加州),請使用: <img src="https://www.facebook.com/tr?id={pixel_id}&ev=Purchase&dpo=LDU&dpoco=1&dpost=1000" /> |
對於應用程式事件 API 和離線轉換 API,可在事件資料參數的每個事件內加入 data_processing_options
、data_processing_options_country
和 data_processing_options_state
,以執行資料處理選項。
請注意:對於新的整合,我們不再建議使用應用程式事件 API 和離線轉換 API。建議您改為使用轉換 API,因為轉換 API 現在支援網頁事件、應用程式事件和離線事件。詳情請參閱應用程式事件的轉換 API 和離線事件的轉換 API。
如要明確不啟用「有限資料使用」(LDU),請為每個事件指定空的陣列,或將此欄位直接從裝載中移除:
{ "data": [ { "event_name": "Purchase", "event_time": <EVENT_TIME>, "user_data": { "em": "<EMAIL>" }, "custom_data": { "currency": "<CURRENCY>", "value": "<VALUE>" }, "data_processing_options": [] } ] }
如要啟用 LDU 並讓 Meta 執行地理定位,請使用:
{ "data": [ { "event_name": "Purchase", "event_time": <EVENT_TIME>, "user_data": { "em": "<EMAIL>", "client_ip_address": "256.256.256.256" }, "custom_data": { "currency": "<CURRENCY>", "value": "<VALUE>" }, "data_processing_options": ["LDU"], "data_processing_options_country": 0, "data_processing_options_state": 0 } ] }
如要啟用 LDU 並手動指定位置(例如加州),請使用:
{ "data": [ { "event_name": "Purchase", "event_time": <EVENT_TIME>, "user_data": { "em": "<EMAIL>" }, "custom_data": { "currency": "<CURRENCY>", "value": "<VALUE>" }, "data_processing_options": ["LDU"], "data_processing_options_country": 1, "data_processing_options_state": 1000 } ] }
離線轉換 API 提供了從 .csv
檔案手動上載事件的選項。在使用此選項時,請在您的檔案內加入「資料處理選項」欄、「資料處理國家/地區」欄和「資料處理州份」欄。詳情請參閱上載用戶介面。
To implement Data Processing Options using the Graph API, add data_processing_options
, data_processing_options_country
, and data_processing_options_state
to your API call.
To explicitly not enable LDU, send an empty data_processing_options
array:
{ "event": "CUSTOM_APP_EVENTS", "application_tracking_enabled": "1", "advertiser_tracking_enabled": "1", "custom_events": ["fb_mobile_purchase"], "data_processing_options": [] }
To enable LDU and have Meta perform geolocation, you can send an event with the following code:
{ "event": "CUSTOM_APP_EVENTS", "application_tracking_enabled": "1", "advertiser_tracking_enabled": "1", "custom_events": ["fb_mobile_purchase"], "data_processing_options": ["LDU"], "data_processing_options_country": 0, "data_processing_options_state": 0 }
To enable LDU and manually specify the location, e.g., for California, you can send an event with the following code:
{ "event": "CUSTOM_APP_EVENTS", "application_tracking_enabled": "1", "advertiser_tracking_enabled": "1", "custom_events": ["fb_mobile_purchase"], "data_processing_options": ["LDU"], "data_processing_options_country": 1, "data_processing_options_state": 1000 }
We recommend using our latest versions to ensure the functionality of Data Processing Options. The below implementation instructions are accurate for the following SDK versions:
Please update if you are using any versions below the ones listed above.
As of July 1, 2023, we are ending the Transition Period for older versions of App Events via the Facebook SDK, whereby we applied Limited Data Use to all personal information shared about people in California. The ability to enable default Limited Data Use will no longer be available for any versions below iOS Facebook SDK v7.1.1, Android Facebook SDK v7.1.0 and Unity SDK v7.21.0. If you choose to use Limited Data Use for a person in California, Colorado, Connecticut, Florida, Texas, or Oregon on or after July 1, 2023, you must update your SDK and implement Data Processing Options as set forth in this document.
Implementation | Adding Data Processing Options |
---|---|
Facebook SDK for iOS v7.1.1+ (Objective-C) | With Objective-C, use To explicitly not enable Limited Data Use (LDU), use: [FBSDKSettings setDataProcessingOptions:@[]]; To enable LDU and have Meta perform geolocation, use: [FBSDKSettings setDataProcessingOptions:@[@"LDU"] country:0 state:0]; To enable LDU and manually specify the location, e.g., for California, use: [FBSDKSettings setDataProcessingOptions:@[@"LDU"] country:1 state:1000]; |
Facebook SDK for iOS v7.1.1+ (Swift) | With Swift, use To explicitly not enable LDU, use: Settings.setDataProcessingOptions(modes: []) To enable LDU and have Meta perform geolocation, use: Settings.setDataProcessingOptions(modes: ["LDU"], country: 0, state: 0) To enable LDU and manually specify the location, e.g., for California, use: Settings.setDataProcessingOptions(modes: ["LDU"], country: 1, state: 1000) |
Facebook SDK for Android v7.1.0+ | Use the To explicitly not enable LDU, use: FacebookSdk.setDataProcessingOptions(new String[] {}); To enable LDU and have Meta perform geolocation, use: FacebookSdk.setDataProcessingOptions(new String[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, e.g., for California, use: FacebookSdk.setDataProcessingOptions(new String[] {"LDU"}, 1, 1000); |
Unity SDK v7.21.1+ | To explicitly not enable LDU, send an event with: FB.Mobile.SetDataProcessingOptions(new string[] {}); To enable LDU and have Meta perform geolocation, send an event with: FB.Mobile.SetDataProcessingOptions(new string[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, e.g., for California, send an event with: FB.Mobile.SetDataProcessingOptions(new string[] {"LDU"}, 1, 1000); |
We recommend using our latest Audience Network SDK versions to ensure the functionality of Data Processing Options. The below implementation instructions are accurate for Audience Network SDK versions 5.10 and above.
As of July 1, 2023, we are ending the Transition Period for older versions of Audience Network SDK, whereby we limited the data for all personal information that businesses share about people in California and the ability to enable default Limited Data Use will not be available for Audience Network SDK versions below 5.10. If you choose to use Limited Data Use to indicate a person in California, Colorado, Connecticut, Florida, Texas, or Oregon or on or after July 1, 2023, you must update your SDK and implement Data Processing Options as set forth in this document.
Implementation | Adding Data Processing Options |
---|---|
Facebook SDK for iOS, v5.10+ | Use To explicitly not enable Limited Data Use (LDU), use: [FBAdSettings setDataProcessingOptions:@[]]; To enable LDU and have Meta perform geolocation, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:0 state:0]; To enable LDU and manually specify the location, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:1 state:1000]; |
Facebook SDK for Android, v5.10+ | Use the To explicitly not enable Limited Data Use (LDU), use: AdSettings.setDataProcessingOptions(new String[] {}) To enable LDU and have Meta perform geolocation, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 1, 1000); |
Unity SDK, v5.10+ (not using the Audience Network-supplied Unity wrapper) | If you are not using the Audience Network-supplied Unity wrapper, enter the following code. using UnityEngine; using System.Runtime.InteropServices; namespace AudienceNetwork { public static class AdSettings { public static void SetDataProcessingOptions(string[] dataProcessingOptions) { #if UNITY_ANDROID AndroidJavaClass adSettings = new AndroidJavaClass("com.facebook.ads.AdSettings"); adSettings.CallStatic("setDataProcessingOptions", (object)dataProcessingOptions); #endif #if UNITY_IOS FBAdSettingsBridgeSetDataProcessingOptions(dataProcessingOptions, dataProcessingOptions.Length); #endif } public static void SetDataProcessingOptions(string[] dataProcessingOptions, int country, int state) { #if UNITY_ANDROID AndroidJavaClass adSettings = new AndroidJavaClass("com.facebook.ads.AdSettings"); adSettings.CallStatic("setDataProcessingOptions", (object)dataProcessingOptions, country, state); #endif #if UNITY_IOS FBAdSettingsBridgeSetDetailedDataProcessingOptions(dataProcessingOptions, dataProcessingOptions.Length, country, state); #endif } #if UNITY_IOS [DllImport("__Internal")] private static extern void FBAdSettingsBridgeSetDataProcessingOptions(string[] dataProcessingOptions, int length); [DllImport("__Internal")] private static extern void FBAdSettingsBridgeSetDetailedDataProcessingOptions(string[] dataProcessingOptions, int length, int country, int state); #endif } } After entering this code, you can follow the Unity SDK instructions in the row below as if you are using the Unity wrapper. |
Unity SDK, v5.10+ (using the Audience Network-supplied Unity wrapper) | If you are using the Audience Network-supplied Unity wrapper, use the following To explicitly not enable LDU, use: AdSettings.SetDataProcessingOptions(new string[]{}) To enable LDU and have Meta perform geolocation, use:
AdSettings.SetDataProcessingOptions(new string[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, use:
AdSettings.SetDataProcessingOptions(new string[] {"LDU"}, 1, 1000); |
Publishers using a Mediation Partner must set the Data Processing Options (Limited Data Use) on the Meta Audience Network SDK before initializing the Mediation SDK so that it is received by us in the bidding request.
Implementation | Adding Data Processing Options |
---|---|
Android | To explicitly not enable LDU for the event, use: AdSettings.setDataProcessingOptions(new String[] {}) To enable LDU and have Meta perform geolocation, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 1, 1000); After setting LDU, initialize the Mediation Partner SDK as per usual. |
iOS | To explicitly not enable Limited Data Use (LDU), use: FBAdSettings setDataProcessingOptions:@[]]; To enable LDU and have Meta perform geolocation, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:0 state:0]; To enable LDU and manually specify the location, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:1 state:1000]; After setting the LDU for the event, initialize the Mediation Partner SDK as per usual. |
For publishers that are working with us through Bidding Kit and other Server-side Bidding, please follow the implementation methods below.
Implementation | Adding Data Processing Options |
---|---|
Android/Bidding Kit 2.0 | To explicitly not enable LDU, use: AdSettings.setDataProcessingOptions(new String[] {}) To enable LDU and have Meta perform geolocation, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 1, 1000); After setting the LDU for the event, generate the bidder token: String token = BidderTokenProvider.getBidderToken(Context); |
iOS/Bidding Kit 2.0 | To explicitly not enable Limited Data Use (LDU), use: [FBAdSettings setDataProcessingOptions:@[]]; To enable LDU and have Meta perform geolocation, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:0 state:0]; To enable LDU and manually specify the location, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:1 state:1000]; After setting the LDU for the event, generate the bidder token: NSString *token = [FBAdSettings bidderToken]; |
Other Server-Side Bidding | For each platform follow the instructions below to specify LDU for the event and retrieve the bidder token before making the server-side bid request. For Android client: To explicitly not enable LDU, use: AdSettings.setDataProcessingOptions(new String[] {}) To enable LDU and have Meta perform geolocation, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 0, 0); To enable LDU and manually specify the location, use:
AdSettings.setDataProcessingOptions(new String[] {"LDU"}, 1, 1000); After setting the LDU for the event, generate the bidder token: String token = BidderTokenProvider.getBidderToken(Context); For iOS client: To explicitly not enable Limited Data Use (LDU), use: [FBAdSettings setDataProcessingOptions:@[]]; To enable LDU and have Meta perform geolocation, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:0 state:0]; To enable LDU and manually specify the location, use:
[FBAdSettings setDataProcessingOptions:@[@"LDU"] country:1 state:1000]; After setting the LDU for the event, generate the bidder token: NSString *token = [FBAdSettings bidderToken]; |
自 2023 年 6 月 1 起,如果您想透過顧客名單自訂廣告受眾,為加州用戶啟用「有限資料使用」功能,則必須上載新廣告受眾或更新現有廣告受眾,並將受眾資料標為「有限資料使用」。視乎具體需要,定期更新和維護您廣告受眾和用戶的「有限資料使用」狀態。
請注意,套用到單個廣告受眾的特定用戶的「有限資料使用」標示不會自動套用到不同廣告受眾。正如廣告客戶必須根據自己選擇的條件單獨管理每個現有顧客名單自訂廣告受眾,他們必須將「有限資料使用」標示單獨套用到他們在廣告中使用的每個廣告受眾。
如要明確不對記錄啟用 LDU
,您可以傳送空的 data_processing_options
陣列,或將此欄位從裝載中移除。空陣列範例:
{ "payload": { "schema": [ "EMAIL", "DATA_PROCESSING_OPTIONS" ], "data": [ [ "<HASHED_DATA> ", [] ] ] } }
如要明確啟用 LDU
並讓 Meta 執行地理定位(不提供特定記錄的國家/地區和州份的資料),請指定包含每項記錄的 LDU
陣列:
{ "payload": { "schema": [ "EMAIL", "DATA_PROCESSING_OPTIONS" ], "data": [ [ "<HASHED_DATA> ", ["LDU"] ] ] } }
如要啟用 LDU 並手動指定地理位置,請使用:
{ "customer_consent": true, "payload": { "schema": [ "EMAIL", "DATA_PROCESSING_OPTIONS", "DATA_PROCESSING_OPTIONS_COUNTRY", "DATA_PROCESSING_OPTIONS_STATE" ], "data": [ [ "<HASHED_DATA>", ["LDU"], 1, 1000 ] ] } }