Ad Inserter Common Settings

1. Settings for ad before the first paragraph on all posts

  • Automatic Insertion: Before Paragraph
  • Posts checked, other pages unchecked
  • Paragraph number: 1

ad inserter settings 1


2. Settings for ad wrapped with text of the third paragraph on all posts

  • Automatic Insertion: Before Paragraph
  • Posts checked, other pages unchecked
  • Block Alignment and Style: Float Left
  • Paragraph number: 3

ad inserter settings 2


3. Settings for ads on AMP pages

The following AMP plugins have been tested with Ad Inserter:

Normally the code will not be inserted on AMP pages. There are two settings that can be used to insert code on AMP pages:

1. AMP pages checkbox in Misc / Insertion section - If checked it enables insertion also on AMP pages. Use this approach only if you need to insert the same code on normal and AMP pages. To insert different codes on AMP pages use [ADINSERTER AMP] separator as described below.

ad inserter settings 3c

2. Separate the codes with [ADINSERTER AMP] separator - the code above the separator will be inserted on normal pages, the code below the separator will be inserted on AMP pages. This separator can be used also for Header and Footer code.

Check also AdSense guide to creating AMP-compatible ad code

Example for AdSense ads on AMP pages:

ad inserter settings 3

Put AMP head script in the Header code block, use [ADINSERTER AMP] separator (the code above the separator will be inserted on normal pages, the code below the separator will be inserted on AMP pages), and enable header code (button next to PHP button).

ad inserter settings 3b


4. Settings for centered ad in the middle of post paragraphs

  • Automatic Insertion: Before Paragraph
  • Posts checked, other pages unchecked
  • Block Alignment and Style: Center
  • Paragraph number: 0.5

ad inserter settings 4


5. Settings for ad above post excerpts on the Insurance category page

  • Automatic Insertion: Before Post
  • Category pages checked, other pages unchecked
  • Click Lists button to display lists
  • Categories: Insurance, White List checked

ad inserter settings 5


6. Settings for ad above the first and third post excerpts on the homepage

  • Automatic Insertion: Before Excerpt
  • Homepage checked, other pages unchecked
  • Filter: 1, 3

ad inserter settings 6


7. Settings for Amazon Native Shopping Ads

  • Automatic Insertion: After Content
  • Posts checked, other page types unchecked

ad inserter settings 10

Sign in to Amazon Associates, go to Widgets/Widget Source, choose ad type and set parameters. For titles and search terms use tags. For example, the code below would display amazon products related to the post tags.

<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "true";
amzn_assoc_tracking_id = "ad-inserter-20";
amzn_assoc_search_bar_position = "top";
amzn_assoc_ad_mode = "search";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "Search Results from Amazon";
amzn_assoc_default_search_phrase = "{smart_tag}";
amzn_assoc_default_category = "All";
amzn_assoc_linkid = "cf1873f027a57f63cede634cfd444bea";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>

Use your own tracking id! Please note {smart_tag} as default search phrase. This makes this widget contextual. It will show products related to the WordPress tags for this post (make sure you set them). You can also try with {tag}, {short_title}, {category} or {short_category}. For more options check options for code blocks.

This is how Amazon Native Shopping Ads look like

 


8. Settings for ad above the post excerpts on the Cars tag page

  • Automatic Insertion: Before Post
  • Archive pages checked, other pages unchecked
  • Click Lists button to display lists
  • Tags: Cars, White List checked

ad inserter settings 7


9. Settings for ad before the second paragraph on all posts, but on the homepage only three ads in the first three post

  • Automatic Insertion: Before Paragraph
  • Posts checked, Homepage checked, other pages unchecked
  • Paragraph number: 2
  • Filter: 1, 2, 3 (in some cases 2, 4, 6 - depends on the theme and needs some testing, use debugging functions)

PLEASE NOTE: In most cases you should enable each code block ONLY either on single pages or on blog pages. DO NOT enable both unless you are absolutely sure this is what you need and it works fine with your theme. This example would work only with themes that show posts on homepage. Only position Before/After Post is normally available on all page types.

ad inserter settings 8


10. Settings for ads on homepage between posts 1, 4 and 7 but only on phone

  • Automatic Insertion: Between posts
  • Homepage checked, other pages unchecked
  • Filter: 1, 4, 7 (depends on the theme and needs some testing, use debugging functions)
  • Client-side detection: checked, Phone checked (if you are not using caching use server-side device detection instead, check also device detection)

ad inserter settings 9


11. Settings for ad between the second, third and fourth comment on posts

  • Automatic Insertion: Between Comments
  • Posts checked, other pages unchecked
  • Filter: 2, 3, 4

ad inserter settings 11