Ad code implementation
Create an ad unit
NEXT: ABOUT CUSTOM-SIZED AD UNITS
To create a new AdSense ad unit
that you can manage within your account, follow the steps below:- Visit the My ads tab.
- In the sidebar, select your product. For example, if you want to display ads on your website, select "Content."
- Click +New ad unit.
- Give your ad unit a name. It’s a good idea to use a unique, descriptive name that will help you find this ad unit later.
- In the “Ad size” section, choose the size of the ads that you’d like to show:
- We suggest that you leave the “Recommended ad sizes” option selected. If you want to view other ad sizes, select a different option from the Showing drop-down.In general, wider ad units perform better. We encourage you to choose one of our recommended ad sizes, which have shown to perform well across a variety of sites. Ad sizes that perform well on mobile are shown with a mobile icon
.
- (Optional) Click Preview if you’d like to see an example of how an ad looks.
- Select your desired ad size.
- We suggest that you leave the “Recommended ad sizes” option selected. If you want to view other ad sizes, select a different option from the Showing drop-down.
- Select which type of ads you’d like to show on your pages from the Ad type drop-down.We highly recommend that you display both text and display ads. By displaying more ad types , you can earn more revenue.
- (Optional) Apply an ad style for your text ads.
- (Optional) Set up a custom channel to track your ad unit.
- From the Backup ads drop-down, choose what you’d like us to show on your page if Google has no targeted ads available. Learn more about backup ads.
- Click Save and get code.
- In the "Ad code" box that opens, leave the code type set to "Asynchronous" (the default), unless you want to use synchronous ad code. Learn more about asynchronous ad code.
- Copy and paste the ad code into the HTML source code of your pages where you'd like ads to appear. If you're not sure how to do this, you might want to review our Code Implementation Guide.Once you've saved your website, ads will appear within a few minutes.
If you need to change the settings of this ad unit in the future, you can edit it from the list of ad units under your My ads tab.
No comments:
Post a Comment