Class: APSAds
Constructors
constructor
• new APSAds()
Methods
addCustomAttribute
▸ Static
addCustomAttribute(key
, value
): void
Adds a custom attribute to the APSAds SDK.
Parameters
Name | Type |
---|---|
key | string |
value | string |
Returns
void
Defined in
initialize
▸ Static
initialize(appKey
): Promise
<void
>
Initializes the APSAds SDK.
Parameters
Name | Type |
---|---|
appKey | string |
Returns
Promise
<void
>
Defined in
removeCustomAttribute
▸ Static
removeCustomAttribute(key
): void
Removes a custom attribute from the APSAds SDK.
Parameters
Name | Type |
---|---|
key | string |
Returns
void
Defined in
setAdNetworkInfo
▸ Static
setAdNetworkInfo(adNetworkInfo
): void
Sets the primary ad server or mediator.
Parameters
Name | Type |
---|---|
adNetworkInfo | AdNetworkInfo |
Returns
void
Defined in
setMRAIDPolicy
▸ Static
setMRAIDPolicy(policy
): void
Sets the MRAID policy.
Parameters
Name | Type |
---|---|
policy | MRAIDPolicy |
Returns
void
Defined in
setMRAIDSupportedVersions
▸ Static
setMRAIDSupportedVersions(versions
): void
Sets the MRAID versions supported by user ad server.
Parameters
Name | Type |
---|---|
versions | string [] |
Returns
void
Defined in
setTestMode
▸ Static
setTestMode(enabled
): void
Enable / disable the test mode for APSAds.
Parameters
Name | Type |
---|---|
enabled | boolean |
Returns
void
Defined in
setUseGeoLocation
▸ Static
setUseGeoLocation(enabled
): void
Enable / disable the geo location tracking for APSAds.
Parameters
Name | Type |
---|---|
enabled | boolean |
Returns
void