Ad Templates

On this page, you will find different ad templates that show you certain features of Advanced Ads and get you started quickly.

Import these setups into your WordPress website and see how Advanced Ads works. Also, you save time when configuring complex ad setups such as Roadblock ads.

How to import ad templates

To import the ad templates provided on this page into your WordPress website, you first need to open the accordions that you can find below each ad template. Afterward, copy the XML code that you can find inside.

Then navigate on your website to Advanced Ads > Settings > (scroll down) > Import & Export. Paste the XML code from the clipboard into the provided field and click Start import.

After successfully importing the ad template, Advanced Ads will show you a confirmation and list the created items.

You can find more information about this function in our Import & Export manual.

Ad template import in Advanced Ads
Paste the XML code of the ad template that you want to import into this field

Properties of the ad templates

Advanced Ads creates ads, groups, and placements on your website by importing ad templates. The ads are immediately visible to you but not yet to your visitors. To ensure this, we added the Logged-in visitor condition to each ad unit.

To display these ads to your entire audience, you need to remove this visitor condition from the ad units that you want to show up.

Remove visitor conditions in Advanced Ads
Remove the visitor condition to make the ad unit visible to everyone

Please note that if you run any membership or similar plugins that allow users to create an account on your website, e.g., BuddyBoss, your users have a login. Advanced Ads will consider them as logged-in users with the result that they will see those ads too. You can find here instructions on how to hide all ads for specific user roles with one click.

  • all imports contain a placement
  • all ads have the “logged-in user” visitor condition applied
  • the ad grid ad template will import image banners into your media gallery.

Check out the Ad Placeholders page when you look for dummy ad content.

Suppose you use any caching on your website. In that case, you will need to enable the cache busting feature of Advanced Ads Pro to ensure the functionality of ad rotations and visitor conditions like Device or Browser Width.

Provided ad templates

You can use the ad templates as a starting point and easily customize their content or replace them with your ad codes.

Medium rectangle before the content

This ad template will add a medium rectangle ad to your page. The ad unit will appear on all posts and pages before the content.

The ad has the Plain text and code ad type. You can customize its ad code or create a new ad and assign it to the Before Content placement. Or you create a new one.

  • medium rectangle ad (300×250)
  • Before Content placement

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1270</ID> <post_date type="string">2022-06-29 12:56:41</post_date> <post_date_gmt type="string">2022-06-29 12:56:41</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #0474A2; color: #fff; line-height: 250px; text-align: center; "> MEDIUM RECTANGLE </div>]]></post_content> <post_title type="string">Medium Rectangle</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 13:22:29</post_modified> <post_modified_gmt type="string">2022-06-29 13:22:29</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1267]]></guid> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <placements type="array"> <item key="0" type="array"> <type type="string">post_top</type> <name type="string">Before Content</name> <item type="string">ad_1270</item> <key type="string">before-content</key> </item> </placements> </advads-export>



Ad rotation after the first paragraph of posts

In this ad template, you can see how ad groups work. After importing, you will find a placement where two different image ads rotate in your posts but not on your pages. On each page view, one of the two ads will appear with a probability of 50%.

