You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: demos/integration/lmpid-prebid-gpt.html.tpl
+120-45
Original file line number
Diff line number
Diff line change
@@ -26,80 +26,148 @@
26
26
</div>
27
27
<divclass="row">
28
28
<divclass="twelve column">
29
-
<h4>integration: Loblaw Media Private ID using Prebid.js</h4>
29
+
<h4>Loblaw Media Private ID (LM PID) with Prebid.js and GPT</h4>
30
30
</div>
31
31
</div>
32
32
<divclass="row">
33
33
<divclass="twelve column">
34
34
<h4>Publisher Setup</h4>
35
35
<p>
36
-
As a publisher, integrating your DCN with Loblaw Media Private ID is a simple way to activate your inventory
37
-
with higher accuracy than traditional cohort-based targeting while preserving your users' privacy.
38
-
This guide shows how to setup your Optable DCN in order to send Private ID data to Loblaw Media.
36
+
The Optable web SDK enables easy deployment of the Loblaw Media Private ID (LM PID).
37
+
The LM PID is generated automatically by the Optable Data Collaboration Platform for all
38
+
identified users successfully matched with Loblaw Media.
39
39
</p>
40
-
41
-
<h5>Step 1</h5>
42
40
<p>
43
-
Contact your Optable account manager to request access to the Loblaw Media integration on your node.
44
-
<br/>
45
-
Once setup, the Loblaw Media partner will appear in the connected partners list.
41
+
This demo page shows an integration of LM PID deployed via Optable, with both Prebid.js
42
+
with Loblaw Media's bidder adapter and user ID modules, as well as with
43
+
Google Publisher Tag (GPT) and Google Ad Manager (GAM) Secure Signals. Whenever possible,
44
+
it is recommended that both methods are enabled as shown in this demo page, such that
45
+
the likelihood of Loblaw Media DSP (MediaAisle) bidding is maximised.
46
46
</p>
47
47
48
-
<h5>Step 2</h5>
48
+
<h5>Step 1: Request access</h5>
49
+
<p>
50
+
Contact your Optable account manager to request access to the Loblaw Media Private ID
51
+
framework integration. Once configured and enabled, the Loblaw Media <strong>partner</strong>
52
+
will appear connected in the <strong>Partnerships</strong> section of the Optable user interface.
53
+
Additionally, you may start to see <i>incoming</i> activation clean rooms appear in the
54
+
<strong>Clean Rooms</strong> section of the UI.
55
+
</p>
49
56
<p>
50
-
Create a Web SDK source in your node. <br/>
51
-
Unlike normal cohort based targeting that you need to activate explicitly, Loblaw Media Private ID is enabled by default on all matched users with your Loblaw Media partner.
57
+
Please note that Steps 2-4 below should be repeated for each web site that you would like to enable
58
+
LM PID on.
52
59
</p>
53
60
54
-
<h5>Step 3</h5>
61
+
<h5>Step 2: Create a Javascript SDK source</h5>
62
+
<p>
63
+
If your web site is not already represented by a <strong>source</strong> in your Optable
64
+
Data Collaboration Node (DCN), create a <strong>Javascript SDK source</strong> and note its
65
+
unique <i>slug</i> identifier, as well as the hostname of your DCN, as these will be required
66
+
for Optable SDK integration (see Step 3).
67
+
</p>
55
68
<p>
56
-
In order to communicate Private ID's to Loblaw Media from your Web SDK source, depending on how you generated your Prebid.js distribution, you may need to update it to include <code>mabidder</code> bidder. See <atarget="_blank"rel="noopener"href="https://docs.prebid.org/download.html">https://docs.prebid.org/download.html</a>.<br/>
69
+
Loblaw Media Private ID will be returned by your Optable DCN for all users associated with
70
+
activation clean room match results originating from the Loblaw Media partner.
71
+
</p>
57
72
58
-
Make sure to include the <code>mabidder</code> bidder your <code>addAdUnits()</code> Prebid.js's call, and to enable the <code>lmpid</code> user ID module. See <atarget="_blank"rel="noopener"href="https://docs.prebid.org/dev-docs/modules/userId.html#user-id-sub-modules">https://docs.prebid.org/dev-docs/modules/userId.html</a>.<br/>
73
+
<h5>Step 3: Deploy Optable's Javascript SDK to your site</h5>
74
+
<p>
75
+
If you haven't already deployed the Optable Javascript SDK to your web site, have a look at the
76
+
<atarget="_blank"rel="noopener"href="https://github.com/Optable/optable-web-sdk#installing">Optable Javascript SDK README</a>. There are two SDK APIs which you must deploy in order to integrate LM PID:
The <code>targeting</code> API retrieves targeting data, including the LM PID when available,
94
+
and stores it in browser local storage for subsequent retrieval.
95
+
</p>
59
96
60
-
Similarly to audience targeting, Private IDs are automatically passed down in edge targeting responses for all SDK sources and cached for consumption by other libraries.
97
+
<h5>Step 4: Prebid.js and GPT integrations</h5>
98
+
<p>
99
+
For Prebid.js installations, you must make sure to include the <code>mabidder</code> bidder adapter and
100
+
the <code>lmpid</code> user ID module. Note that you must include <code>mabidder</code> in the
<atarget="_blank"rel="noopener"href="https://docs.prebid.org/dev-docs/modules/userId.html#user-id-sub-modules">Prebid.js user ID modules</a>
106
+
for details.
107
+
</p>
108
+
<p>
109
+
For Google Publisher Tag (GPT), you must call the <code>installGPTSecureSignals()</code> API
110
+
shortly after Optable SDK instantiation. This API will configure GPT to pass <code>lmpid</code>
111
+
to Google Ad Manager (GAM), when it is available in browser local storage.
61
112
</p>
62
113
<p>
63
-
Example of a full integration snippet which configures Prebid.js and GPT. <br/>
64
-
While the userId module is responsible of passing the user's Private ID to Loblaw Media bidder (mabidder), it's also being passed to GAM through secure signals by using <code>installGPTSecureSignals</code>.<br/>
65
-
Note that this function uses targeting cache internally, which is why in the following example we propose to install the secure signal provider only once targeting cache as been populated.
114
+
Try to call the Optable SDK <code>targeting()</code> API as early as possible. This API will
115
+
retrieve the latest <code>lmpid</code>, when it is enabled and available for the current user,
116
+
and store it in browser local storage for retrieval by both Prebid.js and GPT as previously described.
117
+
</p>
66
118
119
+
<h5>Prebid.js and GPT integration example</h5>
120
+
<p>
121
+
While the <code>lmpid</code> user ID module passes the Loblaw Media Private ID to the
122
+
Loblaw Media bidder (mabidder), the <code>installGPTSecureSignals()</code> API in Optable's
123
+
Javascript SDK exposes it to Google Ad Manager via
0 commit comments