blib/lib/GDPR/IAB/TCFv2/Constants/Purpose.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/GDPR/IAB/TCFv2.pm ↑ Summary blib/lib/GDPR/IAB/TCFv2/Constants/RestrictionType.pm »
1 package GDPR::IAB::TCFv2::Constants::Purpose 0.520;
2 3 ▶use v5.12;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 require Exporter;
6 3 ▶use parent qw<Exporter>;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 use constant {
9  
10 # Short, established names -- supported indefinitely. Used by examples
11 # and tests across the distribution.
12 3 InfoStorageAccess => 1,
13 BasicAdserving => 2,
14 PersonalizationProfile => 3,
15 PersonalizationSelection => 4,
16 ContentProfile => 5,
17 ContentSelection => 6,
18 AdPerformance => 7,
19 ContentPerformance => 8,
20 MarketResearch => 9,
21 DevelopImprove => 10,
22 SelectContent => 11,
23  
24 # TCF v2.3 spec-aligned long-form aliases (Phase 3). Each name tracks
25 # the canonical wording from the IAB Global Vendor List JSON for the
26 # corresponding purpose.id. Both names resolve to the same integer and
27 # are interchangeable everywhere a Purpose constant is accepted.
28 StoreAndOrAccessInformationOnDevice => 1,
29 UseLimitedDataToSelectAdvertising => 2,
30 CreateProfilesForPersonalisedAdvertising => 3,
31 UseProfilesToSelectPersonalisedAdvertising => 4,
32 CreateProfilesToPersonaliseContent => 5,
33 UseProfilesToSelectPersonalisedContent => 6,
34 MeasureAdvertisingPerformance => 7,
35 MeasureContentPerformance => 8,
36 UnderstandAudiences => 9,
37 DevelopAndImproveServices => 10,
38 UseLimitedDataToSelectContent => 11,
39 3 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 3 use constant PurposeDescription => {
42 InfoStorageAccess => "Store and/or access information on a device",
43 BasicAdserving => "Use limited data to select advertising",
44 PersonalizationProfile => "Create profiles for personalised advertising",
45 PersonalizationSelection => "Use profiles to select personalised advertising",
46 ContentProfile => "Create profiles to personalise content",
47 ContentSelection => "Use profiles to select personalised content",
48 AdPerformance => "Measure advertising performance",
49 ContentPerformance => "Measure content performance",
50 MarketResearch => "Understand audiences through statistics or combinations of data from different sources",
51 DevelopImprove => "Develop and improve services",
52 SelectContent => "Use limited data to select content",
53 3 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
54  
55 3 our @EXPORT_OK = qw<
56 InfoStorageAccess
57 BasicAdserving
58 PersonalizationProfile
59 PersonalizationSelection
60 ContentProfile
61 ContentSelection
62 AdPerformance
63 ContentPerformance
64 MarketResearch
65 DevelopImprove
66 SelectContent
67 StoreAndOrAccessInformationOnDevice
68 UseLimitedDataToSelectAdvertising
69 CreateProfilesForPersonalisedAdvertising
70 UseProfilesToSelectPersonalisedAdvertising
71 CreateProfilesToPersonaliseContent
72 UseProfilesToSelectPersonalisedContent
73 MeasureAdvertisingPerformance
74 MeasureContentPerformance
75 UnderstandAudiences
76 DevelopAndImproveServices
77 UseLimitedDataToSelectContent
78 PurposeDescription
79 >;
80 3 our %EXPORT_TAGS = (all => \@EXPORT_OK);
81  
82 3 1;
83  
84 __END__
85  
86 =encoding utf8
87  
88 =head1 NAME
89  
90 GDPR::IAB::TCFv2::Constants::Purpose - TCF v2.3 purposes
91  
92 =head1 SYNOPSIS
93  
94 use warnings;
95
96 use GDPR::IAB::TCFv2::Constants::Purpose qw<:all>;
97  
98 use feature 'say';
99
100 say "Purpose id is ", InfoStorageAccess , ", and it means " . PurposeDescription->{InfoStorageAccess};
101 # Output:
102 # Purpose id is 1, and it means Store and/or access information on a device
103  
104 =head1 CONSTANTS
105  
106 All constants are integers.
107  
108 To find the description of a given id you can use the hashref L</PurposeDescription>
109  
110 =head2 InfoStorageAccess
111  
112 Purpose id 1: Store and/or access information on a device.
113  
114 Cookies, device or similar online identifiers (e.g. login-based identifiers, randomly assigned identifiers, network
115 based identifiers) together with other information (e.g. browser type and information, language, screen size, supported
116 technologies etc.) can be stored or read on your device to recognise it each time it connects to an app or to a
117 website, for one or several of the purposes presented here.
118  
119 Illustrations:
120  
121 =over
122  
123 =item *
124  
125 Most purposes explained in this notice rely on the storage or accessing of information from your device when you use
126 an app or visit a website. For example, a vendor or publisher might need to store a cookie on your device during your
127 first visit on a website, to be able to recognise your device during your next visits (by accessing this cookie each
128 time).
129  
130 =back
131  
132 =head2 BasicAdserving
133  
134 Purpose id 2: Use limited data to select advertising
135  
136 Advertising presented to you on this service can be based on limited data, such as the website or app you are using, your non-precise location, your device type or which content you are (or have been) interacting with (for example, to limit the number of times an ad is presented to you).
137  
138 Illustrations:
139  
140 =over
141  
142 =item *
143  
144 A car manufacturer wants to promote its electric vehicles to environmentally conscious users living in the city after office hours. The advertising is presented on a page with related content (such as an article on climate change actions) after 6:30 p.m. to users whose non-precise location suggests that they are in an urban zone.
145  
146 =item *
147  
148 A large producer of watercolour paints wants to carry out an online advertising campaign for its latest watercolour range, diversifying its audience to reach as many amateur and professional artists as possible and avoiding showing the ad next to mismatched content (for instance, articles about how to paint your house). The number of times that the ad has been presented to you is detected and limited, to avoid presenting it too often.
149  
150 =back
151  
152 =head2 PersonalizationProfile
153  
154 Purpose id 3: Create profiles for personalised advertising
155  
156 Information about your activity on this service (such as forms you submit, content you look at) can be stored and combined with other information about you (for example, information from your previous activity on this service and other websites or apps) or similar users. This is then used to build or improve a profile about you (that might include possible interests and personal aspects). Your profile can be used (also later) to present advertising that appears more relevant based on your possible interests by this and other entities.
157  
158 Illustrations:
159  
160 =over
161  
162 =item *
163  
164 If you read several articles about the best bike accessories to buy, this information could be used to create a profile about your interest in bike accessories. Such a profile may be used or improved later on, on the same or a different website or app to present you with advertising for a particular bike accessory brand. If you also look at a configurator for a vehicle on a luxury car manufacturer website, this information could be combined with your interest in bikes to refine your profile and make an assumption that you are interested in luxury cycling gear.
165  
166 =item *
167  
168 An apparel company wishes to promote its new line of high-end baby clothes. It gets in touch with an agency that has a network of clients with high income customers (such as high-end supermarkets) and asks the agency to create profiles of young parents or couples who can be assumed to be wealthy and to have a new child, so that these can later be used to present advertising within partner apps based on those profiles.
169  
170 =back
171  
172 =head2 PersonalizationSelection
173  
174 Purpose id 4: Use profiles to select personalised advertising
175  
176 Advertising presented to you on this service can be based on your advertising profiles, which can reflect your activity on this service or other websites or apps (like the forms you submit, content you look at), possible interests and personal aspects.
177  
178 Illustrations:
179  
180 =over
181  
182 =item *
183  
184 An online retailer wants to advertise a limited sale on running shoes. It wants to target advertising to users who previously looked at running shoes on its mobile app. Tracking technologies might be used to recognise that you have previously used the mobile app to consult running shoes, in order to present you with the corresponding advertisement on the app.
185  
186 =item *
187  
188 A profile created for personalised advertising in relation to a person having searched for bike accessories on a website can be used to present the relevant advertisement for bike accessories on a mobile app of another organisation.
189  
190 =back
191  
192 =head2 ContentProfile
193  
194 Purpose id 5: Create profiles to personalise content
195  
196 Information about your activity on this service (for instance, forms you submit, non-advertising content you look at) can be stored and combined with other information about you (such as your previous activity on this service or other websites or apps) or similar users. This is then used to build or improve a profile about you (which might for example include possible interests and personal aspects). Your profile can be used (also later) to present content that appears more relevant based on your possible interests, such as by adapting the order in which content is shown to you, so that it is even easier for you to find content that matches your interests.
197  
198 Illustrations:
199  
200 =over
201  
202 =item *
203  
204 You read several articles on how to build a treehouse on a social media platform. This information might be added to a profile to mark your interest in content related to outdoors as well as do-it-yourself guides (with the objective of allowing the personalisation of content, so that for example you are presented with more blog posts and articles on treehouses and wood cabins in the future).
205  
206 =item *
207  
208 You have viewed three videos on space exploration across different TV apps. An unrelated news platform with which you have had no contact builds a profile based on that viewing behaviour, marking space exploration as a topic of possible interest for other videos.
209  
210 =back
211  
212 =head2 ContentSelection
213  
214 Purpose id 6: Use profiles to select personalised content
215  
216 Content presented to you on this service can be based on your content personalisation profiles, which can reflect your activity on this or other services (for instance, the forms you submit, content you look at), possible interests and personal aspects, such as by adapting the order in which content is shown to you, so that it is even easier for you to find (non-advertising) content that matches your interests.
217  
218 Illustrations:
219  
220 =over
221  
222 =item *
223  
224 You read articles on vegetarian food on a social media platform and then use the cooking app of an unrelated company. The profile built about you on the social media platform will be used to present you vegetarian recipes on the welcome screen of the cooking app.
225  
226 =item *
227  
228 You have viewed three videos about rowing across different websites. An unrelated video sharing platform will recommend five other videos on rowing that may be of interest to you when you use your TV app, based on a profile built about you when you visited those different websites to watch online videos.
229  
230 =back
231  
232 =head2 AdPerformance
233  
234 Purpose id 7: Measure advertising performance
235  
236 Information regarding which advertising is presented to you and how you interact with it can be used to determine how well an advert has worked for you or other users and whether the goals of the advertising were reached. For instance, whether you saw an ad, whether you clicked on it, whether it led you to buy a product or visit a website, etc. This is very helpful to understand the relevance of advertising campaigns.
237  
238 Illustrations:
239  
240 =over
241  
242 =item *
243  
244 You have clicked on an advertisement about a "black Friday" discount by an online shop on the website of a publisher and purchased a product. Your click will be linked to this purchase. Your interaction and that of other users will be measured to know how many clicks on the ad led to a purchase.
245  
246 =item *
247  
248 You are one of very few to have clicked on an advertisement about an "international appreciation day" discount by an online gift shop within the app of a publisher. The publisher wants to have reports to understand how often a specific ad placement within the app, and notably the "international appreciation day" ad, has been viewed or clicked by you and other users, in order to help the publisher and its partners (such as agencies) optimise ad placements
249  
250 =back
251  
252 =head2 ContentPerformance
253  
254 Purpose id 8: Measure content performance
255  
256 Information regarding which content is presented to you and how you interact with it can be used to determine whether the (non-advertising) content e.g. reached its intended audience and matched your interests. For instance, whether you read an article, watch a video, listen to a podcast or look at a product description, how long you spent on this service and the web pages you visit etc. This is very helpful to understand the relevance of (non-advertising) content that is shown to you.
257  
258 Illustrations:
259  
260 =over
261  
262 =item *
263  
264 You have read a blog post about hiking on a mobile app of a publisher and followed a link to a recommended and related post. Your interactions will be recorded as showing that the initial hiking post was useful to you and that it was successful in interesting you in the related post. This will be measured to know whether to produce more posts on hiking in the future and where to place them on the home screen of the mobile app.
265  
266 =item *
267  
268 You were presented a video on fashion trends, but you and several other users stopped watching after 30 seconds. This information is then used to evaluate the right length of future videos on fashion trends
269  
270 =back
271  
272 =head2 MarketResearch
273  
274 Purpose id 9: Understand audiences through statistics or combinations of data from different sources
275  
276 Reports can be generated based on the combination of data sets (like user profiles, statistics, market research, analytics data) regarding your interactions and those of other users with advertising or (non-advertising) content to identify common characteristics (for instance, to determine which target audiences are more receptive to an ad campaign or to certain contents).
277  
278 Illustrations:
279  
280 =over
281  
282 =item *
283  
284 The owner of an online bookstore wants commercial reporting showing the proportion of visitors who consulted and left its site without buying, or consulted and bought the last celebrity autobiography of the month, as well as the average age and the male/female distribution of each category. Data relating to your navigation on its site and to your personal characteristics is then used and combined with other such data to produce these statistics.
285  
286 =item *
287  
288 An advertiser wants to better understand the type of audience interacting with its adverts. It calls upon a research institute to compare the characteristics of users who interacted with the ad with typical attributes of users of similar platforms, across different devices. This comparison reveals to the advertiser that its ad audience is mainly accessing the adverts through mobile devices and is likely in the 45-60 age range.
289  
290 =back
291  
292 =head2 DevelopImprove
293  
294 Purpose id 10: Develop and improve services
295  
296 Information about your activity on this service, such as your interaction with ads or content, can be very helpful to improve products and services and to build new products and services based on user interactions, the type of audience, etc. This specific purpose does not include the development or improvement of user profiles and identifiers.
297  
298 Illustrations:
299  
300 =over
301  
302 =item *
303  
304 A technology platform working with a social media provider notices a growth in mobile app users, and sees based on their profiles that many of them are connecting through mobile connections. It uses a new technology to deliver ads that are formatted for mobile devices and that are low-bandwidth, to improve their performance.
305  
306 =item *
307  
308 An advertiser is looking for a way to display ads on a new type of consumer device. It collects information regarding the way users interact with this new kind of device to determine whether it can build a new mechanism for displaying advertising on this type of device.
309  
310 =back
311  
312 =head2 SelectContent
313  
314 Purpose id 11: Use limited data to select content.
315  
316 Content presented to you on this service can be based on limited data, such as the website or app you are using, your non-precise location, your device type, or which content you are (or have been) interacting with (for example, to limit the number of times a video or an article is presented to you).
317  
318 Illustrations:
319  
320 =over
321  
322 =item *
323  
324 A travel magazine has published an article on its website about the new online courses proposed by a language school, to improve travelling experiences abroad. The school's blog posts are inserted directly at the bottom of the page, and selected on the basis of your non-precise location (for instance, blog posts explaining the course curriculum for different languages than the language of the country you are situated in).
325  
326 =item *
327  
328 A sports news mobile app has started a new section of articles covering the most recent football games. Each article includes videos hosted by a separate streaming platform showcasing the highlights of each match. If you fast-forward a video, this information may be used to select a shorter video to play next.
329  
330 =back
331  
332 =head2 PurposeDescription
333  
334 Returns a hashref with a mapping between all purpose ids and their description.
335  
336 =head1 NAME ALIASES
337  
338 In addition to the short names documented above, every purpose is also
339 exported under a long-form alias that tracks the canonical wording of the
340 IAB Global Vendor List for TCF v2.3. Both names resolve to the same integer
341 and may be used interchangeably anywhere a Purpose constant is accepted
342 (C<is_purpose_consent_allowed>, C<is_vendor_consent_allowed>, etc.).
343  
344 use GDPR::IAB::TCFv2::Constants::Purpose qw<:all>;
345  
346 # Equivalent:
347 $consent->is_purpose_consent_allowed( InfoStorageAccess );
348 $consent->is_purpose_consent_allowed( StoreAndOrAccessInformationOnDevice );
349  
350 The full mapping:
351  
352 =over 4
353  
354 =item *
355  
356 C<InfoStorageAccess> — C<StoreAndOrAccessInformationOnDevice> (id 1)
357  
358 =item *
359  
360 C<BasicAdserving> — C<UseLimitedDataToSelectAdvertising> (id 2)
361  
362 =item *
363  
364 C<PersonalizationProfile> — C<CreateProfilesForPersonalisedAdvertising> (id 3)
365  
366 =item *
367  
368 C<PersonalizationSelection> — C<UseProfilesToSelectPersonalisedAdvertising> (id 4)
369  
370 =item *
371  
372 C<ContentProfile> — C<CreateProfilesToPersonaliseContent> (id 5)
373  
374 =item *
375  
376 C<ContentSelection> — C<UseProfilesToSelectPersonalisedContent> (id 6)
377  
378 =item *
379  
380 C<AdPerformance> — C<MeasureAdvertisingPerformance> (id 7)
381  
382 =item *
383  
384 C<ContentPerformance> — C<MeasureContentPerformance> (id 8)
385  
386 =item *
387  
388 C<MarketResearch> — C<UnderstandAudiences> (id 9)
389  
390 =item *
391  
392 C<DevelopImprove> — C<DevelopAndImproveServices> (id 10)
393  
394 =item *
395  
396 C<SelectContent> — C<UseLimitedDataToSelectContent> (id 11)
397  
398 =back
399  
400 The short names are the historical established forms and are supported
401 indefinitely. The long-form aliases are provided for callers who prefer
402 to mirror the IAB spec wording verbatim (e.g. when generating policy
403 documents or audit logs).
« blib/lib/GDPR/IAB/TCFv2.pm ↑ Summary blib/lib/GDPR/IAB/TCFv2/Constants/RestrictionType.pm »