Interface AdInfo

AdInfo describes the metadata and bid details for an ad placement.

interface AdInfo {
    acceptable: boolean;
    adUnitCode: string;
    auf?: string;
    bidder: string;
    c: string;
    cpm: number;
    creativeId: string;
    duration: number;
    f?: string;
    hashedEmail: boolean;
    height: number;
    href: string;
    meta?: string;
    r: string;
    refresh: boolean;
    requestId: string;
    targeting?: PlacementTargeting;
    timeToRespond?: number;
    trackerMeta?: Record<string, string>;
    type: AdInfoType;
    v?: string;
    width: number;
}

Properties

acceptable: boolean

True for acceptable ads placements

adUnitCode: string

Placement id

auf?: string

Ad Unit Format

bidder: string

Bidder id

c: string

2-letter country code

cpm: number

CPM

creativeId: string

Creative id

duration: number

duration for video ads

f?: string

Fingerprint information.

hashedEmail: boolean

Hashed User Email

height: number

Height in pixels

href: string

Current page URL

meta?: string

Any extended bid data returned with the bid

r: string

region code

refresh: boolean

If ad slot has been refreshed

requestId: string

Ad request UUID

targeting?: PlacementTargeting

Targeting information for custom dimensions reporting.

timeToRespond?: number

Bid response time in milliseconds

trackerMeta?: Record<string, string>

Additional metadata passed to the tracker to decorate data.

type: AdInfoType

ad type

v?: string

Script version

width: number

Width in pixels