目录

ppsads.setGlobalRequestConfig(object)

Overview

Sets global ad request parameters.

Parameters

Parameter

Mandatory

Type

Description

childProtectionTag

No

number

Tag indicating whether to process ad requests according to the COPPA.

For details about parameter values, please refer to TagForChild.

underAgeOfPromiseTag

No

number

Tag indicating whether to process ad requests as directed to users under the age of consent.

  • 1: does not process ad requests as directed to users under the age of consent.
  • 0: processes ad requests as directed to users under the age of consent.
  • -1: whether to process ad requests as directed to users under the age of consent is not specified.

adContentClassification

No

String

Ad content ratings.

For details about parameter values, please refer to ContentClassification.

nonPersonalizedAd

No

number

Indicates whether to request only non-personalized ads.

For details about parameter values, please refer to NonPersonalizedAd.

appLang

No

String

Language in which an ad needs to be returned for an app.

appCountry

No

String

Country/Region code corresponding to the language in which an ad needs to be returned for an app.

appInstalledNotify

No

boolean

Indicates whether to enable an app activation reminder pop-up.

  • true: enable
  • false: disable

appActivateStyle

No

number

Style of an app activation reminder pop-up.

  • 1: banner at the bottom
  • 2: confirmation pop-up

consent

No

String

User consent string, which complies with Consent String Format in TCF v2.0.

belongCountry

No

String

Country/Region to which a device belongs. Example: CN

extras

No

object

Additional information about an ad request.

isQueryUseEnabled

No

number

Whether search keywords can be used.

For details about parameter values, please refer to IsQueryUseEnabled.