指定目標

本指南說明如何為廣告請求提供指定目標資訊。

事前準備

請先設定 Google Mobile Ads Unity Plugin,再繼續操作。

請求設定

RequestConfiguration 物件會收集每個廣告請求的全域設定,並由 MobileAds.SetRequestConfiguration() 套用。

MobileAds.SetRequestConfiguration(requestConfiguration);

為確保所有廣告請求都套用請求設定變更,請先指定請求設定,再初始化 SDK。

設定年齡處理方式

為協助您遵循兒童與青少年適用的相關隱私權法規,Google Mobile Ads Unity Plugin 提供了年齡處理設定。您可以設定年齡處理方式,指定 Google Mobile Ads Unity Plugin 是否應針對兒童、青少年或未指定年齡套用特定的廣告放送保護措施。

您可以在 RequestConfiguration 物件上,使用 AgeRestrictedTreatment 屬性設定年齡處理方式。

下列範例說明如何為廣告請求設定兒童年齡處理方式:

RequestConfiguration requestConfiguration = new RequestConfiguration
{
    // Indicate that ad requests should have child age treatment.
    AgeRestrictedTreatment = AgeRestrictedTreatment.Child
};
MobileAds.SetRequestConfiguration(requestConfiguration);

如要指定青少年或未指定年齡對象的處理方式,請將 AgeRestrictedTreatment.Child 設定替換為下列內容:

  • AgeRestrictedTreatment.Teen
  • AgeRestrictedTreatment.Unspecified

啟用這項設定後,Google Mobile Ads Unity Plugin 會在廣告請求中加入 tfat 參數。請諮詢法律顧問,根據您應盡的法律與法規義務,決定要對使用者採取的年齡處理方式。詳情請參閱「為廣告請求設定年齡處理標記」。

從 TFCD 和 TFUA 遷移至年齡處理設定

年齡處理設定將取代已淘汰的 TagForChildDirectedTreatment (TFCD) 和 TagForUnderAgeOfConsent (TFUA) 屬性。

下表列出 TFCD 和 TFUA 設定,以及對應的年齡處理方式:

TFCD

TFCD 年齡處理方式
TagForChildDirectedTreatment.True AgeRestrictedTreatment.Child
TagForChildDirectedTreatment.False AgeRestrictedTreatment.Unspecified
TagForChildDirectedTreatment.Unspecified AgeRestrictedTreatment.Unspecified
未指派任何值 AgeRestrictedTreatment.Unspecified
沒有對應項目 AgeRestrictedTreatment.Teen

TFUA

TFUA 年齡處理方式
TagForUnderAgeOfConsent.True AgeRestrictedTreatment.Child
TagForUnderAgeOfConsent.False AgeRestrictedTreatment.Unspecified
TagForUnderAgeOfConsent.Unspecified AgeRestrictedTreatment.Unspecified
未指派任何值 AgeRestrictedTreatment.Unspecified
沒有對應項目 AgeRestrictedTreatment.Teen

瞭解年齡處理設定與 TFCD 和 TFUA 的互動

若同時設定年齡處理方式與 TFCD 或 TFUA,Google 將套用最嚴格的處理方式。

透過中介服務轉送年齡處理設定

如果您使用 Google Mobile Ads Unity Plugin 設定年齡處理方式,中介服務轉接程式會將年齡處理標記信號,轉送至整合的第三方廣告來源。

請參閱下表,瞭解哪些中介服務轉接程式版本,支援將年齡限制處理標記信號轉送至整合的第三方廣告來源:

中介服務轉接程式名稱 最低支援版本
AppLovin 8.7.4
BidMachine 1.4.2
Bigo 1.1.0
Chartboost 4.13.0
DTExchange (Fyber) 3.5.10
i-mobile 1.3.13
InMobi 5.3.0
IronSource 4.5.3
Liftoff Monetize (Vungle) 5.7.5
LY (Line) 2.1.1
maio 3.1.9
Meta (Facebook) 3.18.7
Mintegral 2.2.3
Moloco 3.8.0
MyTarget 3.39.0
Pangle 7.0.0
PubMatic 2.1.3

