Class: CompanionAdSelectionSettings

Constructor

CompanionAdSelectionSettings

new CompanionAdSelectionSettings()

Enumerations

CreativeType

static

string

Available choices for creative type of a companion ad. The user can specify any of these choices as a criterion for selecting companion ads.

Value

IMAGE

Specifies image creatives (such as JPEG, PNG, GIF, etc).

FLASH

Specifies Flash creatives.

ALL

Specifies all creative types.

ResourceType

static

string

Available choices for resource type of a companion ad. The user can specify any of these choices as a criterion for selecting companion ads.

Value

HTML

Specifies that the resource should be an HTML snippet.

IFRAME

Specifies that the resource should be a URL that should be used as the source of an iframe.

STATIC

Specifies that the resource should be a static file (usually the URL of an image of SWF).

ALL

Specifies that the resource can be any type of resource.

SizeCriteria

static

string

Available choices for size selection criteria. The user can specify any of these choices for selecting companion ads.

Value

IGNORE

Specifies that size should be ignored when choosing companions.

SELECT_EXACT_MATCH

Specifies that only companions that match the size of the companion ad slot exactly should be chosen.

SELECT_NEAR_MATCH

Specifies that any companion close to the size of the companion ad slot should be chosen.

Properties

CreativeType

static

string

Available choices for creative type of a companion ad. The user can specify any of these choices as a criterion for selecting companion ads.

Value

IMAGE

Specifies image creatives (such as JPEG, PNG, GIF, etc).

FLASH

Specifies Flash creatives.

ALL

Specifies all creative types.

ResourceType

static

string

Available choices for resource type of a companion ad. The user can specify any of these choices as a criterion for selecting companion ads.

Value

HTML

Specifies that the resource should be an HTML snippet.

IFRAME

Specifies that the resource should be a URL that should be used as the source of an iframe.

STATIC

Specifies that the resource should be a static file (usually the URL of an image of SWF).

ALL

Specifies that the resource can be any type of resource.

SizeCriteria

static

string

Available choices for size selection criteria. The user can specify any of these choices for selecting companion ads.

Value

IGNORE

Specifies that size should be ignored when choosing companions.

SELECT_EXACT_MATCH

Specifies that only companions that match the size of the companion ad slot exactly should be chosen.

SELECT_NEAR_MATCH

Specifies that any companion close to the size of the companion ad slot should be chosen.

adSlotIds

non-null Array of string

The companion ad slot ids to be used for matching set by the user.

creativeType

non-null CompanionAdSelectionSettings.CreativeType

Creative type setting set by the user.

nearMatchPercent

number

The near fit percent set by the user.

resourceType

non-null CompanionAdSelectionSettings.ResourceType

Resource type setting set by the user.

sizeCriteria

non-null CompanionAdSelectionSettings.SizeCriteria

Size criteria setting set by the user.