應用程式內廣告In-app ads

使用Monetize > 應用程式內廣告頁面合作夥伴中心來建立和管理 ad 單位:Use the Monetize > In-app ads page in Partner Center to create and manage ad units for:

重要

自 2018 年 10 月 31 日起,新建立的產品不能包含封裝目標 Windows 8.x/Windows Phone 8.x 或更早版本。As of October 31, 2018, newly-created products cannot include packages targeting Windows 8.x/Windows Phone 8.x or earlier. 如需詳細資訊,請參閱此部落格文章For more info, see this blog post.

如需有關如何將這些 SDK 與應用程式整合來顯示廣告的詳細資訊,請參閱使用 Microsoft Advertising SDK 在您的應用程式中顯示廣告For more information about how to integrate these SDKs with your apps to display ads, see Display ads in your app with the Microsoft Advertising SDK.

建立廣告單元Create ad units

若要在您的應用程式中建立橫幅廣告插播式廣告原生廣告的廣告單元:To create an ad unit for a banner ad, interstitial ad, or native ad in your app:

  1. 移至Monetize > 應用程式內廣告在合作夥伴中心頁面,然後按一下建立 ad 單元Go to the Monetize > In-app ads page in Partner Center and click Create ad unit.

  2. [應用程式名稱] 下拉式清單中,選取使用廣告單元所在的應用程式。In the App name drop-down, select the app in which your ad unit will be used.

  3. [廣告單元名稱] 欄位中,輸入廣告單元的名稱。In the Ad unit name field, enter a name for the ad unit. 這可以是任何要用來識別報告用途廣告單元的描述性字串。This can be any descriptive string that you want to use to identify the ad unit for reporting purposes.

  4. [廣告單元類型] 下拉式清單中選取廣告類型。In the Ad unit type drop-down, select the ad type.

    • 如果您在應用程式中顯示橫幅廣告,請選取橫幅If you are showing a banner ad in your app, select Banner.
    • 如果您顯示插入式橫幅廣告的插入式視訊的 ad 應用程式中,選取插入式視訊橫幅插入(請確定選取類型的適當的選項插入式廣告您想要顯示)。If you are showing an interstitial video ad or interstitial banner ad in your app, select Video interstitial or Banner interstitial (be sure to select the appropriate option for the type of interstitial ad you want to show).
    • 如果您顯示原生的 ad 應用程式中,選取原生If you are showing a native ad in your app, select Native.
  5. [裝置系列] 下拉式清單中,選取使用廣告單元所在應用程式的目標裝置系列。In the Device family drop-down, select the device family targeted by the app in which your ad unit will be used. 可用的選項為:UWP (Windows 10)(Windows 8.1) / Tablet PC,或Mobile (Windows Phone 8.x)The available options are: UWP (Windows 10), PC/Tablet (Windows 8.1), or Mobile (Windows Phone 8.x).

  6. 視需要設定下列其他設定:Configure the following additional settings as desired:

    • 如果您為廣告單元選取 [UWP (Windows 10)] 裝置系列,則可以選擇性設定廣告單元的流量分配設定If you select the UWP (Windows 10) device family for the ad unit, you can optionally configure mediation settings for the ad unit.
    • 如果為橫幅廣告單元選取 [電腦/平板電腦 (Windows 8.1)][行動裝置 (Windows Phone 8.x)] 裝置系列,您可以選擇性選取 [在應用程式中顯示社群廣告] 以選擇加入社群廣告If you select the PC/Tablet (Windows 8.1) or Mobile (Windows Phone 8.x) device family for a banner ad unit, you can optionally select Show community ads in your app to opt in to community ads.
  7. 如果您尚未設定所選應用程式的 COPPA 合規性,請選擇 COPPA 合規性區段中的選項。If you haven't yet set the COPPA compliance for the selected app, choose an option in the COPPA compliance section.

  8. 按一下 [建立廣告單元] 。Click Create ad unit.

