Ads Place is rotator object. Each Ads Place consists of the default (patch) ad and a set of contained ads (not required).
Each Contained Ad object has a set of logical rules that defines where this object can be displayed. Default (Patch) Ad will be displayed only if any of Contained Ads can not be displayed on current page by defined it’s own rules.

Examples:

For example, I have three categories in the blog – News, Sports News and Church News. I have created one Ads Place “Header”.

Example 1:
This Ads Place contains three Ads. Default Adis customised.

  • Contained Ad (ID1) is customised as “Show ad only on pages of this types“: Single Post, Category Archive Pages; “Show ad only in single posts or categories archives of certain categories“: News.
  • Contained Ads (ID2 and ID3) are customised as “Show ad only on pages of this types“: Single Post, Category Archive Pages; “Show ad only in single posts or categories archives of certain categories“: Sports News.

Result:

  • Ad (ID1) will be displayed only on single and archive pages of category News. Only this ad will be displayed on these pages.
  • Ads (ID2 and ID3) will be rotated only on single and archive pages of category Sports News. Only these ads will be displayed on these pages.
  • Default ad will be displayed on all other pages.

Example 2:
This Ads Place contains three Ads. Default Adis not customised.

  • Contained Ad (ID1) is customised as “Show ad only on pages of this types“: Single Post, Category Archive Pages; “Show ad only in single posts or categories archives of certain categories“: News.
  • Contained Ads (ID2 and ID3) are customised as “Show ad only on pages of this types“: Single Post, Category Archive Pages; “Show ad only in single posts or categories archives of certain categories“: Sports News.

Result:

  • Ad (ID1) will be displayed only on single and archive pages of category News. Only this ad will be displayed on these pages.
  • Ads (ID2 and ID3) will be rotated only on single and archive pages of category Sports News. Only these ads will be displayed on these pages.
  • On all other pages will be displayed nothing.

Example 3:
This Ads Place contains five Ads. Default Adis customised.

  • Contained Ad (ID1) is customised as “Show ad only on pages of this types“: Single Post, Category Archive Pages; “Show ad only in single posts or categories archives of certain categories“: News.
  • Contained Ads (ID2 and ID3) are customised as “Show ad only on pages of this types“: Single Post, Category Archive Pages; “Show ad only in single posts or categories archives of certain categories“: Sports News.
  • Contained Ads (ID4 and ID5) are customised as “Show ad on all pages of blog“.

Result:

  • Ad (ID1) will be displayed only on single and archive pages of category News. Not only this ad will be displayed on these pages (see below).
  • Ads (ID2 and ID3) will be rotated only on single and archive pages of category Sports News. Not only these ads will be displayed on these pages (see below).
  • Ads (ID4 and ID5) will be rotated on all other pages like Default Ad. Also these ads will participate in rotation on pages of categories News and Sports News together with appropriate ads.
  • Default Ad will not be shown never on any pages.

Basically, these three examples demonstrate logic of operation of the Ads Place object.

Ads Zone object is the selector. It is the object realising additional logic of ads displaying.
This object is necessary for bloggers who are operating considerable quantity of advertisements. It is difficult enough to track logic of displaying of several hundreds ads containing in one Ads Place. Much easier to divide available advertisements into groups by a certain criteria, to place them in several objects “Ads Place” and to select displaying of the certain object “Ads Place” for the necessary type of current page by means of the object “Ads Zone”.

The object “Ads Zone” can be necessary also in certain cases at a small amount of advertisements.

Let’s consider on an example:

I have three categories in the blog – News, Sports News and Church News. I have created three Ads Places – “Header“, “Header (Church)” and “Header (Single Post)”. As I do not want that readers of religious news saw advertising of wine, cigarettes, etc, I have placed all ads not intended for religious users in Ads Place “Header” object, and advertisements with the religious maintenance in Ads Place object “Header (Church)“. I have placed all available advertisements to the Ads Place object “Header (Single Post)” . For ads with the religious maintenance I have set “Show ad only in single posts or categories archives of certain categories”: Church News, for the others – “Do not show ad in single posts or categories archives of certain categories”: Church News.

Next I have created one Ads Zone object called “Header” and set default Ads Place as “Header” Ads Place. Ads Place property for “Church News” Category Archive Pages I set to “Header (Church)” Ads Place. Ads Place property for Single Post I set to “Header (Single Post)” Ads Place.

Result:

Religious users (readers of Church News) will see ads of the religious maintenance, all other readers – other ads.

© 2011 – 2013, minimus. All rights reserved.