forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new vendor IncrementX (ampproject#39237)
* Add files via upload * Add files via upload * Add files via upload * Update integration.js * Update _config.js * Update ads.amp.html * Update ads.amp.html * Update ads.amp.esm.html * Update amp-ad.md * Update ads.html * Update ads.out * Update integration.js removed the lines of incrementx * Update ads.out removed incrementx lines * Update ads.amp.esm.html removed whitespaces on both the lines * Update incrementx.js
- Loading branch information
1 parent
7a17f37
commit 2b25653
Showing
8 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// src/polyfills.js must be the first import. | ||
import '#3p/polyfills'; | ||
|
||
import {register} from '#3p/3p'; | ||
import {draw3p, init} from '#3p/integration-lib'; | ||
|
||
import {incrementx} from '#ads/vendors/incrementx'; | ||
|
||
init(window); | ||
register('incrementx', incrementx); | ||
|
||
window.draw3p = draw3p; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {validateData, writeScript} from '#3p/3p'; | ||
|
||
/** | ||
* @param {!Window} global | ||
* @param {!Object} data | ||
*/ | ||
export function incrementx(global, data) { | ||
validateData(data, ['vzid']); | ||
global.ixParam = data; | ||
writeScript(global, 'https://cdn.incrementxserv.com/ixamp.js'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# incrementx | ||
|
||
## Example | ||
|
||
```html | ||
<amp-ad | ||
width="320" | ||
height="50" | ||
type="incrementx" | ||
data-vzid="PNXW125273VB49B96"> | ||
</amp-ad> | ||
``` | ||
|
||
## Configuration | ||
|
||
For configuration details and to generate your tags, please contact https://www.incrementx.com/contact-us. | ||
|
||
Supported parameters: | ||
|
||
- `data-vzid` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters