Yesterday, I wrote about how to get your application into the marketplace. Today, I’m going to cover how to monetize your trial versions, or your free applications through the use of the advertising control.
Where Do I Get Started?
The place you’re going to want to get started is the Microsoft Advertising pubCenter. They will walk you through getting the SDK, registering your application, and implementing the ads in your application. But, because this is a series on development, I’m going to show you the implementation here, as well.
Adding the Ad Control To Your App
First, you need to GET the control. If you completely skipped the link from my previous paragraph, you haven’t downloaded it. You can get it here:
Once you have added the .DLL to your project, you’ll be able to start adding ad controls to your app. (If you need help getting this assembly into your project, there’s a walkthrough on Day #16: Panorama Control.
Once you’ve got the control available to your project, it’s as simple as any other control. Here’s what it looks like on a XAML page:
As you can see above, there are two required values for an AdControl. AdUnitId, and ApplicationId. You get both of these values by registering your application in the Microsoft Advertising pubCenter, and creating a new Ad Unit.
Using Test Values In Your AdControl
While we’re testing, we shouldn’t use our ACTUAL AdUnitId values, because that would be like illegally clicking on our banner ads on a web page. The AdControl is smart enough to recognize when it’s running in the emulator, and won’t show ads in that case. Instead, you should use the values in my example above. There’s actually 3 different types of test values, depending on what size/shape of ads you want to show. Here’s the whole list:
Ad Type
Ad Model
Size (W x H)
Test ApplicationId
Test AdUnitId
Text Ad
Contextual
480 x 80
test_client
TextAd
XXL Image Banner
Contextual
480 x 80
test_client
Image480_80
XL Image Banner
Contextual
300 x 50
test_client
Image300_50
For my purposes, as you saw above, I am using the 480 x 80 XXL Image Banner. This will take up the bottom 80 pixels of my application’s screen, showing ads from my specific ad unit.
What Is An Ad Unit?
Ad Units are specific “campaigns” that you might want to run. For example, I have an application called “Toothbrush Timer".” It’s meant to show kids how long to brush each region of their mouths. Because I’m expecting parents to put it on the counter, and watch it with their kids as they brush, advertising seems like a perfect way to catch their eye.
The best part about the Ad Units is the ability to define Categories of advertisements to be shown. In my example, I want to show ads that are relevant to parents and their children. Thankfully, there are tons of different ad categories to choose from (there’s 385!), and you can even have multiple categories (up to 3) in one Ad Unit. Here’s a look at the list:
So, once you’ve created some Ad Units in the pubCenter, grab those AdUnitId and ApplicationId values, and plug them into your AdControl. Then your code, fully formatted, should look more like this:
And here’s what the ad looks like in my application:
Finally, Profit.
Just by adding this control to your application (assuming your application is actually downloaded by users), you should start seeing activity in the pubCenter. It will show impressions, click-throughs, and other reporting metrics. The most important number shows up right as you enter the site, though: revenue.
So get started showing ads in your application. This is especially handy when you use ads in conjunction with the IsTrial mode that we talked about on Day #23. Show ads before they’ve paid, and hide them afterwards.
Only 3 more days of this series to go…what’s been your favorite day so far?
Download the Code
This simple example just shows an AdControl on a XAML page. But if you need to see how it’s done, this is definitely the example for you.
This time the effective advertising that commonly use to promote business is SEO, it is also known as the best form of online advertising. You can also use the old style like banner and classified ads but you need to get more visitors and customer so you need to take advantage for the benefits of your business.
This post is Day #28 in a series called the 31 Days of Windows Phone. Yesterday, I wrote about how to get your application into the marketplace. Today, I’m going to cover how to monetize your trial versions, or your free applications through the use of the advertising control.
Cowardice, as distinguished from panic, is almost always simply a lack of ability to suspend the functioning of the imagination. Learning to suspend your imagination and live completely in the very second of the present with no before and no after is the greatest gift a soldier can acquire.
The longer I live the more I see that I am never wrong about anything, and that all the pains that I have so humbly taken to verify my notions have only wasted my time.
There are some things which cannot be learned quickly, and time, which is all we have, must be paid heavily for their acquiring. They are the very simplest things and because it takes a man's life to know them the little new that each man gets from life is very costly in the only heritage he has to leave.
I'm a passionate husband, father, and software developer in Columbus, OH. I work for a small software company located in Redmond, WA, and spend most of my time building apps.
November 6th, 2010 - 21:01
Great post.
November 6th, 2010 - 21:03
This time the effective advertising that commonly use to promote business is SEO, it is also known as the best form of online advertising. You can also use the old style like banner and classified ads but you need to get more visitors and customer so you need to take advantage for the benefits of your business.
November 23rd, 2010 - 14:39
Give yourself something to work toward – constantly.
November 30th, 2010 - 03:55
It's just like Google Adsense for programmers, right?
December 23rd, 2010 - 07:59
I agree, many thanks to the author. Thanks for taking the time to share this,Great blog post. Thanks..
December 23rd, 2010 - 12:10
This post is Day #28 in a series called the 31 Days of Windows Phone. Yesterday, I wrote about how to get your application into the marketplace. Today, I’m going to cover how to monetize your trial versions, or your free applications through the use of the advertising control.
January 5th, 2011 - 02:45
We are here and it is now. Further than that all human knowledge is moonshine.
January 5th, 2011 - 06:09
Our deeds determine us, as much as we determine our deeds.
January 5th, 2011 - 14:47
Life is pleasant. Death is peaceful. It's the transition that's troublesome.
January 5th, 2011 - 15:36
Swindon What will history say Burgoyne History, sir, will tell lies as usual.
January 5th, 2011 - 16:56
Cowardice, as distinguished from panic, is almost always simply a lack of ability to suspend the functioning of the imagination. Learning to suspend your imagination and live completely in the very second of the present with no before and no after is the greatest gift a soldier can acquire.
January 5th, 2011 - 19:28
To someone seeking power, the poorest man is the most useful.
January 5th, 2011 - 19:44
Often, the surest way to convey misinformation is to tell the strict truth.
January 5th, 2011 - 20:26
The roots of education are bitter, but the fruit is sweet.
January 6th, 2011 - 06:13
For centuries, theologians have been explaining the unknowable in terms of the-not-worth-knowing.
January 6th, 2011 - 06:31
There is a single light of science, and to brighten it anywhere is to brighten it everywhere.
January 6th, 2011 - 07:16
Better keep yourself clean and bright you are the window through which you must see the world.
January 6th, 2011 - 07:29
The longer I live the more I see that I am never wrong about anything, and that all the pains that I have so humbly taken to verify my notions have only wasted my time.
January 6th, 2011 - 08:41
There are some things which cannot be learned quickly, and time, which is all we have, must be paid heavily for their acquiring. They are the very simplest things and because it takes a man's life to know them the little new that each man gets from life is very costly in the only heritage he has to leave.
January 6th, 2011 - 12:35
Sooner or later everyone sits down to a banquet of consequences.
October 21st, 2011 - 12:59
I own a health care business and I would like to advertise on cell phone apps that deal with senior health. Where do I begin??
April 20th, 2012 - 05:34
Hi there,
I can’t find any information about the difference in the revenues between the small & the big ad?
Thx in advance for any information :]
July 4th, 2012 - 05:14
Which is certainly only excellent! Cheers