interface IAdUnitParams {
    adFormat?: "auto" | AdUnitFormat | AdUnitFormat[];
    el: string | HTMLElement;
    fullWidthResponsive?: "true" | "false";
    slot?: string;
    style?: string;
}

Properties

adFormat?: "auto" | AdUnitFormat | AdUnitFormat[]

(OPTIONAL) Ad format for the ad unit. Can be 'auto' or a single format or an array of formats. Default is 'auto'. If passed as an array, the array will be joined by ', ' and pass to the data-ad-format attribute.

el: string | HTMLElement

The element to attach the ad unit to, either an HTMLElement or a string selector. Should be the parent element of the ad unit ( tag).

fullWidthResponsive?: "true" | "false"

(OPTIONAL) Whether the ad unit should be full width and responsive. Default is false.

slot?: string

(OPTIONAL) Reserved for future usage. The slot ID of the ad unit. Currently the slot ID is automatically set by the SDK.

style?: string

(OPTIONAL) Custom style for the ad unit. Default is empty.