-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [AMP-Digiteka] ADD a new vendor Digiteka (#33135)
* add digiteka * WIP * WIP * Update ads.amp.html * fix avec review * remove useless file * don't touch other files * update MarkDown * WIP * updates Co-authored-by: cedric <cedric.ambrugeat@gmail.com> Co-authored-by: Marc Mulvidson <marc@digiteka.com> Co-authored-by: Marc Mulvidson <46680685+marcDigiteka@users.noreply.github.com>
- Loading branch information
1 parent
feed790
commit cad3130
Showing
6 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright 2021 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 digiteka(global, data) { | ||
/*eslint "google-camelcase/google-camelcase": 0*/ | ||
global._digiteka_amp = { | ||
allowed_data: ['mdtk', 'zone', 'adunit'], | ||
mandatory_data: ['mdtk', 'zone'], | ||
data, | ||
}; | ||
|
||
validateData( | ||
data, | ||
global._digiteka_amp.mandatory_data, | ||
global._digiteka_amp.allowed_data | ||
); | ||
|
||
loadScript(global, 'https://ot.digiteka.com/amp.js'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!--- | ||
Copyright 2021 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. | ||
--> | ||
|
||
# Digiteka | ||
|
||
## Example | ||
|
||
### Basic | ||
|
||
```html | ||
<amp-ad | ||
width="300" | ||
height="1" | ||
type="digiteka" | ||
layout="responsive" | ||
data-mdtk="01212121" | ||
data-zone="1" | ||
data-adunit="/accountId/AdUnitCode" | ||
> | ||
</amp-ad> | ||
``` | ||
|
||
## Configuration | ||
|
||
For configuration semantics, please [contact Digiteka](http://digiteka.com). | ||
|
||
Supported parameters: | ||
|
||
- `mdtk` (required) | ||
- `zone` (required) | ||
- `adunit` (optionnal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters