Tutorial: How to Install Your Ad Code
After you create an ad zone, the next thing you will need to do is install the ad code so that any ads that you sell can start appearing on your website.
1. Login to your account and go to Publishers » Dashboard by hovering your email address in the top-right corner.
Then click on the "Actions" button for your zone and select Ad Code from the drop-down menu.
2. On this page, you will see the snippets of code that you will need to paste into your website as well as the settings for your zone. For this step, you will copy the STEP 1 Main Code and paste it into your site just below the opening <body> tag of your website. If you are using a Wordpress theme, the opening <body> tag may be included in a file within your theme's files called header.php or something similar.
It is very important that the STEP 1 Main Code is in the proper place in your website and that it appears only once on each page. If the STEP 1 Main Code is not at all present in your site or if it is duplicated in a page, your ads will either not appear at all or will not display properly. You can think of this as the 'engine' that drives your ads. Without this code, your ads will not work.
Below is a screenshot of where the STEP 1 Main Code is placed in a sample site. It is also important to paste the code directly below your opening <body> tag with nothing in between.
3. Next you will paste the STEP 2 Zone Code wherever you want that zone to appear in your website. For example, if you want this ad zone to appear in your sidebar, then you will find the file in your website that contains your sidebar code and paste the code where you want the ad zone to appear. If you are using a Wordpress theme, this file may be an include file within your theme's files called sidebar.php or something similar to that. Or if you want your ad zone to appear in your header, then you may need to open a file called header.php or something similar. It is important that you install this code as soon as you can. Your zone will not be available for sale on your public ad page until a few hours after your ad code is installed properly and tracking impressions.
Below is a screenshot of where the STEP 2 Zone Code is placed in a sample site. You will want to paste this code exactly where you want your ads to show up in your site.
If you are not familiar with your website's files, you may need your web designer to help you install the code. Or if you are using Wordpress, you can try using our Official Wordpress Plugin. We usually prefer that you install our code manually to avoid issues with the plugin in themes that are not programmed accurately, but it is a good option to try if you feel more comfortable installing the code this way.
4. Next you will scroll down the to the "Display settings" area. Here you will make decisions about how your ads will appear within your zone.
- Show Ad Here - When you check this box, you are turning on the option to show placeholder "Advertise Here" banners that will link to your Ad Detail page so potential advertisers visiting your site can find out about your available ad spaces. It is usually best to keep this option on since that is how many potential advertisers will find out about your available ad space.
- Repeat Ad Here - When you check this box, you are turning on the option to show the "Advertise Here" banner for all of the available ads in that zone. So if you have 4 banners in this zone and you check this box, you will see 4 "Advertise Here" banners where those ads have not been sold yet. As ads are sold, those will be replaced by the real ads. By default and without this checked, only 1 "Advertise Here" banner will show in your zone at a time as long as you have at least 1 ad available to purchase. So in this case, if you have 1 banner sold, and this box is not checked, you would see the real banner for the ad that was sold and just 1 "Advertise Here" banner instead of 3 "Advertise Here" banners.
- No Styles - Checking this will remove all pre-defined styles from your ad zone, so if you remove this, you will want to be sure that you ad styles to your own stylesheet for the ads to appear properly on your site.
- Vertical - By default, our system floats ads to the left using CSS. This is the default setting because this is the way that many ads are displayed by our publishers. But in some cases, a publisher does not want an ad to float to the left - primarily if the ads in that zone are in a vertical column or if there is just 1 ad in a zone. It is always best to check this box for an ad zone that contains only 1 ad or that has 1 column of ads displayed vertically. When this setting is turned on, the system removes the 'float:left;' style and your ad(s) should display properly.
5. The "Style Settings" section allows you to edit the CSS for this ad zone if you wish to edit the margins of your ads, etc. You should only edit this area if you are familiar with editing CSS. If you are not familiar with editing CSS, it may be best to have your web professional edit these settings or send a request to our Support Department outlining what it is that you wish to edit so that we can assist you.
- Anchor Style - Editing this field will apply styles to the anchor tag for each ad in this zone. So if you are editing the margins between your ads, you will want to edit that here.
- Image Style - Editing this field will apply styles to just the image of your ad. In most cases, you will leave the CSS in this field the way it is and just apply your CSS to the "Anchor Style" field above.
- Ad Here Style - Editing this field will apply styles to the "Advertise Here" banner that appears within this zone. So if you want this to be a different color than the gray box, you would change that color by editing "background:#e7e7e7" and changing "#e7e7e7" to the color of your choice.
- Ad Here Hover Style - Editing this field will apply styles to the hover state of the "Advertise Here" banner in this zone. So if you want the "Advertise Here" banner to be a different color during the hover state, you would change that color by editing "background:#ddd" and changing "#ddd" to the color of your choice.
I hope this helps as you go through the process of installing your ad code. Please be sure to submit a Support Ticket if you need help at anytime during this process. We are always happy to help. :)
Additional Articles
- Which ad size should I use for my zones?
- Does it cost me money to cashout my earnings?
- Do you send any information on income received through the year for taxes?
- Third Party Developers
- How does the waiting list work?
- I use Smarty Templates, and when I add in the ad code it doesn’t work.
- What are estimated impressions?
- What is the minimum amount I can cashout?
- Can I use AdSense in conjunction with ads from BSA?
- Tutorial: How to Create an Ad Zone
- Tutorial: How to Install Your Ad Code
- Tutorial: How to Price and Place Your Ads
- Why is my pending amount less than the price of the ad?
- One browser is displaying my BSA ads, but the other isn't. Why is that?
- I installed my ad code, but my ad zones aren't showing up on my site.
- My ads keep floating left and I don't want them to. How do I fix this?
- My ads are not floating left like I want them to and are displaying vertically. How do I fix this?
- Do you allow filler ad code from other ad networks such as Adsense?
- I clicked on "Update Public Stats", but my Facebook stats won't update.
- I increased my prices, but some advertisers are still paying the old price. Why is that?
- I tried to decrease the price of my ad zone, but the system wouldn't allow it. How can I do this?
- I am a new Publisher, and I need some assistance on how to price my ads.
- Can you give me some tips on how I can increase my ad sales?
- Is there a way to display a CTR average for my zones on the Ad Detail page?
- I am changing the design of my site. How do I change the sizes of zones with live ads?
- Why aren't my ad zones showing up for sale on my Ad Detail page?
- Why is the Transaction History and Earnings total for the same time frame slightly different?
- I just sold an ad. Why isn't the payment from the sale in my account yet?
- I am selling my website. How does this process work if I have live ads on my website?
- Can I sell Twitter ads even if I do not have a website in your network?
- My Facebook, Twitter and other third-party stats are not correct. How do I update these?
- My website was recently accepted, but I do not see any impressions estimated yet?
- I just approved an ad that was sold, but the ad is not appearing on my site.
- CPM - Getting started
- How do I change my Cashout settings?
- Do you allow in-house ads so that I can display some of my own ads for free?
- How do I customize the "Advertise Here" banner on my site?
- I do not see the CPM ad option in my account. Is this option available for all accounts?
- I plan to discontinue one of my ad zones, but there are live ads still in this zone.
- Can publishers offer ad discounts or introductory offers for their ads?
- I do not understand the meaning of Banners and Max Banners. Can you explain?
- How long will the funds remain in pending for an ad I just sold?
- How can I remove the "Advertise Here" box that appears on my site?
- My ad zone is setup to display four ads, but only one "Advertise Here" box is appearing.
- The screenshot for my website is not appearing. How do I fix this?
- My RSS stats are not updating on my Ad Detail page. How can I fix this?
- The estimated impressions for my site are lower than they appear in Google. Why is this?
- Site Key - What is my Site Key for the WordPress Plugin?
- Do you have a WordPress plugin I can use to publish my ads?
- Why does your ad code checker say that I have my code installed incorrectly?
- DFP Integration
- I received an email from the Google Adsense crawler. What does this mean?