How to Move AdSense in Drupal

How to Move AdSense in Drupal thumbnail
Placement is important for maximizing advertisement revenue.

People create websites for a variety of reasons. Some are intended for use by a small group of individuals while others are commercial. The main source of revenue for commercial websites is advertising, and one of the leading advertising platforms is Google Adsense.



Content management systems like Drupal make the creation and implementation of website functions easier, including AdSense.



Ads generated by AdSense can be displayed virtually anywhere on a Drupal website you want them to be by pasting the AdSense code in the appropriate section of a page or theme file.

Things You'll Need

  • FTP client
  • Write and read access to website directories
  • Text editor, such as Notepad or Wordpad
Show More

Instructions

    • 1

      Log into your Google AdSense account. Use the AdSense interface to generate AdSense code using whatever parameters you wish.

    • 2

      Highlight and copy the code that you have generated.

    • 3

      Open your FTP client and log into your Drupal website.

    • 4

      Navigate to the directory containing your theme files. In a typical Drupal install, these files are found in the following directory: "/drupal/sites/all/themes"

    • 5

      Locate the theme file in which you would like to place your AdSense ad. Save it to your local computer.

    • 6

      Open the file using a text editor, such as Notepad or Wordpad. Paste the AdSense code wherever in the theme file you would like it to appear. Save the file as the exact same name and file extension as it appeared in the theme directory you downloaded it from.

      You can move the code again at any time by cutting and pasting it to wherever in the theme file you please, or to a different theme file altogether.

    • 7

      Log into your FTP client and navigate to your Themes directory again. Upload the updated theme file you just pasted your AdSense code in, replacing the old version you downloaded. Navigate to any page on your Drupal website that uses the theme file you just entered your AdSense code into. The ads should now appear where you placed them.

Tips & Warnings

  • 1. It may take several minutes to an hour for newly generated Google AdSense codes to render any ads. If the ads aren't appearing, wait several minutes and reload the page.

  • 2. Drupal modules exist that automatically populate your Drupal website with ads using your Google AdSense code. This is helpful if you find adding AdSense code yourself too tedious. However, these modules place the ads in predetermined locations. You will not be able to choose where to place them.

Related Searches:

References

Resources

  • Photo Credit Jupiterimages/Polka Dot/Getty Images

Comments

Related Ads

Featured