How to add Google AdSense
4,478 views / 02 Feb 2015 edited
This article discusses how to register Google Adsense, get the code and installation on Perfecto CMSYou will learn how to add contextual advertising from Google Adsense to your project, developed on the content management system Perfecto CMS.
Due to the structure of the template design Perfecto CMS, you can input your ads very easy, even without a minimal knowledge of CSS and HTML, and we will help you with this in this lesson.
Registration on Google AdsenseLogin to Google Adsense and register. If you have a Google account, just login then.
Creating a Google Adsense advertising platform
After successful authentication (registration), go to “My ads” page and click on the “New ad unit”.
Then you can choose and customize any color, size and type of advertising platform. Make the appropriate settings and click “Save and get code”. While choosing the type of code, we recommend you to choose “Asynchronous”. Copy the code from the popup window and temporarily store somewhere, we will need it later.
Setting the code of Google Adsense in Perfecto CMS
hen, you need to log in to the admin panel of your site and go to the section “Template Editor”. Our example demonstrates the statutory advertising block on the left side of the site, therefore we put it in a file index.tpl. You can set the code in any convenient place.
Paste the previously received code after the tag aside, and it appears in the first position on the left block. Now save it. And done!
Congratulations, your ad unit of Google Adsense is enabled and working on Perfecto CMS.