@@ -47,19 +47,19 @@ questions and comments shared for the video.
47
47
48
48
1 . From the spreadsheet, open the script editor by selecting ** Tools > Script**
49
49
editor.
50
- 1 . In the script editor , select ** Resources > Advanced Google services ** .
51
- 1 . In the Advanced Google Service dialog that appears, click the on/off switch
52
- next to the YouTube Data API service.
53
- 1 . Click ** OK ** in the dialog .
50
+ 1 . In the left-hand navigation pane , select ** + ** next to ** Services ** .
51
+ 1 . Choose the YouTube Data API service, and click ** Add ** . Note: When using the template,
52
+ you may find that this service has already been activated, in which case it will appear
53
+ listed below ** Services ** in the left-hand navigation pane .
54
54
55
55
### Test the code
56
56
57
- 1 . From the script editor, choose ` markVideos ` from the select box in the
58
- toolbar, then click the Run button (▶).
59
- 1 . When prompted, click the ** Review permissions** button.
60
- 1 . Select your Google Workspace account from the list.
61
- 1 . Click the ** Allow** button.
62
- 1 . When the script execution completes, you should see the details added in
57
+ 1 . From the script editor, choose ` markVideos ` from the drop-down box in the toolbar,
58
+ then click the Run button (▶).
59
+ 3 . When prompted, click the ** Review permissions** button.
60
+ 4 . Select your Google Workspace account from the list.
61
+ 5 . Click the ** Allow** button.
62
+ 6 . When the script execution completes, you should see the details added in
63
63
columns C through H, and you will receive an email for any videos that have
64
64
more than zero comments. When running the function in the future, you will
65
65
only receive an email with videos whose comment count has increased since the
@@ -72,16 +72,16 @@ questions and comments shared for the video.
72
72
Instead of running the script manually, set it up to run at regular intervals
73
73
(such as once a day).
74
74
75
- 1 . From the script editor, choose ** Edit > Current project's triggers ** .
76
- 1 . Click the link that says ** No triggers set up. Click here to add one now ** .
75
+ 1 . From the script editor, navigate to the left-hand vertical toolbar, and click the ** Triggers ** icon .
76
+ 1 . In the bottom right-hand corner, click the ** +Add Trigger ** button .
77
77
1 . Under ** Run** , select the ` markVideos ` function.
78
78
1 . Under ** Select event source** , choose ** Time-driven** .
79
- 1 . Under ** Select type of time based trigger ** , select ** Day timer** .
80
- 1 . Under ** Select hour interval ** , choose a desired time interval such as 6am to
79
+ 1 . Under ** Type ** , select ** Day timer** .
80
+ 1 . Select the desired time interval, such as 6am to
81
81
7am.
82
- 1 . Optionally, click ** Notifications ** to configure how and when you are
82
+ 1 . Optionally, adjust the ** Failure notification settings ** to configure how and when you are
83
83
contacted by email if your triggered function fails.
84
- 1 . Click ** Save** .
84
+ 3 . Click ** Save** .
85
85
86
86
## Next steps
87
87
0 commit comments