In order to quickly get an idea on how Advanced Ads is working, you can add any of the ad templates from below. Just copy the code from one field and use the Import feature to add it to your site.

You can find the Import page in your Dashboard under Advanced Ads > Settings > (scroll down) > Import & Export.

Import ad templates with Advanced Ads

Please note:

  • all templates contain a placement, so after the import, they will be visible on your site right away.
  • the images in the import will be imported into your media gallery.

If you only need dummy ad content, check out the Placeholders.

Medium Rectangle above the content

This import contains the following elements:

  • Medium Rectangle (300×250) in HTML
  • Before Content placement on every page
<export>
  <ads type="array">
    <item key="0" type="array">
      <ID type="string">1</ID>
      <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #428bca; color: #fff; line-height: 250px; text-align: center; ">MEDIUM RECTANGLE</div>]]></post_content>
      <post_title type="string">Medium Rectangle Placeholder</post_title>
      <post_name type="string">medium-rectangle-placeholder</post_name>
      <meta_input type="array">
        <advanced_ads_ad_options type="array">
          <type type="string">plain</type>
          <width type="numeric">300</width>
          <height type="numeric">250</height>
        </advanced_ads_ad_options>
      </meta_input>
    </item>
  </ads>
  <placements type="array">
    <vor-dem-inhalt type="array">
      <type type="string">post_top</type>
      <name type="string">Before Content</name>
      <item type="string">ad_1</item>
      <options type="array"/>
    </vor-dem-inhalt>
  </placements>
</export>

Image ad group after first paragraph of posts

This import contains the following elements:

  • Medium Rectangle image (300×250) linked to wpadvancedads.com
  • Full Banner image (468×60) linked to wpadvancedads.com
  • A group with an even rotation
  • Placement after the first paragraph of posts (not static pages)
<ads type="array">
    <item key="0" type="array">
      <ID type="string">1</ID>
      <post_title type="string">Medium Rectangle Placeholder Image</post_title>
      <groups type="array">
        <item key="0" type="array">
          <term_id type="numeric">1</term_id>
          <slug type="string">image-ad-rotation</slug>
          <name type="string">Image Ad Rotation</name>
          <type type="string">default</type>
          <ad_count type="numeric">1</ad_count>
          <weight type="numeric">10</weight>
        </item>
      </groups>
      <attached_img_url type="string">https://wpadvancedads.com/wp-content/placeholder/300x250.png</attached_img_url>
      <meta_input type="array">
        <advanced_ads_ad_options type="array">
          <output type="array">
            <image_id type="string">1</image_id>
            <position type="string">center</position>
          </output>
          <type type="string">image</type>
          <url type="string">https://wpadvancedads.com</url>
          <width type="numeric">300</width>
          <height type="numeric">250</height>
          <conditions type="array">
            <item key="0" type="array">
              <type type="string">general</type>
              <value type="array">
                <item key="0" type="string">is_singular</item>
              </value>
            </item>
            <item key="1" type="array">
              <type type="string">posttypes</type>
              <value type="array">
                <item key="0" type="string">post</item>
              </value>
            </item>
          </conditions>
        </advanced_ads_ad_options>
      </meta_input>
    </item>
    <item key="1" type="array">
      <ID type="string">2</ID>
      <post_title type="string">Full Banner Placeholder Image</post_title>
      <groups type="array">
        <item key="0" type="array">
          <term_id type="numeric">1</term_id>
          <slug type="string">image-ad-rotation</slug>
          <name type="string">Image Ad Rotation</name>
          <type type="string">default</type>
          <ad_count type="numeric">1</ad_count>
          <weight type="numeric">10</weight>
        </item>
      </groups>
      <attached_img_url type="string">https://wpadvancedads.com/wp-content/placeholder/468x60.png</attached_img_url>
      <meta_input type="array">
        <advanced_ads_ad_options type="array">
          <output type="array">
            <image_id type="string">2</image_id>
            <position type="string">center</position>
          </output>
          <type type="string">image</type>
          <url type="string">https://wpadvancedads.com</url>
          <width type="numeric">468</width>
          <height type="numeric">60</height>
          <conditions type="array">
            <item key="0" type="array">
              <type type="string">general</type>
              <value type="array">
                <item key="0" type="string">is_singular</item>
              </value>
            </item>
            <item key="1" type="array">
              <type type="string">posttypes</type>
              <value type="array">
                <item key="0" type="string">post</item>
              </value>
            </item>
          </conditions>
        </advanced_ads_ad_options>
      </meta_input>
    </item>
  </ads>
  <groups type="array">
    <item key="0" type="array">
      <term_id type="numeric">1</term_id>
      <slug type="string">image-ad-rotation</slug>
      <name type="string">Image Ad Rotation</name>
      <type type="string">default</type>
      <ad_count type="numeric">1</ad_count>
      <options type="array"/>
    </item>
  </groups>
  <placements type="array">
    <after-first-paragraph type="array">
      <type type="string">post_content</type>
      <name type="string">After first paragraph</name>
      <item type="string">group_1</item>
      <options type="array">
        <position type="string">after</position>
        <index type="numeric">1</index>
        <tag type="string">p</tag>
      </options>
    </after-first-paragraph>
  </placements>

Mobile Sticky Footer

This import contains the following elements:

  • Mobile Ad (320×50) in HTML
  • On mobile devices only
  • Set sticky in the footer (requires the Sticky add-on).
<ads type="array">
    <item key="0" type="array">
      <ID type="string">1</ID>
      <post_content type="string"><![CDATA[<div style="width: 320px; height: 50px; background: #428bca; color: #fff; line-height: 50px; text-align: center; ">MOBILE BANNER</div>]]></post_content>
      <post_title type="string">Sticky Mobile Ad Placeholder</post_title>
      <meta_input type="array">
        <advanced_ads_ad_options type="array">
          <visitors type="array">
            <item key="0" type="array">
              <type type="string">mobile</type>
              <operator type="string">is</operator>
            </item>
          </visitors>
          <type type="string">plain</type>
          <width type="numeric">320</width>
          <height type="numeric">50</height>
        </advanced_ads_ad_options>
      </meta_input>
    </item>
  </ads>
  <placements type="array">
    <sticky-footer-ad type="array">
      <type type="string">sticky_footer</type>
      <name type="string">Sticky Footer Ad</name>
      <item type="string">ad_1</item>
    </sticky-footer-ad>
  </placements>

Leaderboard over 1000px only

This import contains the following elements:

  • Leaderboard (728×90)
  • Visible on devices over 1000px
  • Before Content placement
  • Requires the Responsive add-on
<ads type="array">
    <item key="0" type="array">
      <ID type="string">1</ID>
      <post_content type="string"><![CDATA[<div style="width: 728px; height: 90px; background: #428bca; color: #fff; line-height: 90px; text-align: center; ">LEADERBOARD</div>]]></post_content>
      <post_title type="string">Leaderboard Placeholder</post_title>
      <meta_input type="array">
        <advanced_ads_ad_options type="array">
          <visitors type="array">
            <item key="0" type="array">
              <type type="string">device_width</type>
              <operator type="string">is_higher</operator>
              <value type="string">1000</value>
            </item>
          </visitors>
          <type type="string">plain</type>
          <width type="numeric">728</width>
          <height type="numeric">90</height>
        </advanced_ads_ad_options>
      </meta_input>
    </item>
  </ads>
  <placements type="array">
    <above-the-content type="array">
      <type type="string">post_top</type>
      <name type="string">Above the content</name>
      <item type="string">ad_1</item>
    </above-the-content>
  </placements>