diff --git a/3p/integration.js b/3p/integration.js index b6e65bb82b36..682e51677b36 100644 --- a/3p/integration.js +++ b/3p/integration.js @@ -66,6 +66,7 @@ import {gmossp} from '../ads/gmossp'; import {weboramaDisplay} from '../ads/weborama'; import {adstir} from '../ads/adstir'; import {colombia} from '../ads/colombia'; +import {sharethrough} from '../ads/sharethrough'; import {eplanning} from '../ads/eplanning'; @@ -118,6 +119,7 @@ register('weborama-display', weboramaDisplay); register('yieldbot', yieldbot); register('adstir', adstir); register('colombia', colombia); +register('sharethrough', sharethrough); register('eplanning', eplanning); // For backward compat, we always allow these types without the iframe diff --git a/ads/sharethrough.js b/ads/sharethrough.js new file mode 100644 index 000000000000..84af0f6c2ffc --- /dev/null +++ b/ads/sharethrough.js @@ -0,0 +1,28 @@ +/** + * Copyright 2016 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 {writeScript, checkData, validateDataExists} from '../src/3p'; + +/** + * @param {!Window} global + * @param {!Object} data + */ +export function sharethrough(global, data) { + checkData(data, ['pkey']); + validateDataExists(data, ['pkey']); + global.pkey = data.pkey; + writeScript(global, 'https://native.sharethrough.com/iframe/amp.js'); +} diff --git a/ads/sharethrough.md b/ads/sharethrough.md new file mode 100644 index 000000000000..3820cc7d5959 --- /dev/null +++ b/ads/sharethrough.md @@ -0,0 +1,37 @@ + + +# Sharethrough + +## Example + +### Basic + +```html + + +``` + +## Configuration + +For semantics of configuration, please [contact Sharethrough](mailto:pubsupport@sharethrough.com). + +Required Parameters: + +- ```data-pkey``` (String, non-empty) The unique identifier for your placement diff --git a/builtins/amp-ad.md b/builtins/amp-ad.md index c79df05b1bc8..26c8f66595cd 100644 --- a/builtins/amp-ad.md +++ b/builtins/amp-ad.md @@ -88,6 +88,7 @@ resources in AMP. It requires a `type` argument that select what ad network is d - [PubMatic](../ads/pubmatic.md) - [Revcontent](../ads/revcontent.md) - [Rubicon Project](../ads/rubicon.md) +- [Sharethrough](../ads/sharethrough.md) - [Smart AdServer](../ads/smartadserver.md) - [Sortable](../ads/sortable.md) - [TripleLift](../ads/triplelift.md) diff --git a/examples/ads.amp.html b/examples/ads.amp.html index ab598a01a4ec..205bd342912d 100644 --- a/examples/ads.amp.html +++ b/examples/ads.amp.html @@ -393,6 +393,13 @@

Colombia ad

data-clmb_section="0"> +

Sharethrough

+ + +

E-Planning 320x50