Native Ad Setup

As a Publisher, you can create a Native Ad zone that is simple to set up and highly customizable. You can use slightly different processes for setting up a native ad zone, depending on your needs:
Scenario A: You simply want to set up an ad zone, choose the aspect ratio of the native ad zone’s images and then set the size of the ad zone on your site to match.
Scenario B: You want to set up the ad zone to match a custom image size or ratio, so that the ad zone looks the same as your site and fits in perfectly.
Scenario C: You have a zone on your site of a specific size and want to create an ad zone that fits in it and looks good.
Whichever scenario you choose, first create a Native Ad zone.
Creating a Native Ad Zone

In your Publisher account, click Sites & Zones, then New Zone. Expand the Native section, select the Native Ad format Recommendation Widget, and click Next.

Fill out the zone details and click Next.
Scenario A: Quick Layout: Set Aspect Ratio
In this scenario, you set the aspect ratio for the images in the Admin Panel, and there is no need to set the total ad zone size. When using the Quick Layout, the ad zone you create adapts itself automatically to the size of the container you place it in.
Step 1:

Select the Quick Layout tab. In the Desktop Layout section, set the number of columns and rows of ads you want on desktop.
Step 2:

Next, choose the aspect ratio for your images from the Image Settings drop-down. You can choose between 1:1, 4:3 or 16:9, to match the thumbnails on your site.
Step 3:

Once you have chosen the aspect ratio, use the checkbox to choose whether you want to show text or not, and then decide where it shows.
This text consists of a Title and a Description. You can turn those on and off individually in the Title and Description sections if you wish.
Check the preview on the right to see how your ad zone looks, and tweak the settings again if necessary.
Step 4:

Repeat steps 1-3 above in the Mobile Layout section to set your ad zone up for mobile.
Step 5:

Check the preview for both Desktop and Mobile on the right side of the screen. You can set where the breakpoint between desktop and mobile view occurs in the Mobile Breaking Point drop-down of Advanced Options.
The breakpoint can be set to 800px for iPad, 450px for mobile, or Unresponsive. Changing the breakpoint changes whether the settings in the Desktop Layout section affect desktop and iPad, or just desktop.
When you’re happy with how the preview looks, click Create.
Step 6:

Copy the Zone HTML Tag and add it to your site.
The ad zone automatically adjusts to 100% of the container that you put the tag into, so the larger the container, the larger both the zone and the ads.
Scenario B: Quick Layout: Set a Custom Image Size
In this scenario, you want to be able to change the image size and the spacing of the ad to match your site. You would do this if you really want the native ads to look like they are part of the editorial content of your site.
Step 1:

Select the Quick Layout tab. In the Desktop Layout section, set the number of columns and rows of ads you want on desktop.
Step 2:

In the Image Settings drop-down, select Custom Size and set the width and height of the images to match your site. If the site contains a meta tag and is responsive, when the site is viewed, the images also respond as the screen size decreases. Information about the Widget Size and the Image Size displays in the top right corner above the preview.
Step 3:

Once you have set the image size, choose whether you want to show text or not, using the Text checkbox, and choose where it shows.
Check the preview on the right to see how your ad zone looks, and tweak the settings again if necessary.
Step 4:

Repeat steps 1-3 in the Mobile Layout section to set your ad zone up for mobile.
Step 5:

In the Advanced Options section, you can set how many pixels of Vertical Spacing and Horizontal Spacing you want around each ad.
In the Advanced Options, you can also turn on and off the Powered by Logo and choose where it appears.
Step 6:

Check the preview for both Desktop and Mobile on the right side of the screen. You can set where the breakpoint between desktop and mobile view occurs in the Mobile Breaking Point drop-down of Advanced Options.
The breakpoint can be set to 800px for iPad, 450px for mobile, or Unresponsive. Changing the breakpoint changes whether the settings in the Desktop Layout section affect desktop and iPad, or just desktop.
When you’re happy with how the preview looks, click Create.
Step 7:

