zoukankan      html  css  js  c++  java
  • UWP Ad

    1.对于 UWP 应用:使用 Visual Studio 2015 安装 Microsoft Store Services SDK

    2.对于通用 Windows 平台 (UWP) 项目:展开通用 Windows、单击扩展,然后选中适用于 XAML 的 Microsoft Advertising SDK(版本 10.0)旁边的复选框。

    3. 横幅广告的受支持广告大小

    <Page
      x:Class="MyAdFundedWindows10AppXAML.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="using:MyAdFundedWindows10AppXAML"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
      mc:Ignorable="d">
      <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
         <UI:AdControl ApplicationId="3f83fe91-d6be-434d-a0ae-7351c5a997f1"
              AdUnitId="10865270"
               HorizontalAlignment="Left"
               Height="250"
               VerticalAlignment="Top"
               Width="300"/>
      </Grid>
    </Page>

    4.当你使用 AdControl 或 InterstitialAd 在应用中显示广告时,必须指定应用程序 ID 和广告单元 ID。

    5.当你开发应用时,请使用本文中的测试应用程序 ID 和广告单元 ID 值,查看应用在测试期间如何呈现广告

    6.如果你尝试在发布的应用中使用测试值,你的应用不会收到实时广告。

    7.如果你在测试应用中看到测试广告,则说明代码是有效的,并且能够在发布时显示广告(指定应用程序 ID 和广告单元 ID)

    8.应用中显示的是测试广告而非实时广告

    9.Microsoft Advertising 无法验证或找到在应用商店中使用的动态应用程序 ID。 在此情况下,当用户创建了某个广告单元时,它的状态仍然可以为动态(非测试),但会在提出首个广告请求 6 个小时内移动到测试状态。 如果测试应用 10 天内没有提出请求,状态将改回为动态

    提示:

    Ad不要使用边框

    相关信息:

    https://docs.microsoft.com/zh-cn/windows/uwp/monetize/adcontrol-in-xaml-and--net

  • 相关阅读:
    Linux socket本地进程间通信之TCP
    Linux socket本地进程间通信之UDP
    Linux I/O多路转接之select函数
    静态库和动态库的分析
    点云数据 网络
    maskrcnn-benchmark训练注意事项
    redhat7安装maskrcnn-benchmark注意事项
    特征选择
    docker
    可视化
  • 原文地址:https://www.cnblogs.com/androllen/p/6682507.html
Copyright © 2011-2022 走看看