跳转到主要内容
定向参数中不得传入任何可识别用户身份的数据(包括姓名、地址或用户ID)。 You may not pass any user-identifiable data (including names, addresses, or user IDs) in targeting.
key
string
必填
定向键 The targeting key
value
string
必填
定向值 The targeting value
reviq.setKv("key", "value");
reviq.setKv("dog", "woof");
reviq.setKv("cat", "meow");
googletag.pubads().getTargeting("key"); //= ["value"]
googletag.pubads().getTargeting("foo"); //= ["bar"]
googletag.pubads().getTargeting("cat"); //= ["meow"]

setKvs

setKvs是一个便捷方法,用于一次性设置多个键值对。它接受一个对象作为参数,其中的键为定向键,值为定向值。 The setKvs method is a convenience method for setting multiple key-value pairs at once. It accepts an object where the keys are the targeting keys and the values are the targeting values.
kvs
object
必填
包含多个键值对的对象 An object of key-value pairs