@@ -17,14 +17,13 @@ class Account
1717 property :updated_at , type : :time , read_only : true
1818 property :deleted , type : :bool , read_only : true
1919
20- RESOURCE_COLLECTION = "/#{ TwitterAds ::API_VERSION } /" \
21- 'accounts' # @api private
22- RESOURCE = "/#{ TwitterAds ::API_VERSION } /" \
23- 'accounts/%{id}' # @api private
24- FEATURES = "/#{ TwitterAds ::API_VERSION } /" \
25- 'accounts/%{id}/features' # @api private
26- SCOPED_TIMELINE = "/#{ TwitterAds ::API_VERSION } /" \
27- 'accounts/%{id}/scoped_timeline' # @api private
20+ RESOURCE_COLLECTION = "/#{ TwitterAds ::API_VERSION } /" \
21+ 'accounts' # @api private
22+ RESOURCE = "/#{ TwitterAds ::API_VERSION } /" \
23+ 'accounts/%{id}' # @api private
24+ FEATURES = "/#{ TwitterAds ::API_VERSION } /" \
25+ 'accounts/%{id}/features' # @api private
26+ SCOPED_TIMELINE = '/5/accounts/%{id}/scoped_timeline' # @api private
2827 AUTHENTICATED_USER_ACCESS = "/#{ TwitterAds ::API_VERSION } /" \
2928 'accounts/%{id}/authenticated_user_access' # @api private
3029
@@ -257,6 +256,8 @@ def tailored_audiences(id = nil, opts = {})
257256 #
258257 # @since 0.2.3
259258 def scoped_timeline ( id , opts = { } )
259+ TwitterAds ::Utils . deprecated (
260+ 'Scoped Timeline' )
260261 params = { user_id : id } . merge! ( opts )
261262 resource = SCOPED_TIMELINE % { id : @id }
262263 request = Request . new ( client , :get , resource , params : params )
0 commit comments