@@ -67,10 +67,6 @@ class DeciderContext:
6767
6868 :param user_id: user's t2 id
6969 :param device_id: device installation uuid
70- :param canonical_url: an url string
71- :param subreddit_id: subreddit link's t3 identifier
72- :param ad_account_id: an ad_account id string identifier
73- :param business_id: business id identifier used by ads
7470 :param country_code: 2-letter country codes
7571 :param locale: ISO 639-1 primary language subtag and an optional ISO 3166-1 alpha-2 region subtag
7672 :param user_is_employee:
@@ -86,9 +82,6 @@ def __init__(
8682 self ,
8783 user_id : Optional [str ] = None ,
8884 device_id : Optional [str ] = None ,
89- subreddit_id : Optional [str ] = None ,
90- ad_account_id : Optional [str ] = None ,
91- business_id : Optional [str ] = None ,
9285 country_code : Optional [str ] = None ,
9386 locale : Optional [str ] = None ,
9487 user_is_employee : Optional [bool ] = None ,
@@ -101,9 +94,6 @@ def __init__(
10194 ):
10295 self ._user_id = user_id
10396 self ._device_id = device_id
104- self ._subreddit_id = subreddit_id
105- self ._ad_account_id = ad_account_id
106- self ._business_id = business_id
10797 self ._country_code = country_code
10898 self ._locale = locale
10999 self ._user_is_employee = user_is_employee
@@ -120,9 +110,6 @@ def to_dict(self) -> Dict:
120110 return {
121111 "user_id" : self ._user_id ,
122112 "device_id" : self ._device_id ,
123- "subreddit_id" : self ._subreddit_id ,
124- "ad_account_id" : self ._ad_account_id ,
125- "business_id" : self ._business_id ,
126113 "country_code" : self ._country_code ,
127114 "locale" : self ._locale ,
128115 "user_is_employee" : self ._user_is_employee ,
@@ -167,10 +154,6 @@ def to_event_dict(self) -> Dict:
167154 if self ._device_id :
168155 platform_fields ["device_id" ] = self ._device_id
169156
170- subreddit_fields = {}
171- if self ._subreddit_id :
172- subreddit_fields ["id" ] = self ._subreddit_id
173-
174157 return {
175158 "user_id" : self ._user_id ,
176159 "country_code" : self ._country_code ,
@@ -185,7 +168,6 @@ def to_event_dict(self) -> Dict:
185168 "geo" : geo_fields ,
186169 "request" : request_fields ,
187170 "platform" : platform_fields ,
188- "subreddit" : subreddit_fields ,
189171 ** ef ,
190172 }
191173
0 commit comments