Injecting ads into body text
You can inject ads between paragraphs in an asset's body text.
To inject ads into body text:
- Configure an ad module as described in Creating ad modules.
- Click > Admin > Sites & Settings.
- In the Sites widget, select the site for which you are injecting ads into body text, or select Global to inject ads into all assets' body text.
- Click , located to the left of , and type
Ads
. - Toggle off Disable All Ad Injection.
- Under Ad Injection Profiles, click .
- Click .
- In the Create widget, select Rich Text Ad Injector, and then click New.
- In the New Rich Text Ad Injector form, toggle on Enabled.
- From the Types list, select the content types into which you want to inject ads.
- From the Ad list, select one of the available ad modules.
- In the Offset field, enter the number of paragraphs or enhancements before which no ad appears. For example, if you enter
3
, Brightspot injects the first ad after the third paragraph. - In the Frequency field, enter the number of paragraphs or enhancements between each ad. For example, if you enter
4
, Brightspot injects an ad after each four paragraphs. - In the Limit field, enter the maximal number of ads to appear in an asset's body. For example, if you enter
2
, Brightspot injects up to two ads in the body. - In the Count Enhancements in Frequency field, do one of the following:
- Toggle on if you want your entries in the Offset, Frequency, and Limit fields to account for enhancements (such as images, videos, or audios).
- Toggle off if you want your entries in the Offset, Frequency, and Limit fields to account only for paragraphs.
See the examples below.
- Click Save.
- Click Back.
- Select the ad injector you just created, and close the content picker.
In the Disable Ads Parameter Value field, enter a query string that blocks an ad feed.
Referring to the previous illustration,
disableAds=567abcded
is the query string that prevents ads from appearing in the site's assets. When a visitor includes that query string in an asset's URL, Brightspot does not retrieve ads.- Click Save.
Example 1: Ad injection accounting for enhancements
Assume you configure ad injection as follows:
- Offset is 2.
- Frequency is 3.
- Limit is 3.
- Count enhancements in frequency is on.
The following drawing provides an example of ad injection with this configuration.
- The first ad appears after the second paragraph.
- The second ad appears after two paragraphs and one image enhancement.
- The third and final ad also appears after two paragraphs and one image enhancement.
Example 2: Ad injection ignoring
Assume you configure ad injection as follows:
- Offset is 2.
- Frequency is 3.
- Limit is 3.
- Count enhancements in frequency is off.
The following drawing provides an example of ad injection with this configuration.
- The first ad appears after two paragraphs.
- The second ad appears after three paragraphs (ignoring the image).
Previous Topic
Creating ad modules
Next Topic
Injecting ads into a listicle