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

Function createAdUnit

ads/vendors/vmfive.js:43–48  ·  view source on GitHub ↗

* @param {!Window} win * @param {string} placementId * @param {string} adType

(win, placementId, adType)

Source from the content-addressed store, hash-verified

41 * @param {string} adType
42 */
43function createAdUnit(win, placementId, adType) {
44 const el = document.createElement('vmfive-ad-unit');
45 el.setAttribute('placement-id', placementId);
46 el.setAttribute('ad-type', adType);
47 win.document.getElementById('c').appendChild(el);
48}
49
50/**
51 * @param {!Window} win

Callers 1

vmfiveFunction · 0.70

Calls 2

setAttributeMethod · 0.45
getElementByIdMethod · 0.45

Tested by

no test coverage detected