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.
Related
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"/>
I have a free windows phone app and I want to generate revenue from advertising. I choose google admob to do this task, but when I add my app to admob system, there is no choice for windows phone app. There is only choice for android and iOS. I know that the google admob has the sdk for windows phone 8 but how can I register my app to get Ad ID?
You can use the "unit ID" in your application as a Ad ID.
// "MY_AD_UNIT_ID" with your interstitial Ad unit id.
private InterstitialAd objInterstitialAd;
objInterstitialAd= new objInterstitialAd("MY_AD_UNIT_ID");
Here is the useful links for the same:
Register your app
Create an ad unit
Hope it helps
Admob doesnot support ad units for Windows phone in some countries. Thats why, it is not showing that option.
PS: not in India as well.
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 developing a mobile webpage for windows phone 7.
Please suggest me any emulator/simulator to test the page which occupies less memory, i try to install windows official emulator with the windows phone SDK, since it needs more system space, i dropped that plan.
is there any other alternative way to test the webpage in windows phone-7 browser?
Thanks in Advance.
Test it on IE. If it works on IE it will work on mobile. For the mobile related specs you need to get hold of the emulator in the SDK or get a mobile phone device.
i hope this page will be useful for you
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402563%28v=vs.92%29.aspx
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.