Title: Truce Label Ads
Author: trucetech
Published: <strong>June 28, 2026</strong>
Last modified: June 28, 2026

---

Search plugins

![](https://ps.w.org/truce-label-ads/assets/banner-772x250.png?rev=3589216)

![](https://ps.w.org/truce-label-ads/assets/icon-256x256.png?rev=3589216)

# Truce Label Ads

 By [trucetech](https://profiles.wordpress.org/trucetech/)

[Download](https://downloads.wordpress.org/plugin/truce-label-ads.zip)

 * [Details](https://wordpress.org/plugins/truce-label-ads/#description)
 * [Reviews](https://wordpress.org/plugins/truce-label-ads/#reviews)
 *  [Installation](https://wordpress.org/plugins/truce-label-ads/#installation)
 * [Development](https://wordpress.org/plugins/truce-label-ads/#developers)

 [Support](https://wordpress.org/support/plugin/truce-label-ads/)

## Description

**Truce Label Ads** is a lightweight, privacy-friendly way to place ads from popular
ad networks on your WordPress site — without ever pasting raw ad code.

Instead of a free-form code box, you simply choose your ad network and enter your
own IDs (for example your AdSense publisher and slot IDs). The plugin then generates
the correct, known ad markup for that network from a fixed, vetted template. You
stay in control, your site stays fast, and there is no opaque third-party code to
copy and paste.

#### Why this approach?

Many ad plugins let you paste arbitrary HTML or JavaScript. That is flexible but
risky: a single bad paste can break your layout or expose your site. Truce Label
Ads is built the opposite way on purpose. Every supported network has its own carefully
written, non-editable template, and you only ever provide validated identifiers.
Anything that is not a recognized ID is rejected. This keeps the plugin safe, predictable,
and easy to review.

#### Supported integrations

 * **Google AdSense** — display units (responsive, in-article, and fixed sizes) 
   using your publisher and slot IDs.
 * **Google AdSense Auto Ads** — site-wide auto ads from your publisher ID.
 * **Google Ad Manager (GPT)** — defined by your network code, ad unit path, and
   sizes.
 * **Media.net** — using your customer ID and ad unit/tag ID.
 * **Ezoic** — placeholder units for your Ezoic integration.
 * **Direct banner** — upload or link an image with a click-through URL. No scripts
   at all.
 * **Affiliate banner** — image plus your affiliate link (Amazon Associates banners
   work here too).

#### Easy placement

Show each ad exactly where you want it:

 * Before, after, or both around your post content
 * After a specific paragraph
 * Site-wide in the header (ideal for Auto Ads) or footer
 * Anywhere manually with the shortcode `[tlads_ad id="1"]` or the included widget

#### Device targeting, the cache-safe way

Hide any ad on desktop, tablet, or mobile using pure CSS visibility. Because it 
does not branch server-side, it works correctly even behind full-page caching and
CDNs.

#### Lightweight by design

 * Loads a tiny stylesheet on the front end, and only when an ad is actually present.
 * No front-end JavaScript of its own — each network loads its own official script.
 * No extra database tables and no external calls back to us.

#### Go further with video: Truce Label Video Player (premium)

Want to monetize video, not just display ads? **Truce Label Video Player** is our
premium plugin that plays your videos with **VAST** ad support — **pre-roll, mid-
roll, and post-roll** ads — and lets you **control the mid-roll intervals** so ads
appear exactly when you want during playback. It is the serious way to earn from
video content on WordPress.

**Start your trial:** https://checkout.freemius.com/plugin/31537/plan/51775/?trial
=paid

### Privacy

Truce Label Ads does not collect, store, or transmit any personal data to the plugin
author. It saves only the ad settings you enter (network choice, your IDs, placement
and display options) in your own WordPress database.

The plugin generates ad markup for third-party ad networks that you choose to use(
such as Google AdSense, Google Ad Manager, Media.net, or Ezoic). When an ad from
one of those networks is displayed, the network’s own code runs in the visitor’s
browser and is subject to that network’s privacy policy and terms. Please review
the privacy policy of any ad network you enable, and disclose ad usage to your visitors
as required by the laws that apply to you. Direct and affiliate banners load only
the image and link you provide and run no third-party scripts.

## Installation

 1. Upload the `truce-label-ads` folder to the `/wp-content/plugins/` directory, or
    install the plugin through the **Plugins** screen in WordPress.
 2. Activate the plugin through the **Plugins** screen.
 3. Go to **Truce Ads  Ad Units** and click **Add Ad Unit**.
 4. Choose your ad network, enter your IDs, pick where the ad should appear, and enable
    it.
 5. For manual placement, paste the unit’s shortcode (e.g. `[tlads_ad id="1"]`) into
    any post, page, or text widget.

## FAQ

### Do I paste my ad network code into this plugin?

No. You only enter your IDs (such as your AdSense publisher and slot IDs). The plugin
builds the correct ad code from a fixed template for the network you selected. There
is no free-form code field.

### Which ad networks are supported?

Google AdSense (including Auto Ads), Google Ad Manager (GPT), Media.net, and Ezoic
via their IDs, plus direct and affiliate image banners that work with virtually 
any program, including Amazon Associates.

### My ad network is not in the list. Can I still use it?

If the network gives you an image and a link (like most affiliate and direct campaigns),
use the Direct or Affiliate banner option. Networks that only provide a unique block
of script are intentionally not supported here, to keep the plugin safe and reviewable.

### Will ads work with my caching plugin?

Yes. The plugin adds no server-side device branching; device visibility is handled
with CSS, which is cache-friendly. Each ad network’s own script handles ad loading
as usual.

### How do I show an ad in a specific spot?

Use the shortcode shown on each ad unit, for example `[tlads_ad id="1"]`, or add
the **Truce Label Ads** widget to any widget area. You can also choose automatic
placements such as before/after content or after a paragraph.

### Does the plugin track my visitors?

The plugin itself does not collect or send any personal data. Third-party ad networks
you enable run their own code; review their privacy policies and disclose ad usage
to your visitors as required.

### Can I monetize videos with mid-roll ads?

Yes — that is what our premium **Truce Label Video Player** is for. It supports 
VAST pre-roll, mid-roll, and post-roll ads with adjustable mid-roll intervals. See:
https://checkout.freemius.com/plugin/31537/plan/51775/?trial=paid

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Truce Label Ads” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ trucetech ](https://profiles.wordpress.org/trucetech/)

[Translate “Truce Label Ads” into your language.](https://translate.wordpress.org/projects/wp-plugins/truce-label-ads)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/truce-label-ads/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/truce-label-ads/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/truce-label-ads/)
by [RSS](https://plugins.trac.wordpress.org/log/truce-label-ads/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.
 * Controlled, ID-based integrations for Google AdSense, AdSense Auto Ads, Google
   Ad Manager (GPT), Media.net, and Ezoic.
 * Direct and affiliate image banners (no scripts).
 * Automatic placements (before/after content, after paragraph, header, footer),
   shortcode, and widget.
 * Cache-safe device visibility for desktop, tablet, and mobile.

## Meta

 *  Version **1.0.0**
 *  Last updated **15 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [ad manager](https://wordpress.org/plugins/tags/ad-manager/)[ads](https://wordpress.org/plugins/tags/ads/)
   [adsense](https://wordpress.org/plugins/tags/adsense/)[media.net](https://wordpress.org/plugins/tags/media-net/)
   [monetization](https://wordpress.org/plugins/tags/monetization/)
 *  [Advanced View](https://wordpress.org/plugins/truce-label-ads/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/truce-label-ads/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/truce-label-ads/reviews/)

## Contributors

 *   [ trucetech ](https://profiles.wordpress.org/trucetech/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/truce-label-ads/)