For more information, see this manual about ad rotations.

  • medium rectangle (300×250) showing up only in posts
  • full banner (468×60) showing up only in posts
  • ad group with the random rotation mode
  • placement after the first paragraph

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1332</ID> <post_date type="string">2022-06-29 12:56:41</post_date> <post_date_gmt type="string">2022-06-29 12:56:41</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #0474A2; color: #fff; line-height: 250px; text-align: center; "> MEDIUM RECTANGLE </div>]]></post_content> <post_title type="string">Medium Rectangle</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-30 11:20:33</post_modified> <post_modified_gmt type="string">2022-06-30 11:20:33</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1267]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">99</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Rotation</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">300</width> <height type="numeric">250</height> <conditions type="array"> <item key="0" type="array"> <connector type="string">or</connector> <type type="string">posttypes</type> <operator type="string">is</operator> <value type="array"> <item key="0" type="string">post</item> </value> </item> </conditions> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="1" type="array"> <ID type="string">1333</ID> <post_date type="string">2022-06-29 14:48:25</post_date> <post_date_gmt type="string">2022-06-29 14:48:25</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 468px; height: 60px; background: #0474A2; color: #fff; line-height: 60px; text-align: center; "> FULL BANNER </div>]]></post_content> <post_title type="string">Full Banner</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-30 11:20:43</post_modified> <post_modified_gmt type="string">2022-06-30 11:20:43</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1278]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">99</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Rotation</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">468</width> <height type="numeric">60</height> <conditions type="array"> <item key="0" type="array"> <connector type="string">or</connector> <type type="string">posttypes</type> <operator type="string">is</operator> <value type="array"> <item key="0" type="string">post</item> </value> </item> </conditions> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">99</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Rotation</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> </item> </groups> <placements type="array"> <item key="0" type="array"> <type type="string">post_content</type> <name type="string">Content Placement</name> <item type="string">group_99</item> <key type="string">content-placement</key> </item> </placements> </advads-export>

Mobile sticky anchor ad

With this ad template, you add a sticky anchor ad to your website that appears only on mobile devices. This format is gaining importance due to the ever-increasing share of mobile traffic. Google AdSense and the Amazon Affiliate Program also use it.

  • mobile ad (320×50) showing up on mobile devices only
  • sticky footer placement
  • requires the Sticky Ads add-on.

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1268</ID> <post_date type="string">2022-06-29 13:11:09</post_date> <post_date_gmt type="string">2022-06-29 13:11:09</post_date_gmt> <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> <post_password type="string"></post_password> <post_name type="string">sticky-mobile-ad-placeholder</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 13:17:33</post_modified> <post_modified_gmt type="string">2022-06-29 13:17:33</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1268]]></guid> <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> <item key="1" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <type type="string">plain</type> <width type="numeric">320</width> <height type="numeric">50</height> <visitor type="array"/> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <url type="numeric">0</url> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <placements type="array"> <item key="0" type="array"> <type type="string">sticky_footer</type> <name type="string">Sticky Footer </name> <item type="string">ad_1268</item> <options type="array"> <ad_label type="string">default</ad_label> <inline-css type="string"></inline-css> <sticky_bg_color type="string"></sticky_bg_color> <sticky type="array"> <trigger type="string"></trigger> <delay type="string">0</delay> <effect type="string">show</effect> <duration type="string">0</duration> </sticky> <close type="array"> <enabled type="string">1</enabled> <where type="string">inside</where> <side type="string">right</side> <timeout type="string">0</timeout> </close> <placement_width type="string">320</placement_width> </options> <key type="string">sticky-footer</key> </item> </placements> </advads-export>

If you use any caching on your website, you will need to enable the cache busting feature of Advanced Ads Pro to ensure that the visitor condition can work and your ad unit is not getting cached.

Leaderboard ad on devices with over 1000px browser width

With the help of this ad template, users can display a leaderboard banner in front of the content. Leaderboards are a widespread ad format. Due to their dimensions, they are predestined for higher screen resolutions.

To ensure that this leaderboard does not appear on small devices with less than 1000px screen width, we use the “Browser Width” visitor condition from the Responsive Ads add-on.

  • leaderboard (728×90) showing up on devices with browser width over 1000px
  • Before Content placement
  • requires the Responsive Ads add-on

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1280</ID> <post_date type="string">2022-06-29 14:48:25</post_date> <post_date_gmt type="string">2022-06-29 14:48:25</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 728px; height: 90px; background: #0474A2; color: #fff; line-height: 90px; text-align: center; "> LEADERBOARD </div>]]></post_content> <post_title type="string">Leaderboard</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:01:23</post_modified> <post_modified_gmt type="string">2022-06-29 15:01:23</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1278]]></guid> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">device_width</type> <operator type="string">is_higher</operator> <value type="string">1000</value> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">468</width> <height type="numeric">60</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <placements type="array"> <item key="0" type="array"> <type type="string">post_top</type> <name type="string">Before Content</name> <item type="string">ad_1280</item> <options type="array"> <ad_label type="string">default</ad_label> <placement_position type="string"></placement_position> <inline-css type="string"></inline-css> <pro_minimum_length type="string">0</pro_minimum_length> <words_between_repeats type="string">0</words_between_repeats> </options> <key type="string">before-content</key> </item> </placements> </advads-export>