兒童導向內容設定

根據兒童網路隱私保護法 (COPPA),系統提供「兒童導向內容標記」設定。

設定此標記,即表示您確認這項通知正確無誤,且您有權代表應用程式擁有者採取行動;同時您也瞭解如果濫用這項設定,可能導致 Google 帳戶遭到終止。

應用程式開發人員可以在傳送廣告請求時,指明是否希望 Google 將內容標為兒童導向。如果希望 Google 將內容視為兒童導向,Google Mobile Ads Unity Plugin 就會採取相關行動,對廣告請求停用「按照興趣顯示廣告」(IBA) 功能和再行銷廣告。這項設定可透過 RequestConfiguration.TagForChildDirectedTreatment 搭配所有版本的 Google Play 服務 SDK 使用:

  • 將 TagForChildDirectedTreatment 設為 TagForChildDirectedTreatment.True,即表示要依據 COPPA 將內容視為兒童導向。如此一來,系統便不會傳送 Android 廣告 ID (AAID)。

  • 將 TagForChildDirectedTreatment 設為 TagForChildDirectedTreatment.False,即表示不要依據 COPPA 將內容視為兒童導向。

  • 如果不想在廣告請求中指明應如何依據 COPPA 處理內容,請將 TagForChildDirectedTreatment 設為 null。

以下示範如何指明依照 COPPA 將內容標為兒童導向。

RequestConfiguration requestConfiguration = new RequestConfiguration
{
    TagForChildDirectedTreatment = TagForChildDirectedTreatment.True
};
MobileAds.SetRequestConfiguration(requestConfiguration);

設定此標記,代表您保證提供的資訊屬實,而且您有權代表應用程式擁有者行事。您也明白,濫用此設定可能導致 Google 帳戶遭到終止。

針對未滿規定年齡的歐洲經濟區使用者,您可以在廣告請求中加上相關處理標記。這項功能是為協助發布商遵守《一般資料保護規則》(GDPR)。根據 GDPR 規定,您可能還有其他法律義務。建議參考歐盟官方指引,並諮詢您的法律顧問。Google 提供適用工具是協助發布商遵守規定,而非讓發布商濫用來規避法定義務。

進一步瞭解 GDPR 對發布商的影響。

使用這項功能時,廣告請求會包含歐洲使用者適用的未滿規定年齡標記 (TFUA) 參數。這個參數會針對特定廣告請求,停用個人化廣告功能 (包括再行銷),並停止向第三方廣告供應商 (例如廣告評估像素和第三方廣告伺服器) 提出其他請求。

就像兒童導向內容設定,指定 TFUA 參數時,可以使用 RequestConfiguration 中的方法 TagForUnderAgeOfConsent,並有下列選項:

  • 將 TagForUnderAgeOfConsent 設為 TagForUnderAgeOfConsent.True,即表示您希望廣告請求對歐洲經濟區 (EEA) 未滿規定年齡的使用者,採取相應措施。如此一來,系統便不會傳送 Android 廣告 ID (AAID)。

  • 將 TagForUnderAgeOfConsent 設為 TagForUnderAgeOfConsent.False,即表示您「不希望」廣告請求對歐洲經濟區 (EEA) 未滿規定年齡的使用者,採取相應措施。

  • 將 TagForUnderAgeOfConsent 設為 null,則表示不指定廣告請求是否應對歐洲經濟區 (EEA) 未滿規定年齡的使用者,採取相應措施。

以下示範如何在廣告請求中表明有意加入 TFUA:

RequestConfiguration requestConfiguration = new RequestConfiguration
{
    TagForUnderAgeOfConsent = TagForUnderAgeOfConsent.True
};
MobileAds.SetRequestConfiguration(requestConfiguration);

