Sometimes an AdSense unit does not display an ad for a user for any reason. When an AdSense unit does not display an ad, it leaves an unusual amount of space in the content and reduces my ability to monetize those pages, which I find unacceptable.
Formerly much more important problem, but at the age of remarketing AdSense can usually find an ad to display for a user, even if the content of your page does not match a good specific content. But, sometimes, an ad will still not show up, so I always define an alternate ad for my AdSense units.
AdSense offers the ability to specify what you want to show in place of an AdSense unit that does not work. Do not post an ad for any reason when you create an AdSense unit. The drop-down menu gives you the option of deciding whether to show a blank space, a solid color, or a substitution ad when AdSense is not showing. However, you will notice that the choice of the backup announcement option only allows you to enter the URL of the backup announcement that you want to view.
change the default formatting Personally, I use Textmate for Mac.)
Replace AFFILIATE LINK with the URL to which the ad is to be linked. Then replace YOUR IMAGE AD with the URL of the creative you want to display. For example, here is the code I'm using to generate a SEMrush ad as an AdSense ad for the Sugarrae site.
<a href = "https: // sugarrae. com / getit / semrush -adsense "target =" _ top ">
Google recommends to use absolute URLs as I have done in the above example. . Also note that the target = "top" element of the link code must be present or your ad is not displaying properly. You must also ensure that the creative you plan to use for your ad is the same size as the AdSense unit for which you are backing up.
Once you have copied the code into your text editor and modified to include your affiliate link and affiliate banner, you must save the file with a .html extension. Click Save, name the file as you want – I called my semrush-backup-ad.html file – and save it as HTML. On Notepad, you will need to manually enter the .html after the file name when saving. With TextEdit, you can choose to save it as an HTML file in the File Format drop-down list.
Uploading Your HTML File to a Server
Now that you have the HTML file created, you will need to download it to a server. AdSense does not care where you're hosting the file, as long as the file is accessible on the Internet. I uploaded it to the Sugarrae website via FTP (you can see my ad here ). If you do not know how to download an HTML file to your website, you should contact your web host for help.
Adding the Backup Ad to Your AdSense Unit
To add the back up ad in your AdSense unit, sign in to AdSense and click on My Ads. Click the name of the AdSense unit for which you want to specify the backup announcement, not the Change Ad Type option. On the next screen, locate the Backup Announcements field and choose the Show Other Announcements From Another URL option from the drop-down menu.
SID Tracking in your backup ad so that you can determine both the number of clicks generated by the announcement and the announcement of sales. If you hide your affiliate links as I do, you need to make sure to create a new hidden link for the AdSense opt-out ad so you can track clicks – especially useful if the program is Affiliate does not support SID tracking
Unfortunately, the SEMrush affiliate program does not offer the option of adding SID tracking to their links, I'm not sure. so I had to use my general affiliate link in the example above. But I will at least be able to see how many clicks the link generates via my link cloaking plugin, Pretty Link Pro (affiliated).
Test Your AdSense Backup Ad
Since AdSense has made the definition of a backup ad a little complicated, here is where I should give you a link to verify that you have successfully created your backup ad. Unfortunately, Google does not provide a way to test AdSense backup ads, which makes no sense, but again, that's what it is. All you can really do is follow the instructions to the letter and hope for the best.
You can also check the logs of your servers to see if the backup ad you have created is viewed and monitor the number of specific affiliate link clicks you used in the Announcement – provided that you use a SID code for the link or use a unique link via a cloaking plugin that follows the clicks.
NOTE: Adding the backup announcement may take some time to start working in the ad unit.