org.hd.d.pg2k.webSvr.ads
Class AdConsts

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.ads.AdConsts

public final class AdConsts
extends java.lang.Object

Advertising-related constants.


Field Summary
static boolean AD_SUPPORT
          If true, support Web advertising in the Gallery.
static int ADSENSE_MAX_ADUNITS
          Maximum number of Google AdSense AdUnits (not including AdLinks) allowed on one page.
static java.lang.String ASLU_AVAILABLE_REQ_ATTR_NAME
          Name of request-level attribute to indicate that we've voluntarily dropped a G AdLink unit if set non-null.
static boolean DROP_ADS_ON_FIRST_PAGE_VIEW
          If true then show no or fewer ads on first page that a user sees, whichever it is.
static boolean DROP_MORE_ADS_FOR_ALT_CONTENT
          Drop more ads on poorly-performing pages.
static boolean DYNAMICALLY_CHOOSE_AD_NETWORK
          If true then try to dynamically choose ad network (and page layout) based on performance.
static boolean ENABLE_ADBRITE
          If true, enable AdBrite ad slots.
static boolean ENABLE_CASALEMEDIA
          If true, enable Casale Media ad slots.
static boolean ENABLE_CONV_TRACKING
          If true then enable conversion tracking of ads for the Gallery.
static boolean ENABLE_ESHIRT
          If true, enable eShirt link/ads.
static boolean ENABLE_TRIBALFUSION
          If true, enable TribalFusion ad slots.
static java.lang.String LAYOUT_STYLE_EVENT_PREFIX
          Prefix in global event set for layoutStyle parameter to capture name of click-through in given page layout.
static int MAX_SS_AD_WAIT_MS
          Maximum server-side ad insertion wait in milliseconds; non-negative.
static java.lang.String MPINTLAYOUT_EVENT_PREFIX
          Prefix in global event set for click-through when in given internal mid-page layout.
static java.lang.String MPINTLAYOUT_KHITS_EVENT_PREFIX
          Prefix in global event set of mid-page-ad internal layout page-view name.
static java.lang.String PAGE_LAYOUT_KHITS_EVENT_PREFIX
          Prefix in global event set of ad/page layout page-view name.
static java.lang.String RQPNAME_MPINTLAYOUT
          Request property name that holds String name of (last) internal mid-page layout, if any, for current page.
static java.lang.String RQPNAME_PAGELAYOUT
          Request property name that holds String name of page/ad, if any, for current page.
static java.lang.String RQPNAME_TOWERINTLAYOUT
          Request property name that holds String name of (last) internal tower layout, if any, for current page.
static java.lang.String RQPNAME_TOWERPOS
          Request property name that holds AdTowerPos tower layout, if any, for current page.
static int TARGET_MIN_WORDS_PER_AD_BLOCK
          Target minimum 'information' words per display ad on each page; strictly positive.
static java.lang.String TOWERINTLAYOUT_EVENT_PREFIX
          Prefix in global event set for click-through when in given internal tower layout.
static java.lang.String TOWERINTLAYOUT_KHITS_EVENT_PREFIX
          Prefix in global event set of tower-ad internal layout page-view name.
static boolean TRACK_AS_CLICKTHROUGHS
          If true then try to capture/sample AdSense clickthroughs.
 
Constructor Summary
private AdConsts()
          Prevent construction of an instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AD_SUPPORT

public static final boolean AD_SUPPORT
If true, support Web advertising in the Gallery. This includes Google AdSense and TribalFusion for example.

This may include things such as in-line banners, adjusted page layout, click-through monitoring, etc.

With this false, such special support is removed, and ads are limited to whatever is included in general banner rotations, etc.

See Also:
Constant Field Values

TRACK_AS_CLICKTHROUGHS

public static final boolean TRACK_AS_CLICKTHROUGHS
If true then try to capture/sample AdSense clickthroughs. As of the end of 2008 this hasn't been possible..

See Also:
Constant Field Values

DYNAMICALLY_CHOOSE_AD_NETWORK

public static final boolean DYNAMICALLY_CHOOSE_AD_NETWORK
If true then try to dynamically choose ad network (and page layout) based on performance. If we cannot capture live(ish) clickthrough data then this should be false unless we can present some reasonable static eCPM data (via the GenProps).

This may also have the effect of avoiding some 'reduced advertising' layouts.

See Also:
Constant Field Values

DROP_MORE_ADS_FOR_ALT_CONTENT

public static final boolean DROP_MORE_ADS_FOR_ALT_CONTENT
Drop more ads on poorly-performing pages. This means that we might show alternative interesting content rather than even trying to show an ad.

This also needs a run-time property to be set to be effective.

We may do this to help reduce ad blindness and to increase CTR for advertisers (and thus eCPM for us long-term possibly).

See Also:
Constant Field Values

DROP_ADS_ON_FIRST_PAGE_VIEW

