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

Function resizeAd

examples/ac-creative.js:68–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68function resizeAd() {
69 window.context
70 .requestResize(500, 600)
71 .then(function () {
72 console.log('Success!');
73 this.innerWidth = 500;
74 this.innerHeight = 600;
75 })
76 .catch(function () {
77 console.log('DENIED');
78 });
79}

Callers

nothing calls this directly

Calls 4

catchMethod · 0.80
requestResizeMethod · 0.80
thenMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected