File tree 6 files changed +21
-1
lines changed 6 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 25
25
.yardoc /
26
26
_site /
27
27
TODO.md
28
+
29
+ spec /cassettes /
Original file line number Diff line number Diff line change @@ -47,7 +47,13 @@ class Reports < Base
47
47
playlist_page : 'YT_PLAYLIST_PAGE' ,
48
48
campaign_card : 'CAMPAIGN_CARD' ,
49
49
end_screen : 'END_SCREEN' ,
50
- info_card : 'INFO_CARD'
50
+ info_card : 'INFO_CARD' ,
51
+ hashtags : 'HASHTAGS' ,
52
+ live_redirect : 'LIVE_REDIRECT' ,
53
+ product_page : 'PRODUCT_PAGE' ,
54
+ shorts : 'SHORTS' ,
55
+ sound_page : 'SOUND_PAGE' ,
56
+ video_remixes : 'VIDEO_REMIXES'
51
57
}
52
58
53
59
# @see https://developers.google.com/youtube/analytics/dimensions#Playback_Location_Dimensions
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ def unsubscribe!
133
133
# @macro report_by_channel_dimensions
134
134
has_report :views , Integer
135
135
136
+ # @macro report_by_channel_dimensions
137
+ has_report :engaged_views , Integer
138
+
136
139
# @macro report_by_channel_dimensions
137
140
has_report :estimated_minutes_watched , Integer
138
141
Original file line number Diff line number Diff line change @@ -421,6 +421,9 @@ def claim
421
421
# @macro report_by_video_dimensions
422
422
has_report :views , Integer
423
423
424
+ # @macro report_by_video_dimensions
425
+ has_report :engaged_views , Integer
426
+
424
427
# @macro report_by_video_dimensions
425
428
has_report :estimated_minutes_watched , Integer
426
429
Original file line number Diff line number Diff line change 196
196
# Some reports are only available to Content Owners.
197
197
# See content owner test for more details about what the methods return.
198
198
expect { channel . views } . not_to raise_error
199
+ expect { channel . engaged_views } . not_to raise_error
199
200
expect { channel . comments } . not_to raise_error
200
201
expect { channel . likes } . not_to raise_error
201
202
expect { channel . dislikes } . not_to raise_error
Original file line number Diff line number Diff line change 292
292
expect ( video . file_type ) . to be_nil
293
293
expect ( video . container ) . to be_nil
294
294
end
295
+
296
+ it 'returns valid reports for video-related metrics' do
297
+ expect { video . views } . not_to raise_error
298
+ expect { video . engaged_views } . not_to raise_error
299
+ end
295
300
end
296
301
end
You can’t perform that action at this time.
0 commit comments