Different ads to mobile and desktop users

Many publishers face a common challenge in displaying different banners for mobile and desktop users.

This ad template contains two different-sized ads targeting the user group using the device condition.

  • medium rectangle (300×250) showing up on desktop devices only
  • mobile ad (320×50) showing up on mobile devices only
  • ad group that contains both ads
  • Before Content placement

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1281</ID> <post_date type="string">2022-06-29 12:56:41</post_date> <post_date_gmt type="string">2022-06-29 12:56:41</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #0474A2; color: #fff; line-height: 250px; text-align: center; "> MEDIUM RECTANGLE </div>]]></post_content> <post_title type="string">Medium Rectangle</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:06:35</post_modified> <post_modified_gmt type="string">2022-06-29 15:06:35</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1267]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Rotation</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">mobile</type> <operator type="string">is_not</operator> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">300</width> <height type="numeric">250</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="1" type="array"> <ID type="string">1282</ID> <post_date type="string">2022-06-29 14:48:25</post_date> <post_date_gmt type="string">2022-06-29 14:48:25</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 320px; height: 50px; background: #0474A2; color: #fff; line-height: 50px; text-align: center; "> MOBILE AD </div>]]></post_content> <post_title type="string">Mobile Ad</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle-copy-2</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:06:14</post_modified> <post_modified_gmt type="string">2022-06-29 15:06:14</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1278]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Rotation</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">mobile</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">468</width> <height type="numeric">60</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Rotation</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> </item> </groups> <placements type="array"> <item key="0" type="array"> <type type="string">post_top</type> <name type="string">Before Content</name> <item type="string">group_73</item> <options type="array"> <ad_label type="string">default</ad_label> <placement_position type="string"></placement_position> <inline-css type="string"></inline-css> <pro_minimum_length type="string">0</pro_minimum_length> <words_between_repeats type="string">0</words_between_repeats> </options> <key type="string">before-content</key> </item> </placements> </advads-export>

Ad grid

The ad grid is a good option if you want to embed multiple ads at once. You can set the ad grid how many ads a group should display. You can also fine-tune the ad grid and define the number of columns, rows, and inner margins.