public static final boolean DROP_ADS_ON_FIRST_PAGE_VIEW
If true then show no or fewer ads on first page that a user sees, whichever it is. This may improve page-load speed and the user's general perception of the site, but may reduce ad revenue such as from single-page visitors.

See Also:
Constant Field Values

ENABLE_ESHIRT

public static final boolean ENABLE_ESHIRT
If true, enable eShirt link/ads.

See Also:
Constant Field Values

ENABLE_CONV_TRACKING

public static final boolean ENABLE_CONV_TRACKING
If true then enable conversion tracking of ads for the Gallery.

See Also:
Constant Field Values

ENABLE_ADBRITE

public static final boolean ENABLE_ADBRITE
If true, enable AdBrite ad slots.

See Also:
Constant Field Values

ENABLE_TRIBALFUSION

public static final boolean ENABLE_TRIBALFUSION
If true, enable TribalFusion ad slots.

See Also:
Constant Field Values

ENABLE_CASALEMEDIA

public static final boolean ENABLE_CASALEMEDIA
If true, enable Casale Media ad slots.

See Also:
Constant Field Values

ADSENSE_MAX_ADUNITS

public static final int ADSENSE_MAX_ADUNITS
Maximum number of Google AdSense AdUnits (not including AdLinks) allowed on one page.

See Also:
Constant Field Values

RQPNAME_TOWERPOS

public static final java.lang.String RQPNAME_TOWERPOS
Request property name that holds AdTowerPos tower layout, if any, for current page.

See Also:
Constant Field Values

LAYOUT_STYLE_EVENT_PREFIX

public static final java.lang.String LAYOUT_STYLE_EVENT_PREFIX
Prefix in global event set for layoutStyle parameter to capture name of click-through in given page layout.

See Also:
Constant Field Values

PAGE_LAYOUT_KHITS_EVENT_PREFIX

public static final java.lang.String PAGE_LAYOUT_KHITS_EVENT_PREFIX
Prefix in global event set of ad/page layout page-view name.

See Also:
Constant Field Values

RQPNAME_PAGELAYOUT

public static final java.lang.String RQPNAME_PAGELAYOUT
Request property name that holds String name of page/ad, if any, for current page.

See Also:
Constant Field Values

RQPNAME_TOWERINTLAYOUT

public static final java.lang.String RQPNAME_TOWERINTLAYOUT
Request property name that holds String name of (last) internal tower layout, if any, for current page.

See Also:
Constant Field Values

TOWERINTLAYOUT_EVENT_PREFIX

public static final java.lang.String TOWERINTLAYOUT_EVENT_PREFIX
Prefix in global event set for click-through when in given internal tower layout.

See Also:
Constant Field Values

TOWERINTLAYOUT_KHITS_EVENT_PREFIX

public static final java.lang.String TOWERINTLAYOUT_KHITS_EVENT_PREFIX
Prefix in global event set of tower-ad internal layout page-view name.

See Also:
Constant Field Values

RQPNAME_MPINTLAYOUT

public static final java.lang.String RQPNAME_MPINTLAYOUT
Request property name that holds String name of (last) internal mid-page layout, if any, for current page.

See Also:
Constant Field Values

MPINTLAYOUT_EVENT_PREFIX

public static final java.lang.String MPINTLAYOUT_EVENT_PREFIX
Prefix in global event set for click-through when in given internal mid-page layout.

See Also:
Constant Field Values

MPINTLAYOUT_KHITS_EVENT_PREFIX

public static final java.lang.String MPINTLAYOUT_KHITS_EVENT_PREFIX
Prefix in global event set of mid-page-ad internal layout page-view name.

See Also:
Constant Field Values

ASLU_AVAILABLE_REQ_ATTR_NAME

public static final java.lang.String ASLU_AVAILABLE_REQ_ATTR_NAME
Name of request-level attribute to indicate that we've voluntarily dropped a G AdLink unit if set non-null. This means that the unit is available to another position on the page. Whatever code mops up and displays the available link-unit should unset the attribute

See Also:
Constant Field Values

TARGET_MIN_WORDS_PER_AD_BLOCK

public static final int TARGET_MIN_WORDS_PER_AD_BLOCK
Target minimum 'information' words per display ad on each page; strictly positive. The aim of this is to avoid swamping a page with too many ads against very thin text.

Standard boilerplate/furniture words should be excluded from this measure, as they don't add 'information' or real 'content' to the page.

Code may be marginally more efficient if this value is a power of 2.

See Also:
Constant Field Values

MAX_SS_AD_WAIT_MS

public static final int MAX_SS_AD_WAIT_MS
Maximum server-side ad insertion wait in milliseconds; non-negative. We won't delay page generation by more than this (in total) on server-side inserted ads.

May allow slightly more efficient code if a power of two.

See Also:
Constant Field Values
Constructor Detail

AdConsts

private AdConsts()
Prevent construction of an instance.


DHD Multimedia Gallery V1.53.0

Copyright (c) 1996-2009, Damon Hart-Davis. All rights reserved.