[null,null,["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eThe Google Interactive Media Ads SDK enables publishers to comply with the California Consumer Privacy Act (CCPA) by restricting data processing with Google's RDP or IAB's \u003ccode\u003eus_privacy\u003c/code\u003e signals.\u003c/p\u003e\n"],["\u003cp\u003ePublishers can signal restricted data processing to Google by appending \u003ccode\u003e&rdp=1\u003c/code\u003e or the IAB-defined \u003ccode\u003eus_privacy\u003c/code\u003e string to their ad tag parameters.\u003c/p\u003e\n"],["\u003cp\u003eThis guide provides instructions on how to implement these signals for Google's restricted data processing on a per-ad-request basis using code examples in Objective-C and Swift.\u003c/p\u003e\n"],["\u003cp\u003eWhile both Google's RDP and IAB's \u003ccode\u003eus_privacy\u003c/code\u003e signals can be used simultaneously, they have the same impact on Google's ad serving.\u003c/p\u003e\n"],["\u003cp\u003eThese signals are supported for ad tags from Ad Manager, AdSense, and AdMob; for third-party providers, publishers should contact them directly for support.\u003c/p\u003e\n"]]],[],null,["# Enable restricted data processing\n\nTo help publishers toward compliance with the [California Consumer Privacy Act (CCPA)](//support.google.com/admob/answer/9561022), the Google Interactive Media Ads SDK allows publishers\nto use two different parameters to indicate whether Google should enable\n[restricted data processing](//privacy.google.com/businesses/rdp/) (RDP). The SDK\nprovides publishers with the ability to set RDP at an ad request level utilizing the following\nparameters:\n\n- Google's RDP\n- [IAB-defined](//github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/US%20Privacy%20String.md) `us_privacy`\n\n| **Note:** The RDP and `us_privacy` ad tag parameters are supported for ad tags originating from Ad Manager, AdSense, and AdMob. If you use a third-party ad provider, contact the provider about supporting restricted data processing.\n\n\nWhen either parameter is used, Google restricts how it uses certain unique identifiers and other\ndata processed in the provision of services to publishers.\n\n\nPublishers should decide for themselves how restricted data processing can support their\ncompliance plans and when it should be enabled. It is possible to use both optional parameters at\nthe same time, although they have the same effect on Google's ad serving.\n\n\nThis guide is intended to help publishers understand the steps required to enable these options on\na per-ad-request basis.\n\nRDP signal\n----------\n\n\nTo notify Google that RDP should be enabled using Google's signal, append `&rdp=1` to\nyour ad tag parameters, as shown in the following example: \n\n### Objective-C\n\n```objective-c\n- (void)requestStream {\n ...\n IMALiveStreamRequest *request =\n [[IMALiveStreamRequest alloc] initWithAssetKey:kAssetKey\n adDisplayContainer:adDisplayContainer\n videoDisplay:imaVideoDisplay];\n request.adTagParameters = @{ @\"rdp\" : @1};\n [self.adsLoader requestStreamWithRequest:request];\n}\n```\n\n### Swift\n\n```swift\nfunc requestStream() {\n ...\n let request = IMALiveStreamRequest(assetKey: ViewController.kAssetKey,\n adDisplayContainer: adDisplayContainer,\n videoDisplay: imaVideoDisplay);\n request?.adTagParameters = [\"rdp\" : 1];\n adsLoader.requestStream(with: request)\n}\n```\n\nIAB signal\n----------\n\n\nTo notify Google that RDP should be enabled using IAB's signal, use the ad tag parameter\n`us_privacy`. Make sure that the string value you use is compliant with the\n[IAB specification](//github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/US%20Privacy%20String.md).\n\n\nThe snippet below demonstrates how to create an ad request with the IAB parameter\n`\"1YNN\"`: \n\n### Objective-C\n\n```objective-c\n- (void)requestStream {\n ...\n IMALiveStreamRequest *request =\n [[IMALiveStreamRequest alloc] initWithAssetKey:kAssetKey\n adDisplayContainer:adDisplayContainer\n videoDisplay:imaVideoDisplay];\n request.adTagParameters = @{ @\"us_privacy\" : @\"1YNN\"};\n [self.adsLoader requestStreamWithRequest:request];\n}\n```\n\n### Swift\n\n```swift\nfunc requestStream() {\n ...\n let request = IMALiveStreamRequest(assetKey: ViewController.kAssetKey,\n adDisplayContainer: adDisplayContainer,\n videoDisplay: imaVideoDisplay);\n request?.adTagParameters = [\"us_privacy\" : \"1YNN\"];\n adsLoader.requestStream(with: request)\n}\n```"]]