This ad template contains eight image ads. Six of them are randomly selected to be included in a two-line grid with three columns.

  • eight image ads (150×150)
  • ad group with enabled ad grid option
  • After Content placement
  • requires Advanced Ads Pro

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1291</ID> <post_date type="string">2022-06-29 15:21:37</post_date> <post_date_gmt type="string">2022-06-29 15:21:37</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #1</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-1</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:21:37</post_modified> <post_modified_gmt type="string">2022-06-29 15:21:37</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1291]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <_edit_last type="string">7</_edit_last> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1284</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> </meta_input> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad1.jpg</attached_img_url> </item> <item key="1" type="array"> <ID type="string">1292</ID> <post_date type="string">2022-06-29 15:21:42</post_date> <post_date_gmt type="string">2022-06-29 15:21:42</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #2</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-1-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:21:52</post_modified> <post_modified_gmt type="string">2022-06-29 15:21:52</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1292]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad2.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1285</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="2" type="array"> <ID type="string">1293</ID> <post_date type="string">2022-06-29 15:22:01</post_date> <post_date_gmt type="string">2022-06-29 15:22:01</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #3</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-2-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:22:30</post_modified> <post_modified_gmt type="string">2022-06-29 15:22:30</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1293]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad3.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1286</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="3" type="array"> <ID type="string">1294</ID> <post_date type="string">2022-06-29 15:22:12</post_date> <post_date_gmt type="string">2022-06-29 15:22:12</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #4</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-3-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:22:38</post_modified> <post_modified_gmt type="string">2022-06-29 15:22:38</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1294]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad4.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1287</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="4" type="array"> <ID type="string">1295</ID> <post_date type="string">2022-06-29 15:22:48</post_date> <post_date_gmt type="string">2022-06-29 15:22:48</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #5</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-4-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:23:07</post_modified> <post_modified_gmt type="string">2022-06-29 15:23:07</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1295]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad5.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1288</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="5" type="array"> <ID type="string">1296</ID> <post_date type="string">2022-06-29 15:23:10</post_date> <post_date_gmt type="string">2022-06-29 15:23:10</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #6</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-3-copy-2</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:23:20</post_modified> <post_modified_gmt type="string">2022-06-29 15:23:20</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1296]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad6.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1289</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="6" type="array"> <ID type="string">1297</ID> <post_date type="string">2022-06-29 15:23:23</post_date> <post_date_gmt type="string">2022-06-29 15:23:23</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #7</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-5-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:23:33</post_modified> <post_modified_gmt type="string">2022-06-29 15:23:33</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1297]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad7.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1290</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="7" type="array"> <ID type="string">1298</ID> <post_date type="string">2022-06-29 15:23:36</post_date> <post_date_gmt type="string">2022-06-29 15:23:36</post_date_gmt> <post_content type="string"></post_content> <post_title type="string">Ad Grid #8</post_title> <post_password type="string"></post_password> <post_name type="string">ad-grid-6-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 15:23:51</post_modified> <post_modified_gmt type="string">2022-06-29 15:23:51</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1298]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <attached_img_url type="string">https://test-setup.com/import-export/wp-content/uploads/ad8.jpg</attached_img_url> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <image_id type="string">1283</image_id> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">image</type> <url type="string">https://wpadvancedads.com</url> <width type="numeric">150</width> <height type="numeric">150</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">73</term_id> <slug type="string">image-ad-rotation</slug> <name type="string">Ad Grid</name> <type type="string">grid</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">5</inner_margin> <min_width type="string">150</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> <random type="string">on</random> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> </item> </groups> <placements type="array"> <item key="0" type="array"> <type type="string">post_bottom</type> <name type="string">After Content</name> <item type="string">group_73</item> <key type="string">after-content</key> </item> </placements> </advads-export>

Roadblock ads

Roadblock Ads refer to an ad setup in which the same advertiser books different ad spaces. When a visitor loads a page, the banners of the same campaign appear on all ad spots everywhere.

This configuration is especially challenging to create when different ads rotate on the placements. With this roadblock ad template, you can ensure that Advanced Ads always displays ads from the same campaign on particular placements.

  • ad unit and header placement to set a campaign cookie
  • medium rectangle campaign #1 & #2 (300×250)
  • full Banner campaign #1 & #2 (468×60)
  • a group with an even rotation
  • Before Content placement
  • After Content placement
  • requires Advanced Ads Pro

We built this ad setup following the first method described in the roadblock ads tutorial, which uses a header code to choose the campaigns. To ensure that this ad template works on your site, you must make two essential settings.

Go to Advanced Ads > Settings > General and activate the Use advanced JavaScript option. This option will allow using the advads.set_cookie function.

