The Post Content placement allows you to automatically inject ads into the content of your posts and pages based on paragraphs or other elements in it.

Since ads within the content are the best performing ones, this placement can have a large impact on the ad performance, if used correct.

Injecting an ad into the content

In order to inject an existing ad or ad group into the content of your posts, you need to create at least one Post Content placement. Go to Advanced Ads > Placements and create a new placement with the type represented by the following image:

ad placement within the content

The placement you will now see in your placement list should look similar to the one on the next image:

settings for content ads

In this example, the placement injects our Medium Rectangle ad after the 2nd paragraph on each post.

Content placement options

These are the options coming with the content placement.

Name

The name is created during the creating of the placement and has no other meaning than to help you identify it.

Item

The item of the post content placement is the ad or ad group you want to inject into the content.

Before or after

You can select whether the ad or ad groups should be injected before or after a specific element. It depends on the specifics of your site and the elements in the content, which option is better, but you can select a different one for each post content placement that you create.

Index

The index is the number of the element in the content. If you want to inject an ad after the 3rd paragraph then select after and 3rd.

Element

The element is the html tag in the content before or after which the ad is injected. Posts always have paragraphs, but can also have headlines and other elements.

It is important to notice that most elements only count on the top level. E.g., paragraphs in another box or headlines in a table, are not considered for ad injection.

Count from bottom

You can also chose to count the index from the bottom. E.g., this would allow you to inject an ad before the last paragraph.

Advanced Options

These are options added by Advanced Ads Pro to especially extend the functionalities of the Post Content placement.

Inject ad after images, tables and containers

With Advanced Ads Pro you can also select images, tables and containers ( <div>) for ad injection.

Minimum length for injection

see Minimum Length for content injection below.

Prevent ad injection into the content

Pro adds a setting to the Ad Options meta box on the post and page edit pages to disable all automatic content injections for that specific page in the frontend.

General Settings

Change order of injected elements

By default, Advanced Ads tries to inject ads to the post content as late as possible. However, this might not always be your attention. To change the priority of the injection, use the following option in Advanced Ads > Settings > General.

content injection priority optionTip: Most injections have a priority between 1 and 20, so when trying to find the right value, start with 10 or 20.

Unlimited ad injection

Some plugins and themes trigger ad injections where it shouldn’t happen. Therefore, Advanced Ads ignores injected placements on non-singular pages and outside the loop. However, this can cause problems with some themes. Set this option to -1 in order to enable unlimited ad injection at your own risk, set it to 0 to keep it disabled or choose a positive number to enable the injection only in the first x posts on your archive pages.

You find this setting in Advanced Ads > Settings > General.

Unlimited ad injection setting

Minimum Length for content injection

Advanced Ads Pro provides an option that allows you to set a minimum length of the content before an ad is injected to it. There is a general option on the settings page which you can also adjust using the advanced option section for each placement. The lowest value will be considered.

Custom solutions

Here are some custom solutions for issues with the content injection placements.

Ad injection without the_content()

If your theme can not use the  the_content function, but get_the_content() or a similar approach, you can apply the ad injection manually using a line like this in your theme:

Injection without <p> tags

If your theme does not use <p> tags to separate paragraphs, but for example <br/>, then you can insert the following code into your theme’s functions.php to add that option to the content injection placement.

 

Debugging

The content injection can break for various reasons. Mostly, because of a malformated ad code or when the paragraphs can not be counted due to a broken tag. Such issues will be captured in the error log or displayed below the ad, when you have WP_DEBUG enabled in your wp-config.php.

 Placements, Publishing Ads  
Total 4 Votes:
0

Tell us how can we improve this information?

+ = Verify Human or Spambot ?