-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFreemarker_SampleTemplate.txt
149 lines (149 loc) · 5.62 KB
/
Freemarker_SampleTemplate.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"bg_img_pos": "end",
"subtitle": "",
"title": ${adCollection.tiles.get(0).campaignDetails.label},
"isSelectionInput": false,
"footer_title": "",
"bg_color": <#if bg_color??>"${bg_color}"<#else>"#FFFFFF"</#if>,
"tuple_bg_color": "#FFFFFF",
"w_logo": "",
"icon_avail": false,
"desc_type": "brandingCollectionWidget",
"bg_image": "",
"maxVisible": 5,
"minVisible":3,
"options": [ <#assign len=adCollection.tiles.size()-1><#list 0..len as i > <#assign tileArray=adCollection.tiles.get(i)>
"uEvent":{
"name":"brandingView",
"data":{
"caId": ${tileArray.campaignDetails.campaignId},
"coId": ${tileArray.campaignDetails.companyId},
"grId": ${tileArray.campaignDetails.groupId},
"adId": ${tileArray.campaignDetails.adId},
"subscriptionId": ${tileArray.campaignDetails.subscriptionId},
"type": "${ adType }",
"filtered": {
"fareaIds": ${tileArray.campaignDetails.filters.fareaIds},
"loIds": ${tileArray.campaignDetails.filters.locationIds},
"doIds": ${tileArray.campaignDetails.filters.entityDeptIds}
},
"label": ${tileArray.campaignDetails.label}
}
},
"type": "brandCard",
"prop": { <#assign groupId=tileArray.campaignDetails.groupId ?number , label=tileArray.campaignDetails.label>
"title": "${ recruiter_company_service_branding[groupId].groupName }",
"tags": <#if recruiter_company_service_branding[groupId]??>[<#list recruiter_company_service_branding[groupId].customizedTags as tag >"${tag}",</#list>]<#else>[]</#if>,
"label": ${label},
"desc": "TBD",
"isFollow": false,
"jobOpening": 800,
"logo": "TBD",
"id": ${tileArray.campaignDetails.companyId},
"groupId": ${tileArray.campaignDetails.groupId}
},
"leftCTA": {
"title": "Follow",
"id": ${tileArray.campaignDetails.groupId},
"code": "Follow",
"inAppTitle":"${ recruiter_company_service_branding[groupId].groupName }",
"uEvent": {
"name":"brandingClick",
"data":{
"caId": ${tileArray.campaignDetails.campaignId},
"coId": ${tileArray.campaignDetails.companyId},
"groupId": ${tileArray.campaignDetails.groupId},
"adId": ${tileArray.campaignDetails.adId},
"subscriptionId": ${tileArray.campaignDetails.subscriptionId},
"type": "${ adType }",
"filters": {
"fareaIds": ${tileArray.campaignDetails.filters.fareaIds},
"loIds": ${tileArray.campaignDetails.filters.locationIds},
"dIds": ${tileArray.campaignDetails.filters.entityDeptIds}
},
"label": ${tileArray.campaignDetails.label},
"CTA" : "Follow"
}
}
},
"rightCTA": {
"title": "View jobs",
"hitType": "inApp",
"inAppTitle":"${ recruiter_company_service_branding[groupId].groupName }",
"shouldOnCtaAction": false,"status":true,
"fallbackUrl": "naukricompanypage://www.naukri.com/company/deloitte/jobs",
"url3": "https://www.abcde.com/${recruiter_company_service_group[groupId].overviewUrl}?tab=jobs",
"Event": {
"name":"brandClick",
"data":{
"caId": ${tileArray.campaignDetails.campaignId},
"coId": ${tileArray.campaignDetails.companyId},
"groupId": ${tileArray.campaignDetails.groupId},
"adId": ${tileArray.campaignDetails.adId},
"subscriptionId": ${tileArray.campaignDetails.subscriptionId},
"type": "${ adType }",
"filtered": {
"fareaIds": ${tileArray.campaignDetails.filters.fareaIds},
"loIds": ${tileArray.campaignDetails.filters.locationIds},
"doIds": ${tileArray.campaignDetails.filters.entityDeptIds}
},
"label": ${tileArray.campaignDetails.label},
"CTA" : "View jobs"
}
}
},
"click": {
"shouldRefreshImsOnCtaAction": false,
"inAppTitle":"${ recruiter_company_service_branding[groupId].groupName }",
"hitType": "inApp",
"fallbackUrl": "abcdecompanypage://www.abcde.com/company/deloitte",
"viewPath": "chevron",
"url": "https://www.abcde.com/${recruiter_company_service_group[groupId].overviewUrl}",
"treatWholeWidget" : true,
"Event": {
"name":"brandingClick",
"data":{
"caId": ${tileArray.campaignDetails.campaignId},
"coId": ${tileArray.campaignDetails.companyId},
"groupId": ${tileArray.campaignDetails.groupId},
"adId": ${tileArray.campaignDetails.adId},
"subscriptionId": ${tileArray.campaignDetails.subscriptionId},
"type": "${ adType }",
"filtered": {
"fareaIds": ${tileArray.campaignDetails.filters.fareaIds},
"locationIds": ${tileArray.campaignDetails.filters.locationIds},
"domainIds": ${tileArray.campaignDetails.filters.entityDeptIds}
},
"label": ${tileArray.campaignDetails.label},
"CTA" : "Tuple"
}
}
}
</#list> ],
"totalItemsCount":${adCollection.tiles.size()},
"positiveCTA": {
"title": "View all",
"type": "1",
"isBtn": false,
"loginUrl": "",
"treatWhole": false,
"intitle": "",
"shouldImsOnCtaAction": true,
"url": "https://www.abcde.com/brandingWidgets?label=${ adCollection.tiles.get(0).campaignDetails.label }",
"hitType": "inApp",
"fallbackUrl": "https://www.abcde.com/brandingWidgets?title=${adCollection.tiles.get(0).campaignDetails.label}",
"ubaEvent": {
"name":"brandClick",
data":{
"CTA" : "View all",
"type": "${adType }",
"label": "${adCollection.tiles.get(0).campaignDetails.label}",
"filters": {
"fareaIds": ${adCollection.tiles.get(0).campaignDetails.filters.fareaIds},
"loIds": ${adCollection.tiles.get(0).campaignDetails.filters.locationIds},
"doIds": ${adCollection.tiles.get(0).campaignDetails.filters.entityDeptIds}
},
}
}
}
}