Intento integrar anuncios en una aplicación desplegada que ya ha tenido éxito. Sin embargo, no importa lo que haga, parece que no puedo hacer que los anuncios funcionen. He intentado usar tanto la versión de código como la versión de drag n 'drop gui. Ninguno de los cuales puedo llegar a trabajar.Los anuncios de Windows no funcionan
Esto es lo que veo: Cuando se pone en marcha puede parpadear durante una fracción de segundo blanco, donde se supone que el anuncio de ser, pero, no obstante, no se añade. Reconoce que es donde lo coloco, cuando lo coloco sobre un botón, el botón deja de ser cliqueable. Dicho todo esto, no aparece ninguna imagen predeterminada de "publicidad de Microsoft". Instalé el SDK del anuncio y pude mostrar anuncios fácilmente en otro proyecto con facilidad.
Lo que da? Esta es una página muy simple y no puedo entender qué está mal. También parece que no puedo colocar un anuncio en ninguna de las otras páginas ... Tengo los anuncios de Microsoft.Advertising.Mobile y Microsoft.Advertising. Mobile.UI incluido en el proyecto y mi internet está trabajando (no tengo un proyecto abierto al mismo tiempo con anuncios y funciona)
<phone:PhoneApplicationPage
x:Class="AppName.AdPage"
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"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
shell:SystemTray.IsVisible="True"
xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI">
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Margin="12,17,12,28">
<TextBlock x:Name="PageTitle" Text="Thank You!" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Width="334" />
</StackPanel>
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0" Height="569" VerticalAlignment="Top">
<Button Content="Ok" Height="72" HorizontalAlignment="Center" Margin="0,428,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" />
<my:AdControl AdUnitId="Image480_80" ApplicationId="test_client" Height="80" HorizontalAlignment="Left" Margin="-12,458,0,0" Name="adControl1" VerticalAlignment="Top" Width="480" />
</Grid>
</Grid>
</phone:PhoneApplicationPage>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Advertising.Mobile.UI;
using Microsoft.Advertising.Mobile;
namespace Stickey_Note_v._1
{
public partial class AdPage : PhoneApplicationPage
{
public AdPage()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
}
}
}
Usted señor, son más que simplemente excepcionalmente útil :) Resultó que no lo hice incluir lol ir figura –
Hah, agradable. :) Contento de estar en servicio. –
Si desea enlazar datos. https://gist.github.com/1927879 –