Auto ads (β)

Note

This feature is currently in beta. If you experience problems with auto ads, contact support.

Auto ads provide a way to quickly monetize your site and start earning revenue. You won't need to select and configure ad unit types. Our algorithms choose the optimal placement and ad units based on the page structure and content.

All ad units are served by a single ad tag. Once it's installed, ads will appear automatically across all site pages.

To use auto ads:

  1. Enable auto ads on the site. The ad units will be created automatically.
  2. Install the ad tag on your site.
  3. If needed, configure the ad units by changing their format, design, and other parameters, or disable the ones you don't need.
  4. Update the site, clear your cache, and wait for the feature to activate. The algorithm will collect information about the pages and start displaying the ad units within 20 minutes. If something is working incorrectly, contact support.

Types of ad units

Different types of ad units are created automatically for each page of your site, with separate versions for desktop and mobile. The type of ad unit determines where exactly on the page the ad appears: within the content, in the sidebar, over the content, or elsewhere.

Auto ads are served in the following types of ad units:

  • Banners

    Not all banner types may appear on the page simultaneously if the site's layout doesn't support this. There is no way to disable banners.

  • Other ad units

    You can choose the ad units you want to use on your site and disable the ones you don't need.

When auto ads are enabled, not all types of ad units are placed at once. Our algorithms choose the optimal types based on your site content.

How to enable auto ads

Warning

When the auto ads code is embedded on your site, impressions on the currently running YAN and Adfox ad units are paused. You'll see the icon next to these ad units in the YAN interface.

You can enable auto ads on a previously created site or when adding a new one.

  1. Go to the Websites Ads tab.
  2. Select an existing site and click Enable auto ads in the upper-right corner of the page.
  3. Confirm the action.
  4. Copy the auto ads code and paste it on the site.

Once auto ads are enabled, the auto ads units will appear on the site details page. You'll see the icon next to the site and ad unit names in the YAN interface.

  1. Go to the Websites AdsSites tab and press Add site. Learn more about creating a site
  2. Enable the option Auto ads in the form below the site details and click New site.
  3. Copy the auto ads code and paste it on the site.

Once auto ads are enabled, the auto ads units will appear on the site details page. You'll see the icon next to the site and ad unit names in the YAN interface.

Note

  • When auto ads are enabled, all ad units are created with default settings, but you can change them anytime. You can add more formats, set impression limits, customize ad units, and more. To modify an ad unit, go to the site in the interface and click Edit below the ad unit's name. Learn more about ad unit settings
  • To view statistics on ad units, go to the site in the interface and click Statistics below the ad unit's name. Learn more about statistics

If you had active ad units before you enabled automatic ad placement, you should verify that everything is displayed correctly:

  1. Clear the site and browser cache after embedding the auto ads code — press Ctrl + F5 (on Windows) or Command + R (on Mac).
  2. Wait 20 minutes and check the ad units, as changes might not apply immediately. If you still see the old ad units, contact support.

How to disable auto ads and ad units

Disable ad units

You can disable any auto ads units except banners. To do this:

  1. Go to the Websites Ads tab.
  2. Select a site and click Auto ads.
  3. Under Other types, click Edit and disable the ad units you don't need.

In addition, you can disable ad units directly in the list of the site's ad units by clicking Archive in the Status column next to the unit.

Tip

The ad unit list includes a filter for auto ads — select this filter to quickly find all ad units with auto ads.

Disable auto ads

To disable auto ads on a specific page:

  1. Go to the Websites Ads tab.
  2. Select a site and click Auto ads.
  3. Under Exclude pages from serving auto ads, specify the URL of the site's page or section where you don't want to use auto ads. You can specify multiple URLs using the Add exclusion button.
  4. If needed, select the Entire section option to disable auto ads for all pages that start with the specified URL.

To completely disable auto ads:

  1. Go to the Websites Ads tab.
  2. Select the site and click ActionsDisable auto ads on the site page.
  3. Confirm the action.
  4. If the auto ads units don’t go away immediately, wait 20 minutes and then close the tab with the site — they'll disappear after you clear the cache.

