AdControl SDK Version 6.1.320.0 is not serving test ads - windows-phone-7

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.

Related

Xamarin Community Toolkit MediaElement not showing an Playback controls or play the video in the source UWP

Updated - This issue only happens on UWP - Works fine on Android haven't tested it on IOS. I would assume it would work just as fine. The issue is with Xamarin.Community.Toolkit not working with UWP
I've just started learning Xamarin for App development. I'm mostly running UWP for testing as emulators slow down my machine. After researching the best tool to play videos using Xamarin I found the Xamarin Community Toolkit. Followed the basic steps required to get MediaElement on screen and added basic properties to it.
I got the Xamarin tutorial basic video used in a tutorial inside the source. I know it works because you can copy the link and paste it into a browser and you'll get it playing.
After messing around with different versions I can't get this to work. No controls want to show up either nor the video itself. I have run out of ideas please someone HELP.
Running a blank template for this practice Hello World Project.
Using all of the latest versions possible. Project was created 20/09/2022 So I would assume everything latest version.
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
x:Class="HelloWorldXamarin.MainPage"
Title="This is a Hello World Practice Project">
<xct:MediaElement Source="https://sec.ch9.ms/ch9/5d93/a1eab4bf-3288-4faf-81c4-294402a85d93/XamarinShow_mid.mp4"
BackgroundColor="LightBlue"
HeightRequest="300"
VerticalOptions="FillAndExpand"
ShowsPlaybackControls="True"
AutoPlay="True"/>
This is what I get on my screen.
Unfortunately, the situation you describe is actually a bug for UWP, and you can check this link.
By the way, I test the code you provided. But It doesn't matter which version I change Xamarin Community Toolkit to.

Adcontrol added in my application not appearing in the device?

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"/>

AdMob not working in windows phone 8

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.

Using PhoneGap/Cordova on windows phone 7 with external URL

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" />

how to navigate a simple web link by windows phone mango 7.1/7.0 WebBrowser control

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.

Resources