建立新的 ad 單位之後,它會顯示可用的廣告單元,在資料表中Monetize > 應用程式內廣告頁面。After you create the new ad unit, it appears in the table of available ad units in the Monetize > In-app ads page.

檢閱和編輯廣告單元Review and edit ad units

在您的帳戶中建立一或多個應用程式的 ad 單位之後,這些廣告單元,會出現在底部的資料表Monetize > 應用程式內廣告頁面。After you create ad units for one or more apps in your account, these ad units appear in a table at the bottom of the Monetize > In-app ads page. 此表格會顯示每個廣告單元的 [應用程式識別碼][廣告單元識別碼] ,以及其他資訊。This table displays the Application ID and Ad unit ID for each ad unit, along with other information. 若要在應用程式中顯示廣告,您必須在程式碼中使用下列值。To show ads in your app, you'll need to use these values in your code. 如需詳細資訊,請參閱在您的 App 中設定廣告單元For more information, see Set up ad units in your app.

  • 如果您的 app 顯示橫幅廣告,請將這些值指派給 AdControl 物件的 ApplicationIdAdUnitId 屬性。If your app shows banner ads, assign these values to the ApplicationId and AdUnitId properties of your AdControl object.

  • 如果您的應用程式顯示插播式廣告,請將這些值傳遞給 InterstitialAd 物件的 RequestAd 方法。If your app shows interstitial ads, pass these values to the RequestAd method of your InterstitialAd object.

  • 如果您的應用程式顯示原生的廣告,將這些值來傳遞NativeAdsManagerV2建構函式。If your app shows native ads, pass these values to the NativeAdsManagerV2 constructor.

    重要

    每個廣告單元只能在一個應用程式中使用。You can use each ad unit in only one app. 如果您在多個 app 中使用廣告單元,不會提供廣告給該廣告單元。If you use an ad unit in more than one app, ads will not be served for that ad unit.

    注意

    您可以在單一 App 中使用多個橫幅、插播式廣告及原生廣告控制項。You can use multiple banner, interstitial, and native ad controls in a single app. 在本案例中,我們建議您將不同的廣告單元指派給每個控制項。In this scenario, we recommend that you assign a different ad unit to each control. 針對每個控制項使用不同的廣告單元,可讓您為每個控制項個別進行流量分配設定,並取得不同的報告資料Using different ad units for each control enables you to separately configure the mediation settings and get discrete reporting data for each control. 這也可讓我們的服務更能最佳化提供給應用程式的廣告。This also enables our services to better optimize the ads we serve to your app.

若要編輯 UWP 廣告單元的流量分配設定或使用廣告單元所在應用程式的 COPPA 合規性,請按一下廣告單元名稱。To edit the mediation settings for a UWP ad unit or the COPPA compliance for the app in which the ad unit is used, click the ad unit name.

注意

如果 ad 單元會不有任何活動,過去六個月,我們將它標示為Inactive,並最終將予以移除合作夥伴中心。If an ad unit has no activity for the past six months, we will label it as Inactive, and eventually remove it from Partner Center. 您可以使用篩選,只顯示使用中非使用中廣告單元。You can use filters to show only Active or Inactive ad units. 如果您看到任何您認為不正確標示為非使用中的廣告單元時,請連絡客戶支援If you see any ad units that you believe are inaccurately marked as Inactive, contact support.

流量分配設定Mediation settings

