From aecab91d8631fde6196ce89e8357e201301a0dca Mon Sep 17 00:00:00 2001 From: HJK51 <70740626+HJK51@users.noreply.github.com> Date: Thu, 23 Jan 2025 19:16:30 +0900 Subject: [PATCH 1/4] Create a1ads.js --- ads/vendors/a1ads.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ads/vendors/a1ads.js diff --git a/ads/vendors/a1ads.js b/ads/vendors/a1ads.js new file mode 100644 index 000000000000..d1c7028e9d0c --- /dev/null +++ b/ads/vendors/a1ads.js @@ -0,0 +1,26 @@ +import {validateData, writeScript} from '#3p/3p'; + +/** + * @param {!Window} global + * @param {!Object} data + */ +export function a1ads(global, data) { + validateData(data, ['adhost', 'a1path', 'adtag', 'sitepage', 'pos'], ['query']); + + let url = + 'https://' + + encodeURIComponent(data.adhost) + + '/' + + data.a1path + + '/' + + data.adtag + + '/' + + data.sitepage + + '@' + + data.pos; + + if (data.query) { + url = url + '?' + data.query; + } + writeScript(global, url); +} From 14e936693c54db7231b73b87b1d38dc142a7c515 Mon Sep 17 00:00:00 2001 From: HJK51 <70740626+HJK51@users.noreply.github.com> Date: Thu, 23 Jan 2025 19:27:03 +0900 Subject: [PATCH 2/4] Create a1ads.md --- ads/vendors/a1ads.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ads/vendors/a1ads.md diff --git a/ads/vendors/a1ads.md b/ads/vendors/a1ads.md new file mode 100644 index 000000000000..286214c9d439 --- /dev/null +++ b/ads/vendors/a1ads.md @@ -0,0 +1,32 @@ +# A1 + +## Examples +### Single ad +``` + + +``` + + +## Configuration +For details on the configuration semantics, please contact the ad network or refer to their documentation. + + +### Required parameters +`adhost`: Server Hostname start with protocol. + +`sitepage`: Sitepage configured for this ad spot. + +`pos`: Position for the this ad spot. + + +### Optional parameters +`query`: Query parameter to be sent with request. Keywords and keynames, taxonomy etc. From a2b55e54fa85bdcbce32fb60938525d572200b55 Mon Sep 17 00:00:00 2001 From: HJK51 <70740626+HJK51@users.noreply.github.com> Date: Thu, 23 Jan 2025 19:32:34 +0900 Subject: [PATCH 3/4] Update a1ads.md --- ads/vendors/a1ads.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ads/vendors/a1ads.md b/ads/vendors/a1ads.md index 286214c9d439..04c054d49d43 100644 --- a/ads/vendors/a1ads.md +++ b/ads/vendors/a1ads.md @@ -8,6 +8,8 @@ height="250" type="a1ads" data-adhost="AD_SRV_HOSTNAME" + data-a1path="/path-to-server" + data-adtag="adstream_sx.ads" data-sitepage="adsite/page" data-pos="Top" data-query="keyword=keyvalue&key2=value2" @@ -17,12 +19,14 @@ ## Configuration -For details on the configuration semantics, please contact the ad network or refer to their documentation. - ### Required parameters `adhost`: Server Hostname start with protocol. +`a1path`: Path of adtag + +`adtag`: ads tag name + `sitepage`: Sitepage configured for this ad spot. `pos`: Position for the this ad spot. From cdac187a63a9d78b490dbd3f07ceb1104c16da2f Mon Sep 17 00:00:00 2001 From: HJK51 <70740626+HJK51@users.noreply.github.com> Date: Thu, 6 Mar 2025 16:32:09 +0900 Subject: [PATCH 4/4] Update _config.js --- ads/_config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ads/_config.js b/ads/_config.js index 560ba24f2e9f..e8a4a49c78de 100755 --- a/ads/_config.js +++ b/ads/_config.js @@ -66,6 +66,10 @@ const adConfig = jsonConfiguration({ renderStartImplemented: true, }, + 'a1ads': { + renderStartImplemented: true, + }, + 'a8': { prefetch: 'https://statics.a8.net/amp/ad.js', renderStartImplemented: true,