Skip to content
Beginner⏱ 10 min

Your first publisher and embed code ​

Goal ​

Start showing Youtarget ads on your site.

In the dashboard, a publisher is one ad placement on your site: a format, its settings and its own embed code. To show ads in two places on a page or in two formats, add two publishers.

Before you start ​

  • A publisher account: see Sign up and sign in.
  • Access to your site code or to an admin panel where you can paste HTML.
  • An ad format that suits your site:
FormatWhat the visitor seesWhere to place the code
Direct linkA jump to the advertiser's pageA link, a button or a traffic source
PopunderThe advertiser's page opens in a new tab on clickOnce per page
BannerAn image or HTML banner of a set sizeWhere the banner should be
Video (outstream)A video ad in a block on the pageWhere the player should be
MultiformatA banner or a video, whichever pays moreWhere the block should be
InterstitialA full-screen banner over the pageOnce per page

Steps ​

  1. In the left menu, open Publishers and click Add publisher.

    The Publishers section and the Add publisher button

  2. In the Format group, select the format. You cannot change the format after you save: for another format, add a new publisher.

  3. Fill in the General group:

    • Name: how the publisher is named in the dashboard and in reports, for example "example.com — header banner".
    • Traffic type: Mainstream or Adult. Select Adult if your site has adult content: this decides which ads are shown. You cannot change the traffic type after you save.
    • Domain: the full site address with https://, for example https://example.com.
    • Floor price (CPM): the minimum price per 1,000 impressions in US dollars. Lower bids do not win. Leave it blank for no limit.
    • Traffic-back URL: where to send the visitor if there is no ad. Works for the direct link and popunder.
  4. If the format has a Format settings group, check it. The default values are fine to start with. The format page explains each setting.

    New publisher form: format, general fields and format settings

  5. Click Save. The dashboard opens the Embed code window.

  6. Click Copy code and paste the code on your site. Where exactly: see the table above and the format page.

    The Embed code window with the Copy code button

You can open the code again later with the Get embed code button on the publisher page or with the Get code item in the publisher menu in the Publishers list.

WARNING

Copy the code from the dashboard: it contains the addresses and IDs of your publisher. Code examples in the documentation use made-up addresses and will not work.

Result ​

The publisher appears in the Publishers list with the Moderation status. After the review, the status changes to Active and impressions start. If the publisher is rejected, the status is Rejected: ask your account manager for the reason.

You can see the first impressions and revenue right in the publisher list: click Columns and turn on Impressions and Publisher profit. These columns show data for the last 7 days, including today. For detailed statistics, go to the Reports section.

Troubleshooting ​

SymptomCauseFix
The Domain field is highlighted in redThe address has no https://Enter the full address: https://example.com
Sizes are highlighted in the banner settingsA size is empty, or no size is setDelete the empty row or enter the width and height
The publisher is active, but there are no impressionsThe code is not on the page, is placed twice, or bids are below the floor priceGo through the checks in No impressions or revenue

Next steps ​

© Youtarget