제한된 광고 및 퍼스트 파티 식별자 설정
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Ad Manager 설정 프로그래매틱 제한 광고 또는 웹 광고용 퍼스트 파티 쿠키를 업데이트하는 경우 이러한 새 API를 사용하여 Ad Manager의 설정과 일치시킵니다. API를 사용하지 않으면 PAL이 서버에 대한 광고 요청에 사용되는 nonce에 식별자를 포함할 수 있습니다. 하지만 Ad Manager의 설정에 따라 Ad Manager에서 신호를 삭제할 수도 있습니다.
API는 다음과 같습니다.
disableLimitedAdsStorage
- 제한적인 광고에 무효 트래픽 감지 전용 쿠키 및 로컬 스토리지 사용을 사용 중지합니다. 관리 > 전역 설정에서 Ad Manager의 프로그래매틱 방식의 제한적인 광고 설정을 업데이트한 경우 이 API를 사용하여 PAL에서 제한적인 광고에 대한 로컬 저장소 사용을 사용 중지합니다. 제한되지 않은 광고에는 이 설정이 적용되지 않습니다.
disableFirstPartyIdentifiers
- 광고 선택에 사용되는 퍼스트 파티 식별자를 사용 중지합니다. 관리 > 전체 설정에서 Ad Manager의 웹 광고용 퍼스트 파티 쿠키 설정을 업데이트한 경우 이 API를 사용하여 PAL에서 이러한 식별자를 사용 중지합니다. 이 설정은 무효 트래픽 감지에 쿠키 및 로컬 스토리지를 사용하는 데는 적용되지 않습니다.
다음 예에서는 이러한 매개변수를 설정합니다.
const consentSettings = new goog.pal.ConsentSettings();
consentSettings.allowStorage = getConsentToStorage();
const adManagerSettings = new goog.pal.GoogleAdManagerSettings();
// Add this line if the "Programmatic limited ads" toggle is turned off in
// Ad Manager.
adManagerSettings.disableLimitedAdsStorage = true;
// Add this line if the "First party cookies for ads on web" toggle
// is turned off in Ad Manager.
adManagerSettings.disableFirstPartyIdentifiers = true;
const nonceLoader = new goog.pal.NonceLoader(consentSettings, adManagerSettings);
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-21(UTC)
[null,null,["최종 업데이트: 2025-08-21(UTC)"],[],[],null,["# Limited ads and first party identifier settings\n\nIf you update the Ad Manager settings **Programmatic limited ads** or\n**First party\ncookies\nfor ads on\nweb**,\nuse these new APIs to match the settings in Ad Manager. If you don't use the\nAPIs PAL might include the identifiers in the nonce that is used in the ad\nrequest to the server. However, Ad Manager might drop the signals based on the\nsettings in Ad Manager.\n\nThe APIs are as follows:\n\n- [`disableLimitedAdsStorage`](/ad-manager/pal/html5/reference/js/GoogleAdManagerSettings#disableLimitedAdsStorage) - disables invalid traffic detection-only cookies and use of local storage for limited ads. If you updated the **Programmatic limited ads** setting in Ad Manager within **Admin \\\u003e Global settings**, use this API to disable usage of local storage for limited ads in PAL. Note that this setting does not apply to non-limited ads.\n- [`disableFirstPartyIdentifiers`](/ad-manager/pal/html5/reference/js/GoogleAdManagerSettings#disableFirstPartyIdentifiers) - disables first-party identifiers used for ad selection. If you updated the **First party\n cookies\n for ads on\n web** setting in Ad Manager within **Admin \\\u003e Global** settings, use this API to disable such identifiers in PAL. Note that this setting does not apply to the use of cookies and local storage for invalid traffic detection.\n\nThe following example sets these parameters: \n\n const consentSettings = new goog.pal.ConsentSettings();\n consentSettings.allowStorage = getConsentToStorage();\n\n const adManagerSettings = new goog.pal.GoogleAdManagerSettings();\n // Add this line if the \"Programmatic limited ads\" toggle is turned off in\n // Ad Manager.\n adManagerSettings.disableLimitedAdsStorage = true;\n // Add this line if the \"First party cookies for ads on web\" toggle\n // is turned off in Ad Manager.\n adManagerSettings.disableFirstPartyIdentifiers = true;\n\n const nonceLoader = new goog.pal.NonceLoader(consentSettings, adManagerSettings);"]]