Skip to content

Commit

Permalink
♻️ amp-ad adocean: remove unnecessary preview ID #1 (#28443)
Browse files Browse the repository at this point in the history
* [ADOCEAN-20673] remove livepreview1

* fix lint error
  • Loading branch information
jdrobiecki authored May 28, 2020
1 parent 0e0eda7 commit 07ce92d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions ads/adocean.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ function setupPreview(global, data) {
if (global.ado && data.aoPreview && !isFalseString(data.aoPreview)) {
global.ado.preview({
enabled: true,
emiter: data['aoEmitter'],
id: data['aoPreview'],
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions ads/adocean.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ For details on the configuration semantics, see [AdOcean documentation](http://w
### Optional parameters

- `data-ao-mode` - sync|buffered - processing mode
- `data-ao-preview` - livepreview configuration id
- `data-ao-preview` - true|false - whether livepreview is enabled
- `data-ao-keys` - additional configuration, see adserver documentation, do not define different values for slaves within one master
- `data-ao-vars` - additional configuration, see adserver documentation, do not define different values for slaves within one master
- `data-ao-clusters` - additional configuration,see adserver documentation
- `data-ao-clusters` - additional configuration, see adserver documentation
- `data-ao-master` - unique id of master placement

## User Consent Integration
Expand Down
8 changes: 4 additions & 4 deletions examples/ads.amp.esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ <h2>AdOcean</h2>
data-ao-mode="sync"
data-ao-emitter="myao.adocean.pl"
data-ao-id="ado-vf2X22YCNzPRUVYmLg.jQb53Xb1BcMbzJlwIv7SLH_f.97"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand All @@ -535,7 +535,7 @@ <h2>AdOcean</h2>
data-ao-mode="buffered"
data-ao-emitter="myao.adocean.pl"
data-ao-id="ado-vf2X22YCNzPRUVYmLg.jQb53Xb1BcMbzJlwIv7SLH_f.97"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand All @@ -549,7 +549,7 @@ <h2>AdOcean master-slave</h2>
data-ao-master="FDyQKk0qN2a9SxwCMal6Eove..r_lvBE3pPfr_Ier9..f7"
data-ao-id="adoceanmyaonhqnqukjtt"
data-ao-mode="buffered"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand All @@ -562,7 +562,7 @@ <h2>AdOcean master-slave</h2>
data-ao-master="FDyQKk0qN2a9SxwCMal6Eove..r_lvBE3pPfr_Ier9..f7"
data-ao-id="adoceanmyaokiheeseoko"
data-ao-mode="buffered"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand Down
8 changes: 4 additions & 4 deletions examples/ads.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ <h2>AdOcean</h2>
data-ao-mode="sync"
data-ao-emitter="myao.adocean.pl"
data-ao-id="ado-vf2X22YCNzPRUVYmLg.jQb53Xb1BcMbzJlwIv7SLH_f.97"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand All @@ -540,7 +540,7 @@ <h2>AdOcean</h2>
data-ao-mode="buffered"
data-ao-emitter="myao.adocean.pl"
data-ao-id="ado-vf2X22YCNzPRUVYmLg.jQb53Xb1BcMbzJlwIv7SLH_f.97"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand All @@ -554,7 +554,7 @@ <h2>AdOcean master-slave</h2>
data-ao-master="FDyQKk0qN2a9SxwCMal6Eove..r_lvBE3pPfr_Ier9..f7"
data-ao-id="adoceanmyaonhqnqukjtt"
data-ao-mode="buffered"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand All @@ -567,7 +567,7 @@ <h2>AdOcean master-slave</h2>
data-ao-master="FDyQKk0qN2a9SxwCMal6Eove..r_lvBE3pPfr_Ier9..f7"
data-ao-id="adoceanmyaokiheeseoko"
data-ao-mode="buffered"
data-ao-preview="y6g3tTbLJv6vLRZ.AfyeiXkCPM0gL3CNAik2rwTzhKD.N7"
data-ao-preview="true"
data-ao-keys="key1,key2,key3"
data-ao-vars='{"a":"b","c":"d"}'
data-ao-clusters='{"clusterA":[-1,2,-3,63], "clusterB":[1,-63]}'
Expand Down

0 comments on commit 07ce92d

Please sign in to comment.