Skip to main content

WordPress plugin

The official plugin connects a WordPress (third-party, integrated with YnoAds) site to YnoAds: onboarding, slot management, rendering, and Visual Placer.

What it does​

  • Connect with a YnoAds integration token
  • Select or create a website (project) and verify the site
  • Create and manage placement slots in WordPress
  • Render ad containers via shortcode or auto-injection
  • Sync placement metadata from YnoAds
  • Place ads against exact page elements with Visual Placer

Installation​

  1. Copy the plugin folder to wp-content/plugins/ynoad.
  2. Activate YnoAds - Ad and Inventory Management.
  3. Open the YnoAds menu in wp-admin and complete onboarding.

Onboarding​

  1. Set the API base URL to https://api.ynoad.com and paste a bearer token from the dashboard (starts with ynwp_).
  2. Select an existing YnoAds website or create one.
  3. Verify the site meta tag.
  4. Optionally create bulk placements.
  5. Finish and sync.

Tokens are shown once when you generate them. Store the value in the plugin; you cannot retrieve the same secret later.

Rendering ads​

The plugin prints the delivery script:

<script defer src="https://ynoad.link/tag.js" data-key="INTEGRATION_KEY"></script>

Then it outputs placement containers through:

  • Shortcode: [ynoad_slot id="..."] or [ynoad_slot slug="..."]
  • Auto-injection by location, context, and optional date window
  • Visual Placer selector targeting (with location-based fallback)

You can show an ad disclosure label globally or per slot.

Sync​

The plugin syncs on a schedule (every 15 minutes) and includes a manual sync action plus a fallback path if WP-Cron is disabled. Check last sync in plugin settings if slots look stale.

Visual Placer​

Visual Placer loads a live preview, lets you click a DOM element, and stores insertion position and style with the slot. Details: Visual Placer.

API used by the plugin​

The plugin calls /v1/integrations/wp/* with the WordPress bearer token. See WordPress API and the OpenAPI reference.