/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/core/constants/consent-state.js
29 строк
828 B
Shihua Zheng
GPP preliminary steps: Add Global privacy platform enum (#39810)
09 фев 2024, 02:52
Не верифицирован
09 фев 2024, 02:52
c401c63
Код
Авторство
О чём код?
// This file will be imported by 3P scripts. /** * Possible consent policy state to proceed with. * @enum {number} */ export const CONSENT_POLICY_STATE = { // Enum value has external dependency. Please do not change existing value. // If new values are added, please notify the AMP for Ads team to assure // correct Real Time Config behavior is maintained for Fast Fetch. SUFFICIENT: 1, INSUFFICIENT: 2, UNKNOWN_NOT_REQUIRED: 3, UNKNOWN: 4, }; /** * Defines valid consent string types passed * in by consent iframe metadata. * @enum {number} */ export const CONSENT_STRING_TYPE = { // Enum value has external dependency for metadata collection. // It is up to the vendor to interpret an undefined CONSENT_STRING_TYPE. TCF_V1: 1, TCF_V2: 2, US_PRIVACY_STRING: 3, GLOBAL_PRIVACY_PLATFORM: 4, };