Home

Integration Guide

How to place PubDragons ad code on your website

Integration for WordPress
The easiest way to add ads to your WordPress site is using a plugin.

Method 1: Using "Ad Inserter" Plugin (Recommended)

This plugin allows you to place ads exactly where you want them (header, footer, inside posts, sidebar).

1

Install the Plugin

Go to your WordPress Dashboard → Plugins → Add New. Search for "Ad Inserter" and install/activate it.

2

Get your Ad Code

Go to the PubDragons Dashboard → Placements. Copy the code snippet for the ad unit you want to display.

3

Paste Code in Plugin

In WordPress, go to Settings → Ad Inserter. Select a generic block (e.g., Block 1), paste your code, and choose where to display it (e.g., "Before Content", "After Paragraph 3").

4

Save Settings

Click "Save Settings" and clear any caches if you use caching plugins.

Method 2: Using "Insert Headers and Footers"

Best for scripts that need to run globally, like auto-ads or sticky footers.

  1. Install "WPCode" (formerly Insert Headers and Footers) plugin.
  2. Go to Code Snippets → Header & Footer.
  3. Paste your ad code in the Header or Footer section depending on the ad type.
  4. Save changes.

Need help? Contact Support