Skip to content

Commit

Permalink
added skoiy ad network to amp-ad vendors (#38926)
Browse files Browse the repository at this point in the history
  • Loading branch information
psilvask committed May 23, 2023
1 parent 7f777dc commit c7c16e5
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 1 deletion.
12 changes: 12 additions & 0 deletions 3p/vendors/skoiy.js
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 {skoiy} from '#ads/vendors/skoiy';

init(window);
register('skoiy', skoiy);

window.draw3p = draw3p;
4 changes: 4 additions & 0 deletions ads/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,10 @@ const adConfig = jsonConfiguration({
prefetch: 'https://c.imedia.cz/js/amp.js',
},

'skoiy': {
preconnect: ['https://svas.skoiy.xyz'],
},

'slimcutmedia': {
preconnect: [
'https://sb.freeskreen.com',
Expand Down
17 changes: 17 additions & 0 deletions ads/vendors/skoiy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {validateData, writeScript} from '#3p/3p';

/**
* @param {!Window} global
* @param {!Object} data
*/
export function skoiy(global, data) {
// TODO: check mandatory fields
validateData(data, ['token', 'format', 'id'], ['query']);

const {format, id, query = '', token} = data;

const options = query ? '&' + query : '';

const url = `https://svas.skoiy.xyz/${format}/${token}/${id}?amp${options}`;
writeScript(global, url);
}
26 changes: 26 additions & 0 deletions ads/vendors/skoiy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
![skoiy logo](https://skoiy.com/img/logos/logo-skoiy.svg)

Skoiy is an integrated suite of platforms that simplify and centralize the management, distribution, and monetization of digital media across a suite of independent platforms that fit the needs of each project.

## Example

```html
<amp-ad
layout="fixed-height"
height="454"
type="skoiy"
data-token="5nff7dqpce5u4moq"
data-format="carousel"
data-id="8462514974">
</amp-ad>
```

### Required parameters

- `data-token`
- `data-format`
- `data-id`

### Optional parameters

- `data-query`
8 changes: 7 additions & 1 deletion examples/amp-ad/ads.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@
<option>sharethrough</option>
<option>shemedia</option>
<option>sklik</option>
<option>skoiy</option>
<option>slimcutmedia</option>
<option>smartadserver</option>
<option>smartclip</option>
Expand Down Expand Up @@ -1733,6 +1734,11 @@ <h2>Sklik</h2>
<amp-ad width="970" height="310" type="sklik" json='{"zoneId":0, "w": 970, "h": 310}'>
</amp-ad>

<h2>Skoiy</h2>
<amp-ad layout="fixed-height" height="454" type="skoiy" data-token="5nff7dqpce5u4moq" data-format="carousel"
data-id="8462514974">
</amp-ad>

<h2>SlimCut Media</h2>
<amp-ad width="400" height="225" type="slimcutmedia" data-pid="amp-3" data-ffc="SCMPROMO">
</amp-ad>
Expand Down Expand Up @@ -2068,4 +2074,4 @@ <h2>Zucks</h2>
</amp-ad>
</body>

</html>
</html>
1 change: 1 addition & 0 deletions extensions/amp-ad/amp-ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ See [amp-ad rules](validator-amp-ad.protoascii) in the AMP validator specificati
- [Sharethrough](../../ads/vendors/sharethrough.md)
- [SHE Media](../../ads/vendors/shemedia.md)
- [Sklik](../../ads/vendors/sklik.md)
- [Skoiy](../../ads/vendors/skoiy.md)
- [SSP](../../ads/vendors/ssp.md)
- [SlimCut Media](../../ads/vendors/slimcutmedia.md)
- [Smart AdServer](../amp-ad-network-smartadserver-impl/amp-ad-network-smartadserver-impl-internal.md)
Expand Down

0 comments on commit c7c16e5

Please sign in to comment.