當您建立新的 UWP ad 單元編輯現有的 UWP ad 單元,這一節中使用的選項,來設定ad 中繼ad 單位。When you create a new UWP ad unit or edit an existing UWP ad unit, use the options in this section to configure ad mediation for the ad unit. 廣告流量分配可讓您獲得最大的廣告收益並充分發揮應用程式促銷功能,透過顯示來自多個廣告網路的廣告,包括其他付費廣告網路的廣告,以及 Microsoft 應用程式促銷活動的非營收產生廣告,Ad mediation enables you to maximize your ad revenue and app promotion capabilities by displaying ads from multiple ad networks, including ads from other paid ad networks and non-revenue generating ads for Microsoft app promotion campaigns. 我們負責處理來自您選擇的廣告網路的橫幅廣告要求的流量分配。We take care of mediating banner ad requests from the ad networks you choose. 如果您的 App 中的橫幅廣告、插播式廣告或原生廣告已經與 UWP 廣告單元相關聯,則不需要改變 App 的程式碼就能啟用廣告流量分配。If you have a UWP ad unit that is already associated with a banner, interstitial, or native ad in your app, enabling ad mediation requires no code changes in your app.

注意

當您啟用 UWP 廣告單元的廣告流量分配時,不需要從協力廠商廣告網路取得廣告單元。When you enable ad mediation for a UWP ad unit, you do not need to obtain an ad unit from third-party ad networks. 我們的廣告流量分配服務會自動建立任何必要的協力廠商廣告單元。Our ad mediation service automatically creates any necessary third-party ad units.

若要針對應用程式中的 UWP 廣告單元設定廣告流量分配設定:To configure ad mediation settings for a UWP ad unit in your app:

  1. 建立廣告單元選取現有的廣告單元Create an ad unit or select an existing ad unit.

  2. 應用程式內廣告頁面上,移至中繼設定區段,並設定您的設定。On the In-app ads page, go to the Mediation settings section and configuration your settings.

    • 根據預設,讓 Microsoft 將我的設定最佳化選取核取方塊。By default, the Let Microsoft optimize my settings check box is selected. 建議您使用此選項。We recommend that you use this option. 這個選項會使用機器學習演算法為您的應用程式自動選擇廣告流量分配設定,幫助您在應用程式支援的所有市場獲得最大的廣告收益。This option uses machine-learning algorithms to automatically choose the ad mediation settings for your app to help you maximize your ad revenue across the markets your app supports. 當您使用此選項時,您也可以選擇您想要在組態中使用的 ad 網路。When you use this option, you can also choose the ad networks you want to use in the configuration. 取消核取您不想要的組態,和我們的演算法可確保您的應用程式只從選取的 ad 網路接收廣告的廣告網路。Uncheck the ad networks that you don't want to be part of the configuration and our algorithm will ensure that your app only receives ads from the selected ad networks.
    • 如果您想要選擇您自己的 ad 中繼設定,請選擇修改預設設定If you want to choose your own ad mediation settings, choose Modify default settings.

    注意

    在本節中的其餘步驟,才適用,如果您選擇修改預設設定The remaining steps in this section are only applicable if you choose Modify default settings.

  3. [目標] 下拉式清單中選擇 [基準] ,為您的廣告流量分配設定預設設定。In the Target drop-down, choose Baseline to configure the default configuration for your ad mediation settings. 這個預設設定將適用於所有市場,除了您定義市場特定設定的市場之外。This default configuration will be applied to all markets, except for markets where you define market-specific configurations.

  4. 接著指定要在控制項中顯示付費網路 (依據廣告效果支付收益給您) 和其他廣告網路 (不依據廣告效果支付收益給您) 的廣告比率。Next, specify the ratio of ads you want to show in your control from paid networks (which pay you revenue for impressions) and other ad networks (which do not pay you revenue for impressions). 若要這樣做,請在 [付費廣告網路][其他廣告網路][權重] 欄位中輸入介於 0 到 100 之間的值。To do this, enter a value between 0 and 100 in the Weight fields for Paid ad networks and Other ad networks.

  5. [付費廣告網路] 區段中,選取 [作用中] 欄中每個您要使用的付費網路的核取方塊,然後使用 [排名] 欄中的箭號依排名順序排列網路 (這會指定控制項使用每個網路的頻率)。In the Paid ad networks section, select the check box in the Active column for each paid network you want to use, and then use the arrows in the Rank column to order the networks by rank (this specifies how often each network should be used by your control).

  6. 如果您選取 [橫幅][插播式橫幅] 廣告單元,您會看到名為 [其他廣告網路] 的區段。If you have selected a Banner or Banner interstitial ad unit, you will also see a section named Other ad networks. 此區段中的網路不會依廣告效果讓您賺取收益。The networks in this section do not earn you revenue for ad impressions. 這些網路會從來源顯示廣告,像是應用程式促銷活動。Instead, these networks show ads from sources such as app promotion campaigns.

    [其他廣告網路] 區段中,選取 [作用中] 欄中您要使用的每個其他網路的核取方塊,然後使用 [排名] 欄中的箭號依排名順序排列網路 (這會指定控制項使用每個網路的頻率)。In the Other ad networks section, select the check box in the Active column for each other network you want to use, and then use the arrows in the Rank column to order the networks by rank (this specifies how often each network should be used by your control). 以下是目前支援的其他網路:The following other networks are currently supported:

  7. 對於您要覆寫預設流量分配設定的每個市場,在 [目標] 下拉式清單中選取市場,然後更新廣告網路選取項目和排名。For each market where you want to override the default mediation configuration, select the market in the Target drop-down, and update the ad network selections and ranking.

  8. 按一下 [建立廣告單元] (如果要建立新的廣告單元) 或 [儲存] (如果要編輯現有的廣告單元)。Click Create ad unit (if you are creating a new ad unit) or Save (if you are editing an existing ad unit).