Enable the advanced visitor conditions module in Advanced Ads > Settings > Pro.

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1376</ID> <post_date type="string">2022-06-29 12:56:41</post_date> <post_date_gmt type="string">2022-06-29 12:56:41</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #0474A2; color: #fff; line-height: 250px; text-align: center; "> MEDIUM RECTANGLE #1 </div>]]></post_content> <post_title type="string">Medium Rectangle Campaign #1</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 12:56:41</post_modified> <post_modified_gmt type="string">2022-06-29 12:56:41</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1267]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">109</term_id> <slug type="string">ads-after-content</slug> <name type="string">Ads after content</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">cookie</type> <cookie type="string">advads_current_campaign</cookie> <operator type="string">match</operator> <value type="string">1</value> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="1" type="array"> <ID type="string">1377</ID> <post_date type="string">2022-06-29 17:19:24</post_date> <post_date_gmt type="string">2022-06-29 17:19:24</post_date_gmt> <post_content type="string"><![CDATA[<script> var advads_max_campaigns = 2; // number of available setups var advads_setup_id = Math.floor((Math.random() * advads_max_campaigns) + 1); // random choice from setups advads.set_cookie("advads_current_campaign", advads_setup_id, 1); // save setups </script>]]></post_content> <post_title type="string">Roadblock Cookie</post_title> <post_password type="string"></post_password> <post_name type="string">roadblock-cookie</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-30 17:38:23</post_modified> <post_modified_gmt type="string">2022-06-30 17:38:23</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1328]]></guid> <meta_input type="array"> <_edit_last type="string">7</_edit_last> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"/> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> </meta_input> </item> <item key="2" type="array"> <ID type="string">1378</ID> <post_date type="string">2022-06-29 17:24:26</post_date> <post_date_gmt type="string">2022-06-29 17:24:26</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #1B183A; color: #fff; line-height: 250px; text-align: center; "> MEDIUM RECTANGLE #2 </div>]]></post_content> <post_title type="string">Medium Rectangle Campaign #2</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 17:24:26</post_modified> <post_modified_gmt type="string">2022-06-29 17:24:26</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1329]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">109</term_id> <slug type="string">ads-after-content</slug> <name type="string">Ads after content</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">cookie</type> <cookie type="string">advads_current_campaign</cookie> <operator type="string">match</operator> <value type="string">2</value> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="3" type="array"> <ID type="string">1379</ID> <post_date type="string">2022-06-29 17:25:13</post_date> <post_date_gmt type="string">2022-06-29 17:25:13</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 468px; height: 60px; background: #0474A2; color: #fff; line-height: 60px; text-align: center; "> FULL BANNER #1 </div>]]></post_content> <post_title type="string">Full Banner Campaign #1</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle-campaign-1-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 17:25:13</post_modified> <post_modified_gmt type="string">2022-06-29 17:25:13</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1330]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">110</term_id> <slug type="string">ads-before-content</slug> <name type="string">Ads before content</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">cookie</type> <cookie type="string">advads_current_campaign</cookie> <operator type="string">match</operator> <value type="string">1</value> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> <item key="4" type="array"> <ID type="string">1380</ID> <post_date type="string">2022-06-29 17:26:10</post_date> <post_date_gmt type="string">2022-06-29 17:26:10</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 468px; height: 60px; background: #1B183A; color: #fff; line-height: 60px; text-align: center; "> FULL BANNER #2 </div>]]></post_content> <post_title type="string">Full Banner Campaign #2</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle-campaign-2-copy</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 17:26:10</post_modified> <post_modified_gmt type="string">2022-06-29 17:26:10</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1331]]></guid> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">110</term_id> <slug type="string">ads-before-content</slug> <name type="string">Ads before content</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> <weight type="numeric">10</weight> </item> </groups> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> <item key="1" type="array"> <type type="string">cookie</type> <cookie type="string">advads_current_campaign</cookie> <operator type="string">match</operator> <value type="string">2</value> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <groups type="array"> <item key="0" type="array"> <term_id type="numeric">109</term_id> <slug type="string">ads-after-content</slug> <name type="string">Ads after content</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> </item> <item key="1" type="array"> <term_id type="numeric">110</term_id> <slug type="string">ads-before-content</slug> <name type="string">Ads before content</name> <type type="string">default</type> <ad_count type="string">1</ad_count> <options type="array"> <grid type="array"> <columns type="string">3</columns> <rows type="string">2</rows> <inner_margin type="string">3</inner_margin> <min_width type="string">250</min_width> <full_width_breakpoint type="string">0</full_width_breakpoint> </grid> <refresh type="array"> <interval type="string">2000</interval> </refresh> </options> </item> </groups> <placements type="array"> <item key="0" type="array"> <type type="string">header</type> <name type="string">Roadblock Cookie</name> <item type="string">ad_1377</item> <options type="array"> <cache-busting type="string">off</cache-busting> </options> <key type="string">roadblock-cookie</key> </item> <item key="1" type="array"> <type type="string">post_top</type> <name type="string">Before Content</name> <item type="string">group_110</item> <options type="array"> <ad_label type="string">default</ad_label> <placement_position type="string"></placement_position> <inline-css type="string"></inline-css> <pro_minimum_length type="string">0</pro_minimum_length> <words_between_repeats type="string">0</words_between_repeats> <cache-busting type="string">auto</cache-busting> </options> <key type="string">before-content</key> </item> <item key="2" type="array"> <type type="string">post_bottom</type> <name type="string">After Content</name> <item type="string">group_109</item> <options type="array"> <ad_label type="string">default</ad_label> <placement_position type="string"></placement_position> <inline-css type="string"></inline-css> <pro_minimum_length type="string">0</pro_minimum_length> <words_between_repeats type="string">0</words_between_repeats> <cache-busting type="string">auto</cache-busting> </options> <key type="string">after-content</key> </item> </placements> </advads-export>
Code language: HTML, XML (xml)

