Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 Pressboard vendor updates #34188

Merged
merged 4 commits into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ads/vendors/pressboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {loadScript, validateData} from '../../3p/3p';
*/
export function pressboard(global, data) {
validateData(data, ['media']);
data.baseUrl = 'https://adserver.pressboard.ca';
data.baseUrl = 'https://sr.studiostack.com';
global.pbParams = data;
loadScript(
global,
Expand Down
2 changes: 1 addition & 1 deletion ads/vendors/pressboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.

## Configuration

For details on configuration, see [Pressboard documentation](http://help.pressboard.ca/publisher-resources/getting-started/implementing-google-amp).
For details on configuration, see [Pressboard documentation](https://help.pressboardmedia.com/implementing-google-amp).

### Required parameters

Expand Down
8 changes: 2 additions & 6 deletions examples/analytics-vendors.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -1373,19 +1373,15 @@
<!-- End PPAS analytics example -->

<!-- Pressboard tracking. Ensure you replace &media value with a valid media-id, and &ref value with an html-encoded URL of a pressboard sponsored story related to the used media-id -->
<amp-analytics type="pressboard" id="pressboard" config="https://adserver.pressboard.ca/amp/config?media=5&ref=http%3A%2F%2Fwww.pressboardmedia.com%2Fnative-advertising-advice-from-the-co-founder-of-stackadapt%2F">
<amp-analytics type="pressboard" id="pressboard" config="https://sr.studiostack.com/amp/config?media=5&ref=http%3A%2F%2Fwww.pressboardmedia.com%2Fnative-advertising-advice-from-the-co-founder-of-stackadapt%2F">
<script type="application/json">
{
"vars": {
"mediaId": "",
"campaignId": "",
"storyRequestId": "",
"geoNameId": "",
"country": "",
"region": "",
"city": "",
"dbInstance": "",
"timeZoneOffset": ""
"city": ""
}
}
</script>
Expand Down
8 changes: 4 additions & 4 deletions extensions/amp-analytics/0.1/test/vendor-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@
"goal": "https://!host/ppms.php?idgoal=!goal_id&revenue=!revenue&idsite=!website_id&rec=1&r=_substr(_replace(_random_%2C0.%2C)_%2C0%2C6)_&url=_source_url_&_id=_if(_match(_replace(_client_id(_pk_id.!website_id.!website_hash)__%2C%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%2C)__%2Camp-%2C0)%2C_substr(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_replace(_substr(_tolowercase(_replace(_client_id(_pk_id.!website_id.!website_hash)__%2C%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%2C)__)_%2C4%2C16)_%2Cg%2C10)_%2Ch%2C11)_%2Ci%2C12)_%2Cj%2C13)_%2Ck%2C14)_%2Cl%2C15)_%2Cm%2C16)_%2Cn%2C17)_%2Co%2C18)_%2Cp%2C19)_%2Cq%2C1a)_%2Cr%2C1b)_%2Cs%2C1c)_%2Ct%2C1d)_%2Cu%2C1e)_%2Cv%2C1f)_%2Cw%2C20)_%2Cx%2C21)_%2Cy%2C22)_%2Cz%2C23)_%2CA%2C24)_%2CB%2C25)_%2CC%2C26)_%2CD%2C27)_%2CE%2C28)_%2CF%2C29)_%2CG%2C2a)_%2CH%2C2b)_%2CI%2C2c)_%2CJ%2C2d)_%2CK%2C2e)_%2CL%2C2f)_%2CM%2C30)_%2CN%2C31)_%2CO%2C32)_%2CP%2C33)_%2CQ%2C34)_%2CR%2C35)_%2CS%2C36)_%2CT%2C37)_%2CU%2C38)_%2CV%2C39)_%2CW%2C3a)_%2CX%2C3b)_%2CY%2C3c)_%2CZ%2C3d)_%2C_%2C3e)_%2C-%2C3f)%2C0%2C16)%2C_replace(_client_id(_pk_id.!website_id.!website_hash)_%2C%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%5BA-Za-z0-9%5D*%5C.%2C)_)&apiv=1&urlref=_document_referrer_&res=_screen_width_x_screen_height_&lang=_browser_language_&gt_ms=_server_response_time_&cs=_document_charset_&pv_id=_substr(_page_view_id_64_%2C0%2C6)_"
},
"pressboard": {
"host": "https://adserver.pressboard.ca",
"common_params": "&amp=1&url=_canonical_url_&referrer=_document_referrer_&ts=_timestamp_&ua=_user_agent_&rand=_random_&uid=_client_id(_pressboardmedia)_&mid=!mediaId&cid=!campaignId&sid=!storyRequestId&geoid=!geoNameId&cn=!country&rg=!region&ct=!city&dbi=!dbInstance&tz=!timeZoneOffset",
"conversion_params": "&hbt=1&pvid=_page_view_id_&asurl=_source_url_&ash=_scroll_height_&asnh=_screen_height_&aasnh=_available_screen_height_&avh=_viewport_height_&ast=_scroll_top_&atet=_total_engaged_time_",
"conversion": "https://adserver.pressboard.ca/track/attention-amp?&amp=1&url=_canonical_url_&referrer=_document_referrer_&ts=_timestamp_&ua=_user_agent_&rand=_random_&uid=_client_id(_pressboardmedia)_&mid=!mediaId&cid=!campaignId&sid=!storyRequestId&geoid=!geoNameId&cn=!country&rg=!region&ct=!city&dbi=!dbInstance&tz=!timeZoneOffset&hbt=1&pvid=_page_view_id_&asurl=_source_url_&ash=_scroll_height_&asnh=_screen_height_&aasnh=_available_screen_height_&avh=_viewport_height_&ast=_scroll_top_&atet=_total_engaged_time_"
"host": "https://sr.studiostack.com",
"common_params": "&amp=1&url=_canonical_url_&referrer=_document_referrer_&ts=_timestamp_&ua=_user_agent_&rand=_random_&uid=_client_id(_pbss)_&mid=!mediaId&geoid=!geoNameId&cn=!country&rg=!region&ct=!city",
"conversion_params": "&hbt=1&pvid=_page_view_id_64_&asurl=_source_url_&ash=_scroll_height_&asnh=_screen_height_&aasnh=_available_screen_height_&avh=_viewport_height_&ast=_scroll_top_&atet=_total_engaged_time_",
"conversion": "https://sr.studiostack.com/track/attention-amp?&amp=1&url=_canonical_url_&referrer=_document_referrer_&ts=_timestamp_&ua=_user_agent_&rand=_random_&uid=_client_id(_pbss)_&mid=!mediaId&geoid=!geoNameId&cn=!country&rg=!region&ct=!city&hbt=1&pvid=_page_view_id_64_&asurl=_source_url_&ash=_scroll_height_&asnh=_screen_height_&aasnh=_available_screen_height_&avh=_viewport_height_&ast=_scroll_top_&atet=_total_engaged_time_"
},
"subscriptions-propensity": {
"baseParams": "u_tz=240&v=1&cookie=_client_id(__gads)_&cdm=!sourceHostName&_amp_source_origin=_source_host_&extrainfo=",
Expand Down
14 changes: 5 additions & 9 deletions extensions/amp-analytics/0.1/vendors/pressboard.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"vars": {
"mediaId": "",
"campaignId": "",
"storyRequestId": "",
"geoNameId": "",
"country": "",
"region": "",
"city": "",
"dbInstance": "",
"timeZoneOffset": "",
"clientId": "CLIENT_ID(_pressboardmedia)"
"clientId": "CLIENT_ID(_pbss)"
},
"requests": {
"host": "https://adserver.pressboard.ca",
"common_params": "&amp=1&url=${canonicalUrl}&referrer=${documentReferrer}&ts=${timestamp}&ua=${userAgent}&rand=${random}&uid=${clientId}&mid=${mediaId}&cid=${campaignId}&sid=${storyRequestId}&geoid=${geoNameId}&cn=${country}&rg=${region}&ct=${city}&dbi=${dbInstance}&tz=${timeZoneOffset}",
"conversion_params": "&hbt=${requestCount}&pvid=${pageViewId}&asurl=${sourceUrl}&ash=${scrollHeight}&asnh=${screenHeight}&aasnh=${availableScreenHeight}&avh=${viewportHeight}&ast=${scrollTop}&atet=${totalEngagedTime}",
"host": "https://sr.studiostack.com",
"common_params": "&amp=1&url=${canonicalUrl}&referrer=${documentReferrer}&ts=${timestamp}&ua=${userAgent}&rand=${random}&uid=${clientId}&mid=${mediaId}&geoid=${geoNameId}&cn=${country}&rg=${region}&ct=${city}",
"conversion_params": "&hbt=${requestCount}&pvid=${pageViewId64}&asurl=${sourceUrl}&ash=${scrollHeight}&asnh=${screenHeight}&aasnh=${availableScreenHeight}&avh=${viewportHeight}&ast=${scrollTop}&atet=${totalEngagedTime}",
"conversion": "${host}/track/attention-amp?${common_params}${conversion_params}"
},
"triggers": {
Expand All @@ -34,7 +30,7 @@
},
"transport": {
"beacon": false,
"xhrpost": false,
"xhrpost": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xhrpost will be tried and used before image. Is that ok?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thanks.

"image": true
}
}
6 changes: 1 addition & 5 deletions extensions/amp-analytics/analytics-vendors-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,7 @@ Adds support for Piwik PRO Analytics Suite. Configuration details can be found a

Type attribute value: `pressboard`

<!--
(Link 404s, unclear whether vendor is still supported.)

Adds support for Pressboard. Configuration details can be found at [help.pressboard.ca](http://help.pressboard.ca/publisher-resources/getting-started/implementing-google-amp).
-->
Adds support for Pressboard. Configuration details can be found at [help.pressboardmedia.com](https://help.pressboardmedia.com/implementing-google-amp).

### Quantcast Measurement

Expand Down