支援的付費廣告網路Supported paid ad networks

下表列出每個廣告類型目前支援的付費網路。The following table lists the paid networks we currently support for each ad type. 請注意,其中一些網路並非所有市場都有提供Note that some of these networks are not available in all markets.

廣告網路Ad network 描述Description 支援的廣告類型Supported ad types
Oath 和 AppNexusOath and AppNexus 這是 Microsoft 管理 ad 提供的網路,透過我們的合作夥伴的廣告 Oath 和 AppNexus 的網路。This is a Microsoft-managed ad network that serves ads through our partner networks, Oath and AppNexus.

注意:Oath 和 AppNexus 一律排名第一次在付費的廣告網路橫幅廣告單元,而且它的清單不能變更為較低的等級,這些類型的廣告。Note: Oath and AppNexus is always ranked first in the Paid ad networks list for banner ad units, and it cannot be changed to a lower ranking for these types of ads.

橫幅、插播式影片Banner, Video interstitial
AppNexus (直接)AppNexus (direct) 選取此選項可提供從廣告AppNexusSelect this option to serve ads from AppNexus. 插播式影片、原生Video interstitial, Native
Microsoft 應用程式安裝廣告Microsoft App install ads 選取此選項可提供 Windows 生態系統中其他為自己的 App 建立促銷廣告活動的開發人員建立的應用程式安裝廣告或應用程式重新佔用廣告。Select this option to serve app install ads or app re-engagement ads created by other developers in the Windows ecosystem who create promotional ad campaigns for their apps. 橫幅、插播式橫幅、原生Banner, Banner interstitial, Native
MSN 內容建議MSN Content Recommendations 選取此選項可從 MSN 內容建議提供廣告。Select this option to serve ads from MSN Content Recommendations. 橫幅、插播式橫幅Banner, Banner interstitial
OutbrainOutbrain 選取此選項可從 Outbrain 提供廣告。Select this option to serve ads from Outbrain. 橫幅、插播式橫幅Banner, Banner interstitial
RevcontentRevcontent 選取此選項可從 Revcontent 提供廣告。Select this option to serve ads from Revcontent. 橫幅、原生Banner, Native
SmaatoSmaato 選取此選項可從 Smaato 提供廣告。Select this option to serve ads from Smaato. 橫幅Banner
smartclipsmartclip 選取此選項可從 smartclip 提供廣告。Select this option to serve ads from smartclip. 插播式影片Video interstitial
SpotXSpotX 選取此選項可從 SpotX 提供廣告。Select this option to serve ads from SpotX. 插播式影片Video interstitial
TaboolaTaboola 選取此選項可從 Taboola 提供廣告。Select this option to serve ads from Taboola. 橫幅Banner
VungleVungle 選取此選項可提供從廣告VungleSelect this option to serve ads from Vungle 插播式影片Video interstitial
UndertoneUndertone 選取此選項可提供從廣告UndertoneSelect this option to serve ads from Undertone. 插入的橫幅Banner interstitial

