मैं पहले से ही सफल तैनात ऐप में विज्ञापनों को एकीकृत करने की कोशिश कर रहा हूं। हालांकि कोई फर्क नहीं पड़ता कि मैं क्या करता हूं, मुझे लगता है कि विज्ञापन काम नहीं कर रहे हैं। मैंने कोड संस्करण और ड्रैग एन 'ड्रॉप gui संस्करण दोनों का उपयोग करने का प्रयास किया है। न तो मैं काम करने के लिए मिल सकता है।विंडोज फोन विज्ञापन काम नहीं कर रहे हैं
यह वही है जो मैं देखता हूं: जब यह शुरू होता है तो यह एक दूसरे भाग के लिए फ्लैश हो सकता है, जहां विज्ञापन होना चाहिए, लेकिन कोई भी कम नहीं, कोई भी नहीं जोड़ता है। यह पहचानता है कि यह वह जगह है जहां मैं इसे रखता हूं, जब मैं इसे एक बटन पर रखता हूं, तो बटन अनजान हो जाता है। सभी कहा जा रहा है, कोई डिफ़ॉल्ट "माइक्रोसॉफ्ट विज्ञापन" छवि पॉप अप नहीं है। मैंने विज्ञापन एसडीके स्थापित किया है और विज्ञापनों को आसानी से अन्य परियोजनाओं में प्रदर्शित करने में सक्षम रहा है।
क्या देता है? यह बहुत ही सरल पृष्ठ है और मैं यह नहीं समझ सकता कि क्या गलत है। ऐसा लगता है कि मैं किसी भी अन्य पृष्ठों पर विज्ञापन नहीं डाल सकता ... मेरे पास माइक्रोसॉफ्ट है। विज्ञापन। मोबाइल और माइक्रोसॉफ्ट। विज्ञापन। Mobile.UI परियोजना में शामिल है और मेरे इंटरनेट (मैं एक परियोजना विज्ञापनों के साथ एक ही समय में खुला है और यह काम करता है)
<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));
}
}
}
के स्थान पर एक डिफ़ॉल्ट छवि प्रदर्शित करने के लिए क्रेडेंशियल्स (चाहिए), सर, केवल असाधारण रूप से सहायक से अधिक हैं :) यह पता चला कि मैंने नहीं किया <क्षमता नाम = "ID_CAP_NETWORKING" /> lol go figure –
हां, अच्छा शामिल करें। :) सेवा का होकर ख़ुशी है। –
यदि आप डेटाबेस बनाना चाहते हैं। https://gist.github.com/1927879 –