-
Notifications
You must be signed in to change notification settings - Fork 1
/
Pebble_SampleTemplate.txt
228 lines (227 loc) · 8.51 KB
/
Pebble_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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
"bg_pos": "end",
"subtitle": "",
"title": "",
"isSelectionInput": false,
"footer": "",
{% if bg_color is null %}
"bg_color": "#FFFFFF",
{% else %}
"bg_color":"{{bg_color}}",
{% endif %}
"bg_color": "#FFFFFF",
"logo": "",
"close_icon_avail": false,
"desc_type": "brandcollection",
"bg_img": "",
"maxVisible": 5,
"minVisible":3,
"options": [
{% set ctr=0 %}
{% for ad in adCollection.get('tiles') %}
{% set ctr=ctr+1 %}
{% if (loop.first==false) and (ctr>1) %},{% endif %}{
"Event":{
"name":"brandView",
"data":{
"caId": {{ad.get('campaignDetails').get('campaignId')}},
"coId": {{ad.get('campaignDetails').get('companyId')}},
"gId": {{ad.get('campaignDetails').get('groupId')}},
"adId": {{ad.get('campaignDetails').get('adId')}},
"subscriptionId": {{ad.get('campaignDetails').get('subscriptionId')}},
"type": "{{ adType }}",
"filters": {
{% if ad.get('campaignDetails').get('filters').get('fareaIds')|length ==0 %}
"fareaIds": [],
{% else %}
"fareaIds": {{ad.get('campaignDetails').get('filters').get('fareaIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('locationIds')|length ==0 %}
"locationIds": [],
{% else %}
"locationIds": {{ad.get('campaignDetails').get('filters').get('locationIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('entityDeptIds')|length ==0 %}
"domainIds": []
{% else %}
"domainIds": {{ad.get('campaignDetails').get('filters').get('entityDeptIds')}}
{% endif %}
},
"label": "{{ad.get('campaignDetails').get('label')}}"
}
},
"type": "brandCollectionCard",
"properties": {
{% set groupId=ad.get('campaignDetails').get('groupId') %}
{% set label=ad.get('campaignDetails').get('label') %}
"title": "{{ recruiter_company_service_branding[groupId].groupName }}",
{% if (recruiter_company_service_group[groupId] is empty) or (recruiter_company_service_branding[groupId].customizedTags is empty) %}
"tags": [],
{% else %}
"tags":[
{% for companyTag in recruiter_company_service_branding[groupId].customizedTags %}
"{{companyTag}}"{% if loop.last==false %},{% endif %}
{% endfor %}
],
{% endif %}
"label": "{{ad.get('campaignDetails').get('label')}}",
"description": "TBD",
"isFollowing": false,
"jobOpen": 800,
"logo": "recruiter_company_service_branding[groupId].groupLogoNew.mobile.v1",
"id": {{ad.get('campaignDetails').get('companyId')}},
"groupId":{{ad.get('campaignDetails').get('groupId')}}
},
"leftCTA": {
"title": "Follow",
"id": "{{ad.get('campaignDetails').get('groupId')}}",
"code": "Follow",
"inAppTitle":"{{ recruiter_company_service_group[groupId].groupName }}",
"ubaEvent": {
"name":"brandingClick",
"data":{
"caId": {{ad.get('campaignDetails').get('campaignId')}},
"coId": {{ad.get('campaignDetails').get('companyId')}},
"groupId": {{ad.get('campaignDetails').get('groupId')}},
"adId": {{ad.get('campaignDetails').get('adId')}},
"subscriptionId": {{ad.get('campaignDetails').get('subscriptionId')}},
"type": "{{ adType }}",
"filters": {
{% if ad.get('campaignDetails').get('filters').get('fareaIds')|length ==0 %}
"fareaIds": [],
{% else %}
"fareaIds": {{ad.get('campaignDetails').get('filters').get('fareaIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('locationIds')|length ==0 %}
"locationIds": [],
{% else %}
"locationIds": {{ad.get('campaignDetails').get('filters').get('locationIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('entityDeptIds')|length ==0 %}
"domainIds": []
{% else %}
"domainIds": {{ad.get('campaignDetails').get('filters').get('entityDeptIds')}}
{% endif %}
},
"label": "{{ad.get('campaignDetails').get('label')}}"
"CTA" : "Follow"
}
}
},
"rightCTA": {
"title": "View jobs",
"hitType": "inApp",
"inAppTitle":"{{ recruiter_company_service_group[groupId].groupName }}",
"shouldRefreshAction": false,"status":true,
"fallbackUrl": "abcdecompanypage://www.abcde.com/company/deloitte/jobs",
"url": "https://www.abcde.com/{{recruiter_company_service_group[groupId].overviewUrl}}?tab=jobs",
"Event": {
"name":"brandClick",
"data":{
"caId": {{ad.get('campaignDetails').get('campaignId')}},
"coId": {{ad.get('campaignDetails').get('companyId')}},
"gId": {{ad.get('campaignDetails').get('groupId')}},
"adId": {{ad.get('campaignDetails').get('adId')}},
"subscriptionId": {{ad.get('campaignDetails').get('subscriptionId')}},
"type": "{{ adType }}",
"filters": {
{% if ad.get('campaignDetails').get('filters').get('fareaIds')|length ==0 %}
"fareaIds": [],
{% else %}
"fareaIds": {{ad.get('campaignDetails').get('filters').get('fareaIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('locationIds')|length ==0 %}
"locationIds": [],
{% else %}
"locationIds": {{ad.get('campaignDetails').get('filters').get('locationIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('entityDeptIds')|length ==0 %}
"domainIds": []
{% else %}
"domainIds": {{ad.get('campaignDetails').get('filters').get('entityDeptIds')}}
{% endif %}
},
"label": "{{ad.get('campaignDetails').get('label')}}"
"CTA" : "View jobs"
}
}
},
"click": {
"shouldRefreshImsOnCtaAction": false,
"inAppTitle":"{{ recruiter_company_service_group[groupId].groupName }}",
"hitType": "inApp",
"fallbackUrl": "companypage://www.abcde.com/company/deloitte",
"viewImagePath": "chevron",
"url": "https://www.abcde.com/{{recruiter_company_service_group[groupId].overviewUrl}}",
"treatWholeWidget" : true,
"Event": {
"name":"brandClick",
"data":{
"caId": {{ad.get('campaignDetails').get('campaignId')}},
"coId": {{ad.get('campaignDetails').get('companyId')}},
"gId": {{ad.get('campaignDetails').get('groupId')}},
"adId": {{ad.get('campaignDetails').get('adId')}},
"subscriptionId": {{ad.get('campaignDetails').get('subscriptionId')}},
"type": "{{ adType }}",
"filtered": {
{% if ad.get('campaignDetails').get('filters').get('fareaIds')|length ==0 %}
"fareaIds": [],
{% else %}
"fareaIds": {{ad.get('campaignDetails').get('filters').get('fareaIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('locationIds')|length ==0 %}
"locationIds": [],
{% else %}
"locationIds": {{ad.get('campaignDetails').get('filters').get('locationIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('entityDeptIds')|length ==0 %}
"domainIds": []
{% else %}
"domainIds": {{ad.get('campaignDetails').get('filters').get('entityDeptIds')}}
{% endif %}
},
"label": "{{ad.get('campaignDetails').get('label')}}"
"CTA" : "Tuple"
}
}
}
}{% endfor %}],
"totalItemsCount":{{ctr}},
"positiveCTA": {
"title": "View all",
"type": "1",
"isBtn": false,
"loginUrl": "",
"treatWholeWidget": false,
"inAppTitle": "",
"shouldRefreshImsOnCtaAction": true,
"url": "https://www.abcde.com/brandingWidgets?label={{ adCollection.tiles[0].get('campaignDetails').get('label') }}",
"hitType": "inApp",
"fallbackUrl": "https://www.abcde.com/brandingWidgets?title={{adCollection.tiles[0].campaignDetails.label}}",
"ubaEvent": {
"name":"brandClick",
"data":{
"CTA" : "View all",
"type": {{ adType }},
"label": {{ad.get('campaignDetails').get('label')}},
"filters": {
{% if ad.get('campaignDetails').get('filters').get('fareaIds')|length ==0 %}
"fareaIds": [],
{% else %}
"fareaIds": {{ad.get('campaignDetails').get('filters').get('fareaIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('locationIds')|length ==0 %}
"lIds": [],
{% else %}
"lnIds": {{ad.get('campaignDetails').get('filters').get('locationIds')}},
{% endif %}
{% if ad.get('campaignDetails').get('filters').get('entityDeptIds')|length ==0 %}
"domainIds": []
{% else %}
"domainIds": {{ad.get('campaignDetails').get('filters').get('entityDeptIds')}}
{% endif %}
},
}
}
}
}