Wiki

Clone wiki

REACT native plugin / setTargetingInfoForPlacement

Overview

Sets the targeting information for the given placement. Information provided for placement overrides targeting information for application set by the setTargetingInfo. Note: This function doesn't affect in-feed banner ads. For in-feed banner placement, please use setTargetingInfoForInFeedBannerPlacement function.

Syntax

setTargetingInfoForPlacement(placementName, info)
placementName(required)

string. Placement identifier.

info(required)

The JSON object containing targeting information.

Examples

#!javascript

RNAatkit.setTargetingInfoForPlacement(
    "BannerPlacement",
    {
        "abc" : [
            "123",
            "456",
            "789"
        ],
        "def" : [
            "xyz",
            "zyx"
        ]
    }
);

Updated