הגדרות של מודעות מוגבלות ומזהים מאינטראקציה ישירה (First-Party)
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אם מעדכנים את ההגדרות של Ad Manager מודעות מוגבלות פרוגרמטיות או מזהי צד ראשון למודעות באפליקציות, צריך להשתמש בממשקי ה-API החדשים האלה כדי להתאים את ההגדרות ב-Ad Manager. אם לא משתמשים בממשקי ה-API, יכול להיות ש-PAL יכלול את המזהים במזהה החד-פעמי (nonce) שמשמש בבקשה להצגת מודעה לשרת. עם זאת, ייתכן שמערכת Ad Manager תסיר את האותות על סמך ההגדרות ב-Ad Manager.
ממשקי ה-API הם:
disableLimitedAdsStorage
– משביתה את המזהים לזיהוי תנועה לא חוקית בלבד ואת השימוש באחסון מקומי למודעות מוגבלות. אם עדכנתם את ההגדרה מודעות מוגבלות פרוגרמטיות ב-Ad Manager בקטע ניהול > הגדרות גלובליות, תוכלו להשתמש ב-API הזה כדי להשבית את השימוש באחסון המקומי של מודעות מוגבלות ב-PAL. חשוב לציין שההגדרה הזו לא חלה על מודעות ללא הגבלה.
disableFirstPartyIdentifiers
– משביתה מזהים מאינטראקציה ישירה שמשמשים לבחירת מודעות. אם עדכנתם את ההגדרה מזהי צד ראשון למודעות באפליקציות ב-Ad Manager בקטע ניהול > גלובלי, תוכלו להשתמש ב-API הזה כדי להשבית מזהים כאלה ב-PAL. חשוב לציין שההגדרה הזו לא חלה על השימוש במזהים ובאחסון מקומי לצורך זיהוי תנועה לא חוקית.
בדוגמה הבאה מוגדרים הפרמטרים הבאים:
ConsentSettings consentSettings = ConsentSettings.builder()
.allowStorage(isConsentToStorage)
.build();
GoogleAdManagerSettings adManagerSettings = GoogleAdManagerSettings.builder()
// Add this line if the "Programmatic limited ads" toggle is turned
// off in Ad Manager.
.disableLimitedAdsStorage(true)
// Add this line if the
// "First party identifiers for ads on app" toggle is turned
// off in Ad Manager.
.disableFirstPartyIdentifiers(true)
.build();
nonceLoader = new NonceLoader(this, consentSettings, adManagerSettings);
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת 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\nidentifiers\nfor ads on\napps**,\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/android/api/com/google/ads/interactivemedia/pal/GoogleAdManagerSettings.Builder#public-abstract-googleadmanagersettings.builder-disablelimitedadsstorage-boolean-toggle) - disables invalid traffic detection-only identifiers 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/android/api/com/google/ads/interactivemedia/pal/GoogleAdManagerSettings.Builder#public-abstract-googleadmanagersettings.builder-disablefirstpartyidentifiers-boolean-toggle) - disables first-party identifiers used for ad selection. If you updated the **First party\n identifiers\n for ads on\n apps** 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 identifiers and local storage for invalid traffic detection.\n\nThe following example sets these parameters: \n\n ConsentSettings consentSettings = ConsentSettings.builder()\n .allowStorage(isConsentToStorage)\n .build();\n\n GoogleAdManagerSettings adManagerSettings = GoogleAdManagerSettings.builder()\n // Add this line if the \"Programmatic limited ads\" toggle is turned\n // off in Ad Manager.\n .disableLimitedAdsStorage(true)\n // Add this line if the\n // \"First party identifiers for ads on app\" toggle is turned\n // off in Ad Manager.\n .disableFirstPartyIdentifiers(true)\n .build();\n\n nonceLoader = new NonceLoader(this, consentSettings, adManagerSettings);"]]