Copy the Zone HTML Tag and add it to your site.
Ensure that the ad zone size on your site matches the size of the zone that you just created.
Scenario C: Custom Layout: Set a Fixed Zone Size
In this scenario, you want to be able to set the size of the ad zone to match what your site needs, and tweak the settings to ensure that the ads display well.
Step 1:

Select the Custom Layout tab. In the Desktop Layout section, set the Width and the Height of the total Ad Zone which you wish to create.
Step 2:

Next, choose how many Columns and Rows of ads you wish to display in the ad zone. Check the preview on the right to see what settings work for the size you have chosen.
Step 3:

Once you’ve chosen how many columns and rows you want, choose whether you want to show text or not, using the Text checkbox, and choose where it shows using the Text Position drop-down.
Step 4:

Repeat steps 1-3 in the Mobile Layout section to set your ad zone up for mobile.
Step 5:

Check the preview for both Desktop and Mobile on the right side of the screen. You can set where the breakpoint between desktop and mobile view occurs in the Mobile Breaking Point drop-down of Advanced Options.
The breakpoint can be set to 800px for iPad, 450px for mobile, or Unresponsive. Changing the breakpoint changes whether the settings in the Desktop Layout section affect desktop and iPad, or just desktop.
When you’re happy with how the preview looks, click Create.
Step 6:

Copy the Zone HTML Tag and add it to your site.
Selecting Unresponsive in Mobile Breaking Point
When the Mobile Breaking Point is set to Unresponsive under Advanced Options, the following modal appears on the screen.


Clicking CONTINUE on the modal serves the desktop layout for ads on all devices, including mobile and tablet.
When you select Unresponsive, you can no longer edit the Mobile layout.
The image settings are updated to the default custom size (Width - 200px and Height - 200px) if not saved previously.
Using Custom CSS with Native Ads

In the Custom CSS section, you can add custom CSS to ensure that the ad zone displays correctly on your site. The most important CSS classes are provided as a starting point. For more background, see the W3Schools CSS tutorial.
CSS Classes for Native Ads
The box contains five CSS classes to begin with, and you can paste in additional styling as you see fit. These five CSS classes style the most important elements of the native ad as follows:

msg-native-widget-outer-container
Styles the entire widget container.
msg-native-widget-item
Styles the containers of the individual items.
msg-native-widget-item-image
Styles the image.
msg-native-widget-item-title
Styles the title text.
msg-native-widget-item-text
Styles the description text.
Additional CSS Classes
You can also style the native ad using these additional CSS classes:
.msg-native-widget
Wraps the whole widget.
.msg-native-widget-header
Wraps the header elements.
.msg-native-widget-header > a
Styles the 'Powered by' text.
.msg-native-widget-header > a > span
Styles the 'Powered by' image.
.msg-native-widget-outer-container
Wraps all ads.
.msg-native-widget-item-container
Wraps the adbox.
.msg-native-widget-item-image-wrapper
Wraps the image in the adbox.
.msg-native-widget-item-image-ratio
Sets the ad image aspect ratio.
.msg-native-widget-item-content
Wraps all the adbox text.
.msg-native-widget-item-content-box
Wraps the title, description and brand of the ad.
.msg-native-widget-item-brand
Styles the ad brand.
CSS Examples
The following examples show how you can adapt CSS styles in your Native Ad zone setup to suit your needs.
To place the text box over the image.

To modify the size of the text box.

To place the text box over the image and add a background to the text box with opacity.

To set the color of the logo.

To place the logo over the image.

To curve the image borders.

To set a style for the font. This way you can use fonts available on your website as well as those available in the zone setup.

To add padding between the image and text, so the text can be either close or far from the image. You can also use padding-bottom to add padding below the text.

To customize the background color of the text box so it only affects the text box that is below each image, leaving the space between images and boxes transparent or with a different background color.

To add a border that covers an image and its text box. This helps separate each image within the Native Widget.

Last updated
Was this helpful?

