In this tutorial, I'm going to walk you through configuring a group of internal house ads which can deliver revenue but simultaneously pressure Google AdSense to provide higher-paying advertisements.
I do try to participate in the discussions below. If you have a question or topic suggestion for a future episode, please post a comment below or contact me on Twitter @reifman.
What Are House Ads?
Typically, when you a run a website, you'll have more page views than demand from quality advertisers. House ads are what you put in those unbooked spaces. Sometimes, a house ad might link a viewer to actually buy an advertisement on your site. Other times, house ads link to products, services or events that you offer and wish visitors to see.
One of the ways I earn revenue is by filling my unsold inventory with house ads that link to my favorite affiliate programs. As I've mentioned here before, I've been quite impressed with the affiliate offerings of WPEngine and Digital Ocean—I also promote FastMail. All of these services tend to appeal to my readers as well.
Today, I'll walk you through configuring your Google DFP account and your website to compete with AdSense's paid advertisers with your selected house ads.
Integrating Your House Ads
We can implement house ads in a few different ways in Google DFP. For this tutorial, I'm going to create an order for my own company which uses different line items for different ad units and sizes.
Follow along below as I walk you through the various steps. First, let's create the ad units on my website Publishing with WordPress.
Create New Ad Units
Ad units represent the exact areas of your site where you want an ad to appear. They represent specific locations. The first ad I'll create is for the top of the sidebar. Its size is 250x250. Just visit the Google DFP Inventory page and click New Ad Unit:
I'm making the top sidebar ad for square 250 x 250 images.
We'll also create a second ad unit for the sidebar middle at 160x600, using the same process. I wanted to experiment with a small ad near the top and a taller ad down the page. The taller ads generally are more effective, but using the small square ad higher up makes the sidebar a bit more functional for readers, better exposing access to search and recent posts widgets.
Generate Tags for Our Website
Next, on the Inventory page, I chose Generate Tags on the left-hand sidebar. I selected the two ad units planned for my page: Sidebar Top and Sidebar Middle:
Google DFP then runs you through a short wizard:
Configuring the WordPress Theme Header
Using the WordPress theme editor in Appearance > Editor and choosing header.php, I pasted the top global HEAD code above:
Whenever our site loads, this prepares the page to load the group of ads from DFP. Next we need to place the individual ad units in their actual positions.
Placing the DFP Ad Unit Code
For this we use the Appearance > Widgets editor and Text fields:
I created two Text fields, pasting the Sidebar Top into one widget and the Sidebar Middle into another. Then I dragged them into place where I wanted them.
After that, we can begin populating our network of house ads.
Upload Creative Images
I went to the DFP Delivery page and clicked Creatives, then Add Creatives. Separately, I had to access my affiliate banners and click-through URLs so I could upload the images and provide DFP the target URLs:
After repeating this for all the advertisements, DFP showed me All creatives together:
Then it was time to create my company's house order.
Create a New Order
For the new order, I created a new company house advertiser after my consulting arm, Lookahead Consulting. Then I specified a line item for the Sidebar Top 250x250 ads:
Then I experimented with my first technique of outpricing Google AdSense. There are different approaches you can take here.
Line item types and their delivery priorities explains that if you're not interested in revenue from house ads and just want them to fill when there are no paying advertisers, you can use the House type. For me, I just left my Type as Standard to compete with AdSense.
My first experiment was to set up an infinite (for my site) number of clicks (10M) at $1 per click (CPC). I guessed that this would be enough to outprice most AdSense ads for a while. However, I knew I would have to come back and monitor these settings.
For Add Targeting—my favorite mislabeled DFP field (not Ad Targeting, Add Targeting), I specified that this line item placed ads in PubWP Sidebar Top:
After creating a line item order, you have to click it and Approve it. There's not much UX notification about this.
Then, I added my existing creatives. I selected my three 250x250 square ads: two for WP Engine and one for Digital Ocean.
Because I had previously uploaded these creatives for a different company name, I had to make copies a couple of times to get them into the correct new company. You can ignore the (copy) and (copy)(copy) text.
According to Google:
"After you activate a line item, the first impression is delivered within approximately 30 minutes. Once the first impression is delivered, reports are updated (and the line item status will change from "Ready" to "Delivering") within another 30 minutes."
While I was waiting, I repeated the process for the middle sidebar 160x600 ads. For this line item, I priced it to compete with Google AdSense using impressions at $5 CPM.
Review Your Ad Placements
I visited Publishing with WordPress to see if the ads had begun to run. The house ads weren't yet delivering, so Google AdSense ads appeared in both ad units:
Here's a complete look at the sidebar:
Shortly after, image advertisers appeared, but not my house ads:
I've worked with Google DFP enough to know that at this stage you just have to come back in an hour or two. There aren't very good ways to see what's happening.
My favorite DFP UX issue is how it says Ready when it should really say pending 120 minutes or something. Sorry Google engineers, I know not everything is easy—but you're geniuses!
It took a while, but gradually my house ads appeared in Sidebar Top, first Digital Ocean and then WP Engine:
After a little while longer, the right sidebar started rotating middle house ads:
The line item delivery status was a bit behind, first continuing to say only Ready even once the top ads had begun, and then belatedly saying one was delivering. I'm sure by the end of the year, this will say Delivering (2). In the end, it only took an hour.
Over time, I'll expand my ad placement and the inventory of house ads. It will be fun to see if this performs better than my earlier static WordPress placements. I used to use the widgets to place static HTML of my hosted ads. They wouldn't generally rotate or include paid advertising networks like AdSense.
Over time, I'll need to review the pricing with clicks and impressions to see how well they compete with AdSense. I can also add in various affiliate programs and price them accurately against their average return. This way, DFP will help optimize the delivery of the most profitable ads to visitors.
In the next episode, we'll explore Google DFP Reports. Hopefully by then our ads have started running and we have good data to present.
As the series evolves, I'd love to hear more of your feedback about DFP topics you'd like me to explore. Please feel free to post your questions and comments below. You can also contact me on Twitter @reifman. To see other tutorials I've written, browse my Envato Tuts+ instructor page.