Skip to main content

Class: APSAds

Constructors

constructor

new APSAds()

Methods

addCustomAttribute

Static addCustomAttribute(key, value): void

Adds a custom attribute to the APSAds SDK.

Parameters

NameTypeDescription
keystringThe key of the custom attribute
valuestringThe value of the custom attribute

Returns

void

Defined in

src/APSAds.ts:129


initialize

Static initialize(appKey): Promise<void>

Initializes the APSAds SDK.

Parameters

NameTypeDescription
appKeystringGenerated APS app key from the APS portal

Returns

Promise<void>

Defined in

src/APSAds.ts:35


removeCustomAttribute

Static removeCustomAttribute(key): void

Removes a custom attribute from the APSAds SDK.

Parameters

NameTypeDescription
keystringThe key of the custom attribute

Returns

void

Defined in

src/APSAds.ts:149


setAdNetworkInfo

Static setAdNetworkInfo(adNetworkInfo): void

Sets the primary ad server or mediator.

Parameters

NameTypeDescription
adNetworkInfoAdNetworkInfoAdNetworkInfo object containing the primary ad network and its properties

Returns

void

Defined in

src/APSAds.ts:48


setMRAIDPolicy

Static setMRAIDPolicy(policy): void

Sets the MRAID policy.

Parameters

NameTypeDescription
policyMRAIDPolicyMRAIDPolicy value. MRAIDPolicy.DFP for Google Ad Manager and MRAIDPolicy.CUSTOM for other ad server / mediation.

Returns

void

Defined in

src/APSAds.ts:83


setMRAIDSupportedVersions

Static setMRAIDSupportedVersions(versions): void

Sets the MRAID versions supported by user ad server.

Parameters

NameTypeDescription
versionsstring[]Array of supported versions

Returns

void

Defined in

src/APSAds.ts:65


setTestMode

Static setTestMode(enabled): void

Enable / disable the test mode for APSAds.

Parameters

NameTypeDescription
enabledbooleanWhether to enable or disable the test mode.

Returns

void

Defined in

src/APSAds.ts:98


setUseGeoLocation

Static setUseGeoLocation(enabled): void

Enable / disable the geo location tracking for APSAds.

Parameters

NameTypeDescription
enabledbooleanWhether to enable or disable the geo location tracking.

Returns

void

Defined in

src/APSAds.ts:113