其他廣告網路Other ad networks

下表列出每個廣告類型目前支援的其他網路。The following table lists the other networks we currently support for each ad type.

廣告網路Ad network 描述Description 支援的廣告類型Supported ad types
Microsoft 社群廣告Microsoft Community ads 如果您建立其中一個應用程式的促銷廣告活動,並將此行銷活動設定為社群廣告活動,則選取此選項可從這個行銷活動顯示廣告。If you create a promotional ad campaign for one of your apps and configure this campaign as a community ad campaign, select this options to show ads from this campaign. 橫幅、插播式橫幅Banner, Banner interstitial
Microsoft 自家廣告Microsoft House ads 如果您建立其中一個應用程式的促銷廣告活動,並將此行銷活動設定為自家廣告活動,則選取此選項可從這個行銷活動顯示廣告。If you create a promotional ad campaign for one of your apps and configure this campaign as a house ad campaign, select this options to show ads from this campaign. 橫幅、插播式橫幅Banner, Banner interstitial

廣告網路支援的市場Supported markets for ad networks

可用的廣告網路會在所有支援的市場中提供廣告,但有下列例外。The available ad networks serve ads in all supported markets, with the following exceptions.

廣告網路Ad network 支援的市場Supported markets
RevcontentRevcontent 巴西、加拿大、法國、德國、義大利、日本、西班牙、英國、美國Brazil, Canada, France, Germany, Italy, Japan, Spain, United Kingdom, United States
SmaatoSmaato 巴西、加拿大、法國、德國、義大利、日本、西班牙、英國、美國Brazil, Canada, France, Germany, Italy, Japan, Spain, United Kingdom, United States
smartclipsmartclip 奧地利、比利時、丹麥、芬蘭、德國、義大利、荷蘭、挪威、瑞典、瑞士Austria, Belgium, Denmark, Finland, Germany, Italy, Netherlands, Norway, Sweden, Switzerland
UndertoneUndertone 美國United States

COPPA 相容性COPPA compliance

當您建立 ad 單位選取現有的 ad 單元,則COPPA 合規性區段會出現在頁面底部,如果至少有 ad 單位的所選應用程式針對已達到一個提交存放區中應用程式的認證程序中的步驟。When you create an ad unit or select an existing ad unit, the COPPA compliance section appears at the bottom of the page if the selected app for the ad unit has at least one submission that has reached the in the Store step in the app certification process.

基於兒童線上隱私權保護法 (「COPPA」) 的立法宗旨,如果您的應用程式是針對 13 歲以下的兒童,您必須選取本區段中的 [這個應用程式是針對 13 歲以下的孩童]For purposes of the Children's Online Privacy Protection Act (“COPPA”), you must select This application is directed at children under the age of 13 in this section if your app is directed at children under the age of 13. 如果您選取此選項,當傳送廣告到您的應用程式時,Microsoft 會採取步驟來停用其行為廣告服務。If you select this option, Microsoft will take steps to disable its behavioral advertising services when delivering advertising into your app.

您選擇的 [COPPA 合規性] 設定會自動套用到所選應用程式的所有廣告單元。The COPPA compliance setting you choose is automatically applied to all ad units for the selected app.

重要

如果您的 app 是針對 13 歲以下的兒童,基於 COPPA 的規範,您必須承擔某些義務。If your app is directed at children under the age of 13, you have certain obligations under COPPA. 如需有關您的義務的詳細資訊,請參閱此頁面For more information on your obligations, please see this page.