用來啟用兒童導向設定的標記和 TagForUnderAgeOfConsent 不應同時設為 true,否則將優先採用兒童導向內容設定。

篩選廣告內容

為遵守 Google Play「內容不當的廣告政策」(涵蓋廣告中的相關優惠),應用程式中的所有廣告與相關優惠都須符合該應用程式的內容分級。即使應用程式內容已符合 Google Play 政策,廣告及優惠亦須遵守相關規定。

您可利用「廣告內容分級上限」這類工具,進一步掌控向使用者放送的廣告內容。並設定內容分級上限,以利遵守平台政策。

應用程式可以使用 MaxAdContentRating 欄位,設定廣告請求的廣告內容分級上限。完成這項設定後,AdMob 將不會傳回超過指定分級上限的廣告。

這項聯播網額外資訊可能的值取決於數位內容標籤分類,且須為下列任一字串:

  • MaxAdContentRating.G
  • MaxAdContentRating.PG
  • MaxAdContentRating.T
  • MaxAdContentRating.MA

以下範例演示如何設定 RequestConfiguration 物件,指定傳回廣告素材時,所對應的數位內容標籤不得高於 G:

RequestConfiguration requestConfiguration = new RequestConfiguration
{
    MaxAdContentRating = MaxAdContentRating.G
};
MobileAds.SetRequestConfiguration(requestConfiguration);

進一步瞭解如何設定個別廣告請求的內容分級上限。

廣告請求

AdManagerAdRequest 物件會收集指定目標資訊,並與廣告請求一併傳送。

自訂指定

您可以透過 AdManagerAdRequest.CustomTargeting 屬性傳遞自訂鍵/值組合,指定 Google Ad Manager 廣告活動委刊項:

以下範例演示如何將自訂指定目標年齡設為 25 並傳遞:

// Example: Pass custom targeting "age=25".
AdManagerAdRequest newRequest = new AdManagerAdRequest
{
    CustomTargeting = new Dictionary<string, string>
    {
        { "age", "25" }
    }
};

以下範例演示如何將指定目標設為 24 至 26 歲的使用者:

AdManagerAdRequest newRequest = new AdManagerAdRequest
{
    CustomTargeting = new Dictionary<string, string>
    {
        { "age", "24, 25, 26" }
    }
};

類別排除

如要在請求中新增版位層級的排除類別,請使用 AdManagerAdRequest CategoryExclusions 欄位:

AdManagerAdRequest newRequest = new AdManagerAdRequest
{
    CategoryExclusions = new HashSet<string>
    {
        "automobile",
        "boat"
    }
};

發布商提供的 ID

您可以設定發布商提供的 ID (PPID),跨裝置管理廣告放送方式,例如指定展示頻率上限、區隔目標對象及指定目標、安排廣告依序輪播,以及採取依目標對象調整的控制措施。

以下範例演示如何設定 PPID:

AdManagerAdRequest newRequest = new AdManagerAdRequest
{
    PublisherProvidedId = "AB123456789"
};

發布商提供的信號

您可以在廣告請求中,以發布商提供的信號 (PPS) 形式傳送目標對象和比對內容資料。只要使用 PPS,就能透過標準分類,在所有交易類型中向出價方傳達目標對象特徵,如此便能運用使用者資料提升程式輔助營利成效,而不必提供使用者 ID。目標對象特徵可包括行為與興趣資料 (IAB 目標對象分類 1.1 版),以及比對內容資料 (IAB 內容分類 2.2 版)。

以下範例演示如何設定目標對象區隔:

AdManagerAdRequest newRequest = new AdManagerAdRequest
{
    Extras = new Dictionary<string, string>
    {
        // Set the demographic to an audience with an "Age Range" of 30-34
        // and an interest in mergers and acquisitions.
        { "IAB_AUDIENCE_1_1", "1, 2, 3, 4, 5" },
        // Set the content to sedan, station wagon and SUV automotive values.
        { "IAB_AUDIENCE_2_2", "6, 7, 8, 9, 10" }
    }
};