MCPcopy Create free account
hub / github.com/ampproject/amphtml / pulsepoint

Function pulsepoint

ads/vendors/pulsepoint.js:9–17  ·  view source on GitHub ↗
(global, data)

Source from the content-addressed store, hash-verified

7 * @param {!Object} data
8 */
9export function pulsepoint(global, data) {
10 // TODO: check mandatory fields
11 validateData(data, [], ['pid', 'tagid', 'tagtype', 'slot', 'timeout']);
12 if (data.tagtype === 'hb') {
13 headerBidding(global, data);
14 } else {
15 tag(global, data);
16 }
17}
18
19/**
20 * @param {!Window} global

Callers

nothing calls this directly

Calls 3

validateDataFunction · 0.90
headerBiddingFunction · 0.85
tagFunction · 0.85

Tested by

no test coverage detected