diff --git a/3p/integration.js b/3p/integration.js index 09f4808fc601..261cec2c0386 100644 --- a/3p/integration.js +++ b/3p/integration.js @@ -224,6 +224,7 @@ import {runative} from '../ads/runative'; import {sas} from '../ads/sas'; import {sekindo} from '../ads/sekindo'; import {sharethrough} from '../ads/sharethrough'; +import {shemedia} from '../ads/shemedia'; import {sklik} from '../ads/sklik'; import {slimcutmedia} from '../ads/slimcutmedia'; import {smartadserver} from '../ads/smartadserver'; @@ -497,6 +498,7 @@ register('runative', runative); register('sas', sas); register('sekindo', sekindo); register('sharethrough', sharethrough); +register('shemedia', shemedia); register('sklik', sklik); register('slimcutmedia', slimcutmedia); register('smartadserver', smartadserver); diff --git a/ads/_config.js b/ads/_config.js index 98793a72fefc..e20b12efcb29 100755 --- a/ads/_config.js +++ b/ads/_config.js @@ -892,6 +892,19 @@ const adConfig = jsonConfiguration({ renderStartImplemented: true, }, + 'shemedia': { + prefetch: [ + 'https://securepubads.g.doubleclick.net/tag/js/gpt.js', + 'https://ads.shemedia.com/static/amp.js', + ], + preconnect: [ + 'https://partner.googleadservices.com', + 'https://tpc.googlesyndication.com', + 'https://ads.blogherads.com', + ], + renderStartImplemented: true, + }, + 'sklik': { prefetch: 'https://c.imedia.cz/js/amp.js', }, diff --git a/ads/shemedia.js b/ads/shemedia.js new file mode 100644 index 000000000000..3a9f0c53bb32 --- /dev/null +++ b/ads/shemedia.js @@ -0,0 +1,27 @@ +/** + * Copyright 2019 The AMP HTML Authors. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS-IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {loadScript, validateData} from '../3p/3p'; + +/** + * @param {!Window} global + * @param {!Object} data + */ +export function shemedia(global, data) { + validateData(data, ['slotType', 'boomerangPath']); + + loadScript(global, 'https://ads.shemedia.com/static/amp.js'); +} diff --git a/ads/shemedia.md b/ads/shemedia.md new file mode 100644 index 000000000000..6828d37c60e9 --- /dev/null +++ b/ads/shemedia.md @@ -0,0 +1,47 @@ + + +# SHE Media + +Your site must be an active member of the [SHE Media Partner Network](http://www.shemedia.com). Please contact [Support](mailto:support@shemedia.com) for specific tags for your site and information on configuration semantics. + + +## Examples + +```html + + +``` + + +## Configuration + +### Required parameters + +* `data-slot-type` - SHE Media slot type. +* `data-boomerang-path` - Boomerang path. + +### Optional parameters + +* `json` - Boomerang configuration key values can be passed using the `boomerangConfig` property. Custom targeting key values can be passed to Boomerang using the `targeting` property. + +### Support + +Please contact support@shemedia.com with any questions. diff --git a/examples/ads.amp.html b/examples/ads.amp.html index 5084aa65191e..ac2acb261e70 100644 --- a/examples/ads.amp.html +++ b/examples/ads.amp.html @@ -228,6 +228,7 @@ + @@ -1863,6 +1864,16 @@

Sharethrough

data-pkey="c0fa8367"> +

SHE Media

+ +
+
+
+

Sklik