Once disabled, all auto ads units will be archived. Manually created ad units will start running again if their code is still on the site.

You can enable auto ads again anytime:

  1. Go to the Websites Ads tab.
  2. Select the site and click ActionsEnable auto ads on the site page. If you removed the auto ads code from your site, copy and paste it again, and auto ads will resume.

Limits

Auto ads may not appear correctly on some pages and sites:

  • Pages with a fixed ad unit height. The ad may push other site elements or overflow the ad unit boundaries. For auto ads to appear correctly, use an adaptive layout.

  • SPA (single-page application). Auto ads units may duplicate on these pages. Once enabled, check that the page layout looks as intended.

  • Sites where the feed is placed manually at the top of the page. The auto ads script might run before all site content loads, misplacing the ad unit. Because of that, some site elements might appear higher on the page than expected. Keep this in mind when enabling auto ads.

FAQ

I've created a complete set of ad units, but I don't want Fullscreen ads (or another type of ads).

You can customize the set of ad unit types to select only the ones you want when enabling auto ads. In addition, you can disable any created ad units you don't need, with the exception of banners.

Can I disable one or multiple banners, such as those appearing before content or inside an article?

Currently, there is no way to disable banners. If you see a banner you're not happy with, contact us, and we'll take your feedback into account in the future.

Can I exclude a specific page or section from ad impressions?

Yes, you can disable auto ads for a specific page or for all pages of a site section. To learn more, see Disable auto ads.

Can I exclude a specific area of a page from ad impressions?

Yes, there are two ways to do this:

  • Using an element attribute: add the data-ap-blacklist attribute to the relevant DOM element. For example:

    <div data-ap-blacklist>
      ...
    </div>
    

    Auto ads won't appear within this element.

  • Using a list of CSS selectors: pass the element selectors to the global array. For example:

    <script>
      window.APBlackList = ['.content-header', '#sidebar', '.article-body']
    </script>
    

    Common CSS selectors are supported.

    Auto ads won't appear in the specified parts of the page. Other ad units, such as regular YAN units placed manually or Adfox units, will still operate as normal.

    I want to keep my manually placed ad units

    In rare cases when the page already contains important ad units placed manually and you want to continue using them, specify their unit IDs in window.APExceptionBlocks:

    <script>
        window.APExceptionBlocks = ['C-A-2121141-14', 'C-A-2121141-13', 'C-A-2121141-12']
    </script>
    

    Window.APExceptionBlocks must be defined on the page only once. This property should contain all exceptions: both manually placed YAN units and Adfox units.

    Note

    Only use this approach when absolutely necessary. Auto ads are usually more effective than manual placement.

Can I limit the height of an ad unit?

You can limit the height of an ad unit in the settings, but this won't affect the size of the placeholder. Let us know if you're not satisfied with the size of a banner.

Can I change the number of ads in a banner?

The number of ads in an ad unit can be adjusted in the banner settings. By default, it's set to the value that brings you maximum revenue.

I installed the ad tag on the site, but the new ad units don't appear, or the old ones are still active. Why?

The system may not have had enough time to update. Clear your cache and wait 20 minutes. If the issue persists, contact us.

I have an Adfox banner installed. Will enabling auto ads disable it?

Yes, the Adfox banner will be disabled by default.

If you don't want the banner to be disabled, add the necessary units to exceptions and pass them using window.APExceptionBlocks. You can pass either containerId or an object with ownerId and params:

window.APExceptionBlocks = [
  'containerId',
  {
    ownerId: 354188,
    params: {
      p1: 'dftfb',
      p2: 'gwfm',
      pfc: 'hdfgd',
      pfb: 'beatub',
      puid1: ''
    }
  }
];

Window.APExceptionBlocks must be defined on the page only once. This property should contain all exceptions: both Adfox units and manually placed YAN units.

What happens if I have banners from other ad networks installed?

We don't block ads from other networks. The banners will remain in place. If your banners overlap, disable one of them.

Contact support

Write to WhatsApp Go to WhatsApp
Write to Telegram Go to Telegram

Write to chat

Send an email



You can also go to