I'm trying to test an application with Bing Ads. I've added the latest version of the Microsoft Advertising SDK and i'm trying this in a Windows Phone 8 Silverlight App?
This is the xaml code:
<UI:AdControl ApplicationId="app_id" AdUnitId="adunit_id"
HorizontalAlignment="Left" Height="80"
Margin="0,488,0,200" Width="480"
IsAutoRefreshEnabled="True" Keywords="Hotels, Travels, Restaurant"/>
But the ad is not getting appeared in the device?
Thanks in advance.
You must Have forgot to add capabilities
The following ID_CAP capabilities must be included in the manifest of the advertising-enabled app.
ID_CAP_IDENTITY_USER
ID_CAP_MEDIALIB_PHOTO
ID_CAP_NETWORKING
ID_CAP_PHONEDIALER
ID_CAP_WEBBROWSERCOMPONENT
try to check internet connection in your device then set the Visible property ,Enable property
<UI:AdControl ApplicationId="app_id" AdUnitId="adunit_id"
HorizontalAlignment="Left" Height="80"
Margin="0,488,0,200" Width="480"
IsAutoRefreshEnabled="True" Visible="visible" IsEnable="True" Keywords="Hotels, Travels, Restaurant"/>
Related
I am using admob in my windows phone 8 app, but it is throwing an exception -
Ad Network Not Available
and it is not showing any banner because of the problem.
Which variable am I missing or is it the SDK issue?
<google:BannerAd
AdUnitID="a1521709bd7f585" VerticalAlignment="Bottom" Height="60" Name="AdControl" IsEnabled="True"
AdFailed="IntubeAdFailedHandler"
AdLeavingApplication="IntubeAdLeavingApplicationHandler"
AdPresentingScreen="IntubeAdPresentingScreenHandler"
AdReceived="IntubeAdReceivedHandler"/>
This can be caused by low ads inventory for your region and Windows Phone platform in AdMob. You can use the TestMode integration settings for Development stage as seen here.
I need my windows 7 Phonegap/Cordova app to load an external page on start and nothing local.
I did find a solution for iOS and android , but i cant really find something solid for windows phone 7.
Any ideas on how i could do that?
Set it via StartPageUri property of CordovaView control (on MainPage.xaml), for example
<my:CordovaView HorizontalAlignment="Stretch"
StartPageUri = "http://mydomain/mypage.html"
Margin="0,0,0,0"
Name="PGView"
VerticalAlignment="Stretch" />
I am having some issue with AdControl SDK(6.1.320.0) for Windows Phone, and wondering if anybody else is having the issue here. My problem is that AdControl is not displaying test ads in emulator and on device too. I tested on multiple machines, and even created a new test project to try it out.
This is my XAML code:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<my:AdControl AdUnitId="Image480_80" ApplicationId="test_client" Height="80" HorizontalAlignment="Left" Margin="-34,118,0,0" Name="adControl1" VerticalAlignment="Top" Width="540" />
</Grid>
This is what I did so far:
Added erroroccured event of the ad control, and printed the error. it showed "HTTP error status code: NotFound (404)"
I checked all capabilities in the manifest. it contains all capabilities because its the default test project.
then i tried the same on my work pc, which didnt have Windows Phone SDK and AD SDK before. Its not working there either.
then i decompiled Ad SDK for Silverlight assembly, and found the URL of production and testing server.
AdPlacement.ServerUrl = "https://mobileads.msn.com/v3/Delivery/Placement";
AdPlacement.TestServerUrl = "https://mobileads-test.msn.com/v3/Delivery/Placement";
The test server url is not connecting at all. I am using VS2010 ultimate on a Windows 7 x64 ultimate machine.
Any other idea? I contacted psupport AT microsoft DOT com as well, yet to get their reply
After couple of emails with MS Ad center support, they could reproduce the issue in-house when trying to connect from outside network. They fixed the issue this afternoon. Its working without any code change from my side. The problem was the ad server that serves test ads "https://mobileads-test.msn.com/v3/Delivery/Placement was not reachable from outside MS network!
I personally never understood the need for test mode. I never use test mode.. just set the correct config for application / ad unit and thats it.
my xaml:
<:Interaction.Triggers>
<:EventTrigger EventName="SelectionChanged">
<:InvokeCommandAction
Command="{Binding HelloCommand}"
CommandParameter="{Binding ElementName=List}" />
</:EventTrigger>
<:Interaction.Triggers>
and I get an exception
The property 'Command' was not found in type 'InvokeCommandAction'.
I just came cross with this issue after I accidentally uninstalled
Microsoft Expression Blend SDK for Windows Phone OS 7.1
This behaivor InvokeCommandAction is included in this SDK only, not the previous Blend SDK for Windows Phone 7.
You will need to download and install Windows Phone SDK 7.1, and this Blend SDK 7.1 will be automatically included in the installation.
Hope this helps! :)
The Command property isn't present in WP7, even though InvokeCommandAction is. You may want to look at using EventToCommand from MVVM Light to do what you're trying to do.
I'm new in wp 7 development. So I might be doing something wrong. I tried to use WebBrowser in my first XAML code:-
<phone:WebBrowser HorizontalAlignment="Left" Margin="12,0,0,2" Name="wb" VerticalAlignment="Bottom" Background="Black" Height="456" Width="444" IsScriptEnabled="True" />
In the code binding by C# as in code:-
private void onClick(object sender, RoutedEventArgs e)
{
wb.Navigate(new Uri("http://www.google.com", UriKind.Absolute));
MessageBox.Show("Completed.");
}
It doesn't work it only shows a white box on the place of webBrowser control. Also it doesn't throw any exception. It just silently execute the code. I checked quite a many example in internet. Unfortunately none of the worked for me. I guess I might be missing some initial steps. For instance I tried exactly as it mentioned here:-
http://www.c-sharpcorner.com/UploadFile/raj1979/5860/
I tried both 7.0 and 7.1. It is same result for me. could anybody show me how to make webBrowser work? Thanks in advance.
There seems to be an issue with web browsing on the beta of the WP7 Mango tools. I'm able to reproduce your error exactly, and the emulator's native IE browser won't allow me to hit any web sites, either. Can you confirm that you're unable to hit Bing or Google from the native web browser?
Here's a thread from another developer who is experiencing the same issue.