Skip to content

Commit

Permalink
add new ads network - relappro (#27824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Cuevas committed Apr 24, 2020
1 parent 97453bd commit 0e37e99
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3p/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ import {readmo} from '../ads/readmo';
import {realclick} from '../ads/realclick';
import {recomad} from '../ads/recomad';
import {relap} from '../ads/relap';
import {relappro} from '../ads/relappro';
import {revcontent} from '../ads/revcontent';
import {revjet} from '../ads/revjet';
import {rfp} from '../ads/rfp';
Expand Down Expand Up @@ -520,6 +521,7 @@ register('realclick', realclick);
register('reddit', reddit);
register('recomad', recomad);
register('relap', relap);
register('relappro', relappro);
register('revcontent', revcontent);
register('revjet', revjet);
register('rfp', rfp);
Expand Down
6 changes: 6 additions & 0 deletions ads/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,12 @@ const adConfig = jsonConfiguration({
renderStartImplemented: true,
},

'relappro': {
prefetch: 'https://cdn.relappro.com/adservices/amp/relappro.amp.min.js',
preconnect: 'https://tags.relappro.com',
renderStartImplemented: true,
},

'revcontent': {
prefetch:
'https://labs-cdn.revcontent.com/build/amphtml/revcontent.amp.min.js',
Expand Down
31 changes: 31 additions & 0 deletions ads/relappro.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright 2020 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 relappro(global, data) {
validateData(data, [], ['slotId', 'nameAdUnit', 'requirements']);
global.params = data;

loadScript(
global,
'https://cdn.relappro.com/adservices/amp/relappro.amp.min.js'
);
}
39 changes: 39 additions & 0 deletions ads/relappro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!---
Copyright 2020 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.
-->

# Relap

## Example

```html
<amp-ad
width="300"
height="250"
type="relappro"
data-slot-id="b1928542-4217-486f-b42c-79f0f3290b39"
>
</amp-ad>
```

## Configuration

For configuration details and to generate your tags, please contact us at [RelapPro's contact page](https://www.relappro.com/en/contact-relappro/).

Supported parameters:

- `data-slot-id`
- `data-name-ad-unit`
- `data-requirements`
6 changes: 6 additions & 0 deletions examples/ads.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,12 @@ <h2>Relap</h2>
data-anchorid="i0xMMY1MoliiZWVl">
</amp-ad>

<h2>RelapPro</h2>
<amp-ad width="300" height="250"
type="relappro"
data-slot-id="b1928542-4217-486f-b42c-79f0f3290b39">
</amp-ad>

<h2>Revcontent Responsive Tag</h2>
<amp-ad width="320" height="240"
type="revcontent"
Expand Down
1 change: 1 addition & 0 deletions extensions/amp-ad/amp-ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ See [amp-ad rules](https://github.com/ampproject/amphtml/blob/master/extensions/
- [recomAD](../../ads/recomad.md)
- [Red for Publishers](../../ads/rfp.md)
- [Relap](../../ads/relap.md)
- [RelapPro](../../ads/relappro.md)
- [Revcontent](../../ads/revcontent.md)
- [RevJet](../../ads/revjet.md)
- [rnetplus](../../ads/rnetplus.md)
Expand Down

0 comments on commit 0e37e99

Please sign in to comment.