in my application I have the following code:
<UI:AdControl x:Name="ban2" Grid.Row="1" ApplicationId="xx"
AdUnitId="xx"
HorizontalAlignment="Center"
Height="80"
VerticalAlignment="Center"
Width="480"></UI:AdControl>
When using the test aplicationid and adunitId working properly, but when I go to replace with aplicationid and adunitId of my application created in the dev center no longer displays advertising.
thank you
If you don't publish your app in the store, the Application Id and Adunit Id will do not work.
So I would like to suggest you use test Application Id and AdUnit Id to test when you create your project. if you want to package your project and submit in the store, you just need to replace test value with real value(Apply for in the dashboard).
Normally, if your app is published and available in the store, it takes 1-2 days after that for ads from real units to start serving and ads will show.
Related
I've been able to distinguish between the live build and the test build on my Android app. Everything works perfectly on the test version. I can see the live events and when I go and see the number of clicks for an event, that gets updated too. However, on the live build of my app, I can see the live events but the number of clicks is not being updated. All the events still show empty analytics. What could be wrong?
Amruta from Branch.io here:
Based on your description it looks like your App is still using the test key. If your App has both the Live and Test key added to the Manifest, and you have the debug mode enabled, your App will continue using the Test key. You should make sure that your App is using the Live key.
You can ensure that your app is using the Live key by using a Branch link from the Live version of your App. On clicking on the link, the link parameters received in the callback should have the parameter '+clicked_branch_link: true'.
If the parameter 'clicked_branch_link' is set to false it means that your App is still using the test key.
If you still continue to face issues, I would suggest writing to integrations#branch.io and they can help you resolve any issues you are facing.
I am new on windows phone development and I need scroll number picker (as time picker in Alarm app) as shown in image how can i get it.....
View Image Here
If you just need a list of numbers similar to the TimePicker then populate the same primitive controls that the TimePicker uses. In this case you're look at LoopingSelector, you still need to NuGet/Install the windows phone toolkit.
Use
<phone:PhoneApplicationPage
xmlns:toolkit_primitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit">
<toolkit_primitives:LoopingSelector>
<primitives:LoopingSelector.ItemTemplate>
<DataTemplate>
<!-- design your own square box+text -->
</DataTemplate>
</primitives:LoopingSelector.ItemTemplate>
</toolkit_primitives:LoopingSelector>
For more information:
See TimePickerPage.xaml Source Code
See MSDN Forum on LoopingSelector
OLD Solution
If you're using WP 8.0+ SL then see this SO Post: TimePicker 24h Format. It deals with the Windows Phone Toolkit: TimePicker <toolkit:TimePicker>
Else if you're doing a WP8.1 runtime app just set the ClockIdentifier to 24HourClock.
<TimePicker Header="24HourClock" ClockIdentifier="24HourClock"/>
I have created an advertising for my windows phone 8.1 App, over pubcenter.microsoft.com. To integrate the Ad, I have taken this code:
<UI:AdControl AutoRefreshIntervalInSeconds="60" ApplicationId="8483668c-9049-4aa4-86ff-adf03e5e2cac" AdUnitId="172910" HorizontalAlignment="Left" Height="70" IsAutoRefreshEnabled="True" VerticalAlignment="Top" Width="400" Foreground="White"/>
Unfortunately, the app is mostly shown only after a minute or not at all. I testet this, with available internet connection, in a real device and in a emulator. if this "feature" is intentional, can I use Google AdMob in a Windows Phone 8.1 App?
regards, Cristian
You can use admob as an alternative when pubcenter ads failed. Add a error_occured event handler and place the following code for this event handler. You won't need a adrotator then!
private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.AdErrorEventArgs e)
{
AdControl ad = (AdControl)sender;
Grid grd = (Grid)ad.Parent;
System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
{
AdView bannerAd = new AdView
{
Format = AdFormats.Banner,
AdUnitID = AppSettings.ADMOBAPPID
};
AdRequest adRequest = new AdRequest();
grd.Children.Add(bannerAd);
bannerAd.LoadAd(adRequest);
});
System.Diagnostics.Debug.WriteLine(e.Error.Message);
}
This is explained more comprehensively here
http://www.windowsapptutorials.com/windows-phone/advertising/adding-microsoft-pubcenter-ads-in-windows-phone-8-apps/
It sounds like you're issue is that you were expecting ads to always be shown. With a single ad provider this is hardly ever the case.
To answer your second question, yes you can use AdMob but you will again hit the issue that you won't get adverts displayed all the time.
The solution to this issue is to use multiple advert providers. The simplest way to implement this is with a tool like AdRotator which will make it easier to work with multiple advert providers. It's also recommended to use AdDuplex as an ultimate fallback too as this should always be able to show something.
Hi I am developing an windows store app using Bing Map SDK, but the app doesn't show the map but instead shows stop screen just like it should for unsupported regions even after I updated the HomeRegion to US and Culture to en-US.
<Maps:Map Credentials="<key>" Margin="0,-10,0,10" HomeRegion="US" Culture="en-US" />
</Grid>
Can someone tell me what am I missing here?
Either do this in XAML
HomeRegion="US"
Or in code as
MyMap.HomeRegion = "US";
Here is the list of supported regions in Bing Map.
Try deleting the HomeRegion and Culture attributes. I use the map in my app according to http://timheuer.com/blog/archive/2012/03/06/bing-maps-for-winrt-xaml.aspx and works without a problem
I would like to use Anonymous Pro font in a Windows RT application. I was trying to follow the steps from this thread, but without any success.
This is my try:
<TextBlock Text="{Binding Title}" HorizontalAlignment="Center" FontSize="56"
FontFamily="/Assets/Fonts/Anonymous Pro.ttf"
/>
Instead of Anonymous Pro the default font is used. Actually, it the sample (see the link) the font family is specified, but I'm not sure: should I do it or should not. If I should, which family should be there?
So how to embed custom font in Windows RT application and use it from there?
here you go.. just appened the font name.. blogged about it when i saw you post
http://invokeit.wordpress.com/2012/10/18/embed-use-custom-font-in-windows-8-store-apps-win8dev-winrt/