BuddyBoss stream ads

If you use the BuddyBoss community plugin on your website, you can use this ad template to import an ad directly into your activity stream.

Before importing the data, the BuddyBoss plugin and Advanced Ads Pro must be activated. Otherwise, Advanced Ads will not be able to create the necessary placement.

<advads-export> <ads type="array"> <item key="0" type="array"> <ID type="string">1300</ID> <post_date type="string">2022-06-29 12:56:41</post_date> <post_date_gmt type="string">2022-06-29 12:56:41</post_date_gmt> <post_content type="string"><![CDATA[<div style="width: 300px; height: 250px; background: #0474A2; color: #fff; line-height: 250px; text-align: center; "> MEDIUM RECTANGLE </div>]]></post_content> <post_title type="string">Medium Rectangle</post_title> <post_password type="string"></post_password> <post_name type="string">medium-rectangle</post_name> <post_status type="string">publish</post_status> <post_modified type="string">2022-06-29 12:56:41</post_modified> <post_modified_gmt type="string">2022-06-29 12:56:41</post_modified_gmt> <guid type="string"><![CDATA[https://test-setup.com/import-export/?post_type=advanced_ads&#038;p=1267]]></guid> <meta_input type="array"> <advanced_ads_ad_options type="array"> <visitor type="array"/> <visitors type="array"> <item key="0" type="array"> <type type="string">loggedin</type> <operator type="string">is</operator> </item> </visitors> <output type="array"> <allow_php type="string">0</allow_php> <position type="string"></position> <margin type="array"> <top type="string"></top> <right type="string"></right> <bottom type="string"></bottom> <left type="string"></left> </margin> <wrapper-id type="string"></wrapper-id> <wrapper-class type="string"></wrapper-class> <custom-code type="string"></custom-code> </output> <type type="string">plain</type> <url type="numeric">0</url> <width type="numeric">0</width> <height type="numeric">0</height> <conditions type="array"/> <expiry_date type="numeric">0</expiry_date> <description type="string"></description> <sticky type="array"> <enabled type="numeric">0</enabled> <type type="string"></type> <assistant type="string"></assistant> <position type="array"/> </sticky> <weekdays type="array"> <enabled type="boolean">0</enabled> <day_indexes type="array"/> </weekdays> </advanced_ads_ad_options> <_edit_last type="string">7</_edit_last> </meta_input> </item> </ads> <placements type="array"> <item key="0" type="array"> <type type="string">buddypress</type> <name type="string">BuddyBoss Content</name> <item type="string">ad_1300</item> <key type="string">buddyboss-content</key> </item> </placements> </advads-export>

Make it better

Increase your ad management skills without spending more time.
Join over 150,000 publishers and AdOpts increasing their ad revenue.