I'm trying to insert a Microsoft Advertising on my WP7 app but without success.
Of course i'm registered at pubCenter.
I've put in MainPage.xaml this code:
<UI:AdControl Grid.Row="1" ApplicationId="MY APP ID" AdUnitId="MY UNIT AD" HorizontalAlignment="Left" Height="80" VerticalAlignment="Top" Width="480"/>
Of course i've replaced MY APP ID and MY UNIT AD with my personal codes.
In the top of MainPage.xaml i've added this code:
xmlns:UI="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
In MainPage.xaml.cs i've add this code:
using Microsoft.Advertising.Mobile.UI;
What's missing? What's wrong? App is on the Store but it doesn't show any ads...
You can try this app (it's free) at this link: http://www.windowsphone.com/it-it/store/app/myvodafone/c6a86290-4f69-4fdf-9312-401f93ccb35d
I've just tested the app and the ads are displayed. I guess what happened is your first contact with the concept of fill rate. Basically, putting an ad control in your application doesn't guarantee that ads will be displayed 100% of the time. Depending on the category of the ad unit, the localization of the user, and the period of the year, there may be more apps trying to display ads than actual ads available. In those cases, the ad control won't display anything. The fill rate is the common name for the percentage of times your control has displayed ads. Unfortunately, the administration console of Microsoft PubCenter doesn't display the fill rate yet.
There's a few ways to get a better fill rate: changing the category of your ad unit, or using a special ad control like AdRotator which will automatically switch to another ad provider when there's nothing to display.
Related
I want to display the status of a user.If the user will be online then I have to show green icon on the user profile.If a user will be offline then I have to show grey icon and it might be possible that user will be logged in but not active in that case I have to display orange icon(for the idle user) on the profile.
I have to implement this feature in ASP.NET.
you can do that out of the box using Kentico, first you have to enable Online Users module, to track all the online users also you will have the ability to kick any user for limited amount of time (configurable)
after you do that you can use the code at kentico documentation
https://docs.kentico.com/api10/configuration/users#Users-Checkingifauserisonline
In Kentico 11, (and I presume older versions), there are three DateTime fields on the CMS_Session table, SessionLastActive, SessionLastLogon, and SessionExpires. You can use the API to get online users, (https://docs.kentico.com/api11/configuration/users#Users-Onlineusers), or just do the whole thing including both users and the pertinent DateTimes from a stored procedure, Kentico Query, or any other method used to query the database.
I've made a UWP app, test values are working great but when I download from the store, ads are not showing up (and I've replaced test values with ad unit from dashboard).
<Advt:AdControl ApplicationId="*********"
AdUnitId="******"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Height="120"
Grid.Row="2"/>
There are two reasons could cause the issue that you have mentioned.
The real ID(values with ad unit from dashboard) starts serving in 24h
after your app has been published successfully.
Another reason can be that you have not set the right size for the ad
control, for more please refer to Supported banner ad sizes.
I have a web forms application.
I have integrated the App Insights SDK, I receive the notifications about the application like button click (through Custom Events, Track Event function) on my Azure portal.
How can I get user information like:
What regions/geography the user is logging from, which browser is he/she accessing through... things like that.
Right now, In Azure Portal under Usage--> Users
I get:
No data for 'users' with values of 'Country or region'.
Similarly, no data messages are there for sessions and page views even though for a Custom event (Button click), I am getting the metrics.
Please explain.
Thanks.
How can I get user information like:
What regions/geography the user is logging from, which browser is he/she accessing through... things like that.
According to your description, I do a test to configure the chart under Application Insights > Overview > Metrics Explorer, and select the metrics and group metrics by Browser version or Country or region.
I set Chart type to Grid, and select Users and group by Country or region, the chart looks like this.
In a same way, I configure the chart to display Unique count of Users by Browser version, the chart looks like this.
I get:
No data for 'users' with values of 'Country or region'.
For “No data for 'users'…” issue, please make sure if you add the scripts by hand. And you could check “No data on Page Views, Browsers, Usage” section to troubleshoot no data issue.
i work fine with keytest but my Ad unit ID not show ads. When create Ad units in my account, it generate Ad units Id include 6 characters. but Ad units Id of other account or keytest have 8 characters for Ad Units Id? anyone help me? thanks
first you need to drag add mediator from toolbox to your xaml code ,
then goto solution explorer and right click on project and select ad reference,
then new windows will appear select extension > and check windows phone ad mediator or something option like that.
after above two process goto again in solution explorer and and right click on your project add click on add >> Add connected service, and then select add mediator there.
and new wizard will start to configure your ad unit and id.
after all that , setup add mediator (which will be added by you from tool box) padding and place it where you want .
for more details and codes go to this microsoft documentaion
With the Facebook SDK it seems like they allow you to invite your friends to join the application through the AppRequest section of the SDK. However I don't see anywhere in the SDK where you can reward users for inviting friends. I know this is possible because it's been done so many times, so how it can be done?
For example, lets say:
1. User A invites User B to use the application.
2. User B downloads the application.
3. User A receives 100 coins for inviting User B.
I'm completely lost here, examples using any SDK, regardless of language, would be appreciated.
Since Facebook app invites are based on AppLinks, that is where you need to look for a solution. I will explain this by using an Android example scenario.
When constructing an app invite (using the dialog), you are specifying an AppLinks URL. This URL can be unique to each user that sends out invites, or even to each individual invite. E.g.: https://www.example.com/invite_applink?invite_id=12345. By creating one AppLink url for e.g. each user who invites others, you embed invite-sender attribution (which is what you are saying you want) into your AppLinks URL.
The way the Facebook app figures out how to open your app from the "app invites" section, is by following the AppLinks specification.
This specification states that in the <head> section of the HTML document that lives at https://www.example.com/invite_applink, there has to be appropriate <meta> data that describes how your app can be opened/deep-linked into. One part of that is the al:android:url property, which could be used like this: <meta property="al:android:url" content="example://invite_from_fb?invite_id=12345" />
Observe how the url contains a parameter invite_id=12345, where 12345 is the same value as the one used in the invite_id parameter of the AppLinks URL above.
When the invited user now opens the app from the deep-linking URI example://invite_from_fb?invite_id=12345, the app will be opened from an intent that contains this information.
When your app's Activity opens you can grab the Intent that opened the Activity, and get from it the Uri that was used to open the app: Intent.getData(). More on this on the Android docs on "Allowing other Apps to Start Your Activity"
At this point, the ID that attributes an app invite to a user has made from the sender into the running app of the recipient. Now the app on the recipient's device needs to call your server and let it know which invite_id was used to open it. To avoid that multiple such attributions originate from one user (who may have received invites from multiple people), you could hold off on sending this attribution data until the user has performed some sort of login (e.g. Facebook Login) and you are able to ignore e.g. all attributions after the first one.