Basic Ads

Extensions are powerful modules that may be added to WPtouch Pro to enhance the appearance and performance of the mobile and/or desktop themes. The Basic Ads extension is available as an add-on to your license. To add it to your license, go to http://www.wptouch.com/pricing.


  1. Introduction
  2. Google Adsense
    1. Ads not displaying
  3. Custom Service
  4. Settings
    1. Ads Presentation
    2. Active Pages
  5. Adding Additional Advertising
    1. Footer
    2. Single Posts
    3. In the Header
  6. Google Double Click for Publisher Ads (DFP)


Introduction


Basic Ads allows for the quick inclusion of an ad script from Google Adsense or other ad networks. You can configure on which type of pages the ad displays, and where.


To get started with basic ads, activate the extension from WPtouch Pro > Settings > Extensions > Basic Ads.

For more options and features, like having multiple ads on your pages, or A/B testing, check out our Multi-Ads extension!


Google Adsense


When you select "Google Adsense" as your advertising type, you will be able to enter your Adsense Publisher ID (in the pub-xxxxxxxxxxxxxx format) and Slot ID if you have one.


Ads not displaying

  • Ensure that your publisher ID and slot ID values are correct, and also ensure that they are "active" in your Adsense console.
  • Try switching between synchronous or asynchronous code type.
  • Ensure that "Adsense for mobile content" is enabled in your Google Adsense
  • Select the 320x50 ad unit size when creating a new ad unit in Google AdSense. No other selections are valid for WPtouch Pro.
  • Ensure you adhere to your service provider's terms of service when adding advertising to your sites.


Custom Service


With "Custom" selected, you can paste in HTML and/or JavaScript code from any advertising service. You may also add in your own snippet of HTML if you'd just like to display a static image or any other bit of HTML.



Settings


Ad Presentation


Select where in your mobile pages you'd like the ad to display.

  • In the header
  • Above the page content
  • Below the page content

Active Pages


Select which areas of your website the ad should display on. You can select one, many, or all of: Blog Listings, Single Posts, Static Pages, Taxonomy, Search Results.



Adding Additional Advertising


The Multi-Ads Extension allows you to easily add additional ad units. You may easily include ad units in the header, footer, pre-content, post-content, and mid-content areas.


Below are alternate methods of including additional advertising units in your WPtouch Pro theme.



You can add an additional advertising unit in the footer by going to Appearance > Customize > Footer and then pasting code into the "Custom footer content" field.

Single Posts


You can add an additional advertising unit above or below your post content by editing the posts page template (single.php).


First, create and activate a child theme. You can create a child theme manually or with our Make Child Theme extension.


Once you have your child theme, copy the single.php file from your parent theme's default folder to /wp-content/wptouch-data/themes/YOUR_CHILD_THEME/default/single.php. Then, open that file and add the ad code below the wptouch_the_content template tag to display the ad below the content, or above the wptouch_the_content template tag to display the ad above. Please refer to the screenshot below for an example.

In The Header


You can add an additional ad unit to your website's header by editing the header-bottom.php template file.


First, create and activate a child theme. You can create a child theme manually or with our Make Child Theme extension.


Once you have your child theme, copy the header-bottom.php file from your parent theme's default folder to /wp-content/wptouch-data/themes/YOUR_CHILD_THEME/default/header-bottom.php. Then, open that file and add the ad code above or below the wptouch_advertising_top hook. See the screenshot below for an example.

Google Double Click For Publishers Ads (DFP)


When using DFP advertisements, Google requires that a piece of code they provide be placed in the head section of the website. To accomplish this in WPtouch Pro, begin by creating and activating a child theme. You can create a child theme manually or with our Make Child Theme extension.


Once you have your child theme, copy the header.php file from your parent theme's default folder to /wp-content/wptouch-data/themes/YOUR_CHILD_THEME/default/header.php. Then, open that file and add code that Google provides just before the closing tag.


You may then add the ad code using the "Custom" advertising option in Basic Ads or via the Multi-Ads Extension.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us