1秒钟后,包含Microsoft Ads的我的网格消失

如何解决1秒钟后,包含Microsoft Ads的我的网格消失

|| 更新 实际上,无需更改代码中的任何内容,它今天就可以正常工作。一夜安眠!我想微软昨天一定在广告服务器方面遇到了问题。无论如何,它现在又可以工作了:-) 1秒钟后,包含广告的我的网格消失了。它确实有效,但现在我只看到白色边框,然后消失了。这是xaml代码,在后面的代码中,我将TestMode设置为true。谁能知道为什么会这样吗?我是xaml的新手,所以我的xaml代码可能有问题吗?
<phone:PhoneApplicationPage xmlns:my=\"clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI\"  
x:Class=\"GeoFlick.MainPage\"
xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"
xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"
xmlns:phone=\"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone\"
xmlns:shell=\"clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone\"
xmlns:d=\"http://schemas.microsoft.com/expression/blend/2008\"
xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\"
mc:Ignorable=\"d\" d:DesignWidth=\"480\" d:DesignHeight=\"696\"
FontFamily=\"{StaticResource PhoneFontFamilyNormal}\"
FontSize=\"{StaticResource PhoneFontSizeNormal}\"
Foreground=\"{StaticResource PhoneForegroundBrush}\"
SupportedOrientations=\"Portrait\" Orientation=\"Portrait\"
shell:SystemTray.IsVisible=\"True\" Loaded=\"PhoneApplicationPage_Loaded\">

<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name=\"LayoutRoot\" Background=\"Transparent\">
    <Grid.RowDefinitions>
        <RowDefinition Height=\"Auto\"/>
        <RowDefinition Height=\"*\"/>
        <RowDefinition Height=\"Auto\"/>
        <RowDefinition Height=\"Auto\"/>
    </Grid.RowDefinitions>
    <Grid.RenderTransform>
        <ScaleTransform x:Name=\"SpinnerScale\" ScaleX=\"1\" ScaleY=\"1\" />
    </Grid.RenderTransform>
    <!--TitlePanel contains the name of the application and page title-->
    <Grid Margin=\"0,5\" Grid.Row=\"0\">

        <TextBlock x:Name=\"ApplicationTitle\" HorizontalAlignment=\"Left\" Text=\"GeoFlick\" Style=\"{StaticResource PhoneTextNormalStyle}\" RenderTransformOrigin=\"0.5,0.5\">
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint=\"0.5,1\" StartPoint=\"0.5,0\">
                    <GradientStop Color=\"#FFFF048B\" Offset=\"0\"/>
                    <GradientStop Color=\"#FFA824B1\" Offset=\"1\"/>
                </LinearGradientBrush>
            </TextBlock.Foreground>
        </TextBlock>

        <TextBlock x:Name=\"ImageLoading\" Margin=\"0,12,0\" TextWrapping=\"NoWrap\" HorizontalAlignment=\"Right\">
            <TextBlock.Foreground>
                <LinearGradientBrush EndPoint=\"0.5,0\">
                    <GradientStop Color=\"#FF434242\" Offset=\"0\"/>
                    <GradientStop Color=\"#FFA9A7A7\" Offset=\"1\"/>
                </LinearGradientBrush>
            </TextBlock.Foreground>
        </TextBlock>

    </Grid>
    <!--ContentPanel - place additional content here-->
    <Grid x:Name=\"ContentPanel\" Grid.Row=\"1\" Margin=\"12,0\">
        <Image x:Name=\"FlickrImage\"/>
        <Grid x:Name=\"spinner\" Background=\"Transparent\" Visibility=\"Collapsed\">
            <Canvas RenderTransformOrigin=\"0.5,0.5\" Width=\"120\" Height=\"120\" Margin=\"161,173,175,264\">
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"20\" Canvas.Top=\"10\" Stretch=\"Fill\" Fill=\"#FFFF048B\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"2.86816\" Canvas.Top=\"29.9581\" Stretch=\"Fill\" Fill=\"#FF0064CE\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"5.03758e-006\" Canvas.Top=\"57.9341\" Stretch=\"Fill\" Fill=\"#FF1973D4\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"12.1203\" Canvas.Top=\"83.3163\" Stretch=\"Fill\" Fill=\"#FF2E7FD4\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"36.5459\" Canvas.Top=\"98.138\" Stretch=\"Fill\" Fill=\"#FF3F86D0\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"64.6723\" Canvas.Top=\"96.8411\" Stretch=\"Fill\" Fill=\"#674588CE\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"87.6176\" Canvas.Top=\"81.2783\" Stretch=\"Fill\" Fill=\"#675E97D4\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"98.165\" Canvas.Top=\"54.414\" Stretch=\"Fill\" Fill=\"#67719FD2\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"92.9838\" Canvas.Top=\"26.9938\" Stretch=\"Fill\" Fill=\"#6782A9D4\" />
                <Ellipse Width=\"21.835\" Height=\"21.862\" Canvas.Left=\"47.2783\" Canvas.Top=\"0.5\" Stretch=\"Fill\" Fill=\"#FFFF048B\" />
                <Canvas.RenderTransform>
                    <RotateTransform x:Name=\"SpinnerRotate\" Angle=\"3\" />
                </Canvas.RenderTransform>
                <Canvas.Triggers>
                    <EventTrigger RoutedEvent=\"ContentControl.Loaded\">
                        <BeginStoryboard>
                            <Storyboard>
                                <DoubleAnimation Storyboard.TargetName=\"SpinnerRotate\" Storyboard.TargetProperty=\"(RotateTransform.Angle)\" From=\"0\" To=\"360\" Duration=\"0:0:01\" RepeatBehavior=\"Forever\" />
                            </Storyboard>
                        </BeginStoryboard>
                    </EventTrigger>
                </Canvas.Triggers>
            </Canvas>
        </Grid>

    </Grid>

    <Grid x:Name=\"ImageInfo\" Grid.Row=\"2\">
        <TextBlock x:Name=\"ImageTitle\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Top\" Margin=\"0,3,0\" Foreground=\"#FF9A9898\" />            
    </Grid>

    <Grid x:Name=\"Ads\" Grid.Row=\"3\" Visibility=\"Visible\">
        <my:AdControl Height=\"80\" Name=\"adControl1\" Width=\"480\" ApplicationId=\"test_client\" AdUnitId=\"TextAd\" AdModel=\"Contextual\" Foreground=\"White\" />
    </Grid>        

</Grid>


<!--Sample code showing usage of ApplicationBar-->
<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible=\"True\" IsMenuEnabled=\"True\">
        <shell:ApplicationBarIconButton IconUri=\"/icons/appbar.sync.rest.png\" Text=\"Replay\" Click=\"ApplicationBarIconButton_Click_1\" />
        <shell:ApplicationBarIconButton IconUri=\"/icons/appbar.feature.settings.rest.png\"  Text=\"Settings\" Click=\"ApplicationBarIconButton_Click\" />
    </shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
    

解决方法

以下是有关SDK的一些信息,可能会有所帮助:   此外,您必须设定   以下属性以开始   接收真实的广告。你不会   接收来自移动广告的真实广告   服务器,如果您未设置以下内容   属性。      ApplicationId提供了应用程序标识符(ApplicationId)   由Microsoft pubCenter提供。请参阅   访问Microsoft pubCenter   和接收广告主题   有关如何获取的信息   ApplicationId。      AdUnitId广告单元标识符(AdUnitId)由Microsoft提供   创建广告单元时的pubCenter。   请参阅访问   Microsoft pubCenter和接收广告   有关如何操作的信息的主题   获取AdUnitId。      TestMode为假     

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-