Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new ad network jixie ✨ New feature (#35128)
* added the jixie 3p * changed to do a universal ad * clean up and simplification * delete a file added by accident * adding the client id scope and cookie name for jixie ad network * Update jixie.md * Update jixie.js * corrected some style problems e.g. relative path usage etc * removed a space which caused linting failures * fixing 2 other linting concerns : unused variable and space char
- Loading branch information
1 parent
53d97f1
commit 7ff3a9d
Showing
7 changed files
with
116 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
// src/polyfills.js must be the first import. | ||
import '#3p/polyfills'; | ||
|
||
import {draw3p, init} from '#3p/integration-lib'; | ||
import {register} from '#3p/3p'; | ||
|
||
import {jixie} from '#ads/vendors/jixie'; | ||
init(window); | ||
register('jixie', jixie); | ||
|
||
window.draw3p = draw3p; |
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,26 @@ | ||
/** | ||
* 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} from '#3p/3p'; | ||
|
||
/** | ||
* @param {!Window} global | ||
*/ | ||
export function jixie(global) { | ||
// For flexibility, all validations are performed in the | ||
// Jixie side based on the data on the page for the amp-ad | ||
loadScript(global, 'https://scripts.jixie.io/jxamp.min.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,45 @@ | ||
<!--- | ||
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. | ||
--> | ||
|
||
# JIXIE | ||
|
||
## Example of JIXIE AD implementation | ||
|
||
```html | ||
<amp-ad | ||
width="300" | ||
height="250" | ||
type="jixie" | ||
layout="responsive" | ||
data-unit="ADUNIT_CODE" | ||
data-cid="800" | ||
data-options='{"miscParams":{"reserve1":"test1","reserve2":"test2"}}' | ||
> | ||
</amp-ad> | ||
``` | ||
|
||
## Configuration | ||
|
||
For details on the configuration semantics, please contact JIXIE | ||
|
||
### Required parameters | ||
|
||
- `data-unit`: ADUNIT_CODE (given by jixie to the publisher) | ||
|
||
### Optional parameters | ||
|
||
- `data-cid`: specific creative id | ||
- `data-options`: stringified json object with miscellaenous info |
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