Skip to content

Commit

Permalink
TE Medya Widget Update (#26850)
Browse files Browse the repository at this point in the history
* Add files via upload

* Add files via upload

* Update temedya.js

* Update integration.js

* Update _config.js

* Update temedya.js

* Update ads.amp.html

* Update _config.js

* Update amp-ad.md

* Update temedya.md

* Update _config.js

* Update temedya.js

* Update temedya.js

* Update temedya.js

* Update _config.js

* Update _config.js

* Update temedya.js

* Update temedya.js

* Update temedya.md

* Update temedya.md

* Update temedya.js

* Update temedya.js

* Update temedya.js

* Update temedya.md

* Update temedya.md

* Update temedya.md

* Update temedya.js

* Update temedya.md

* Update temedya.md

* Update temedya.md

* Update temedya.js
  • Loading branch information
vidyome committed Feb 19, 2020
1 parent abb47cd commit 9d61217
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
18 changes: 9 additions & 9 deletions ads/temedya.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ import {loadScript, validateData} from '../3p/3p';
* @param {!Object} data
*/
export function temedya(global, data) {
validateData(data, ['title']);
validateData(data, ['keyid']);
global._temedya = global._temedya || {
title: data.title,
keyId: data.keyId,
siteId: data.siteId,
siteUrl: data.siteUrl,
typeId: data.typeId,
paidItem: data.paidItem,
organicItem: data.organicItem,
theme: data.theme,
title: data['title'] || 'false',
keyId: data['keyid'],
siteId: data['siteid'],
siteUrl: data['siteurl'] || global.context.canonicalUrl,
typeId: data['typeid'] || 7,
paidItem: data['paiditem'] || 4,
organicItem: data['organicitem'] || 0,
theme: data['theme'] || 'google',
};
global._temedya.AMPCallbacks = {
renderStart: global.context.renderStart,
Expand Down
3 changes: 2 additions & 1 deletion ads/temedya.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!---
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
Expand Down Expand Up @@ -50,4 +51,4 @@ For details on the configuration semantics, please contact the ad network or ref
- `data-typeId`: Widget Type ID (7)
- `data-paidItem`: Paid Item Count
- `data-organicItem`: Organic Item Count
- `data-theme`: Theme Type (light or dark)
- `data-theme`: Theme Type (light | dark | google)

0 comments on commit 9d61217

Please sign in to comment.