Code implementation guide
How to paste the ad code in your page
Once you've copied the ad code from your AdSense account, the next step is to paste it in your page’s HTML source code. How you go about this will depend on the tools you use to edit your site.
Many publishers use a design-enhanced HTML editor like Macromedia Dreamweaver (also know as WYSIWYG or "what you see is what you get" software). To ensure your ads work properly, make sure you paste the ad code into the HTML source code of your page using the editor's HTML view or HTML insert function. You might see errors if you paste your ad code into a WYSIWYG view such as a "Design" view. Once you've pasted your code, check for any additional tags inserted by the software or changes in the line breaks, as they might cause your ads not to show correctly.
If you can't find the HTML source code of your page in your editor, please visit the help center or support group for your HTML editing software.
Content management systems (CMS)
If you're using a content management system, check below to see if your CMS has AdSense built in or if it supports a plugin that can help you to implement your AdSense ad code.
Sites with AdSense built in
CMS software with unofficial plugins
The following content management systems (CMS) use third-party plugins to insert AdSense ads on the pages generated by the system. Google does not endorse or support these plugins. However, you can use these plugins as long as the ad code displayed on your page remains unchanged and is not altered by the plugin in any way.
If you have trouble implementing AdSense with a specific content management system, we recommend searching for the name of the CMS (e.g., Drupal, WordPress, etc.) and "AdSense implementation". You can also ask in the forum if other publishers have mastered similar problems, or contact your program provider directly.
Have any questions?
Mark is an AdSense technical expert and the author of this help page. Help him improve this article by leaving feedback below.