<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Google Data &#187; Ikai</title>
	<atom:link href="/author/ikai/feed/" rel="self" type="application/rss+xml" />
	<link>https://googledata.org</link>
	<description>Everything Google: News, Products, Services, Content, Culture</description>
	<lastBuildDate>Fri, 03 Apr 2015 21:58:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Building on YouTube APIs in the cloud with Google Apps Script</title>
		<link>https://googledata.org/youtube-api/building-on-youtube-apis-in-the-cloud-with-google-apps-script/</link>
		<comments>https://googledata.org/youtube-api/building-on-youtube-apis-in-the-cloud-with-google-apps-script/#comments</comments>
		<pubDate>Mon, 16 Dec 2013 21:00:00 +0000</pubDate>
		<dc:creator><![CDATA[Ikai]]></dc:creator>
				<category><![CDATA[Youtube API]]></category>
		<category><![CDATA[youtube docs]]></category>
		<category><![CDATA[youtube integration]]></category>
		<category><![CDATA[youtube video]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=72b5ae57f513ef08a4de57c35a0d273a</guid>
		<description><![CDATA[<div dir="ltr"><span>There&#8217;s nothing better in this world than a great pairing, like coffee and donuts or bees and honey. Today there&#8217;s a new one to add to the list: </span><a href="https://developers.google.com/apps-script/"><span>Google Apps Script</span></a><span> now has built in support for the </span><a href="https://developers.google.com/youtube/v3/"><span>YouTube Data v3</span></a><span> and </span><a href="https://developers.google.com/youtube/analytics/"><span>YouTube Analytics APIs</span></a><span>. If you haven&#8217;t yet heard of Google Apps Script, you&#8217;re missing out on an easy-to-use tool for integrating and automating common tasks across many of Google&#8217;s services. With less than half a screen&#8217;s worth of code in Google Apps Script&#8217;s cloud-based editor, you can:</span></div><b><span></span></b> <br /><ul><li><div dir="ltr"><span>Dynamically update a spreadsheet containing watch-time statistics for all of your channel's videos, with all the flexibility and power of Google Sheets to sort and slice that data</span></div></li><li><div dir="ltr"><span>Create a live dashboard or scheduled email report about your channel's performance</span></div></li><li><div dir="ltr"><span>Handle channel management tasks such as scheduling automatic bulletins or changing the visibility of a large number of videos from private to public</span></div></li><li><div dir="ltr"><span>Automate playlist rotation without having to maintain a server or keep a computer for the sole purpose of running a script</span></div></li></ul><div><div dir="ltr"><span>Google Apps Script's cloud-based environment and autocomplete functionality make it easy to just open an editor, enable the YouTube APIs, and start writing code:</span><br /><span><br /></span></div><b><span></span><img height="107px;" src="https://lh3.googleusercontent.com/iHq3Z1P37is7ya1kuuAxLYmnKfp_bilAFpleWoeSnqbv1gZpNhcaaGDhJJ_7Qs3Exc6AmcanAY8r5AOV58v38UZBzQvozstTb65t7vzKEBJv8HWhG66lHTQOQw" width="624px;"></b><br /><div dir="ltr"><span><br /></span><span>For functions that require </span><a href="https://developers.google.com/youtube/v3/guides/authentication"><span>OAuth 2.0 authorization</span></a><span>, there&#8217;s no authorization code to write and no token management to deal with. Once your script is ready, just click &#8220;Run&#8221; and Google Apps Script will present you with an authorization dialog. Once you select the channel you want to authorize, the script will have all of the permissions it needs to operate on your behalf, </span><a href="https://developers.google.com/apps-script/understanding_triggers"><span>running in the background at scheduled intervals</span></a><span> if you so desire.</span><br /><span><br /></span><span>To get started, browse to </span><a href="https://drive.google.com/"><span>Google Drive</span></a><span>. Click &#8220;Create&#8221; and then choose &#8220;Script&#8221;. This will open a new browser tab to the Google Apps Script editor. Name your project and click on &#8220;Resources&#8221; and select &#8220;Advanced Google Services&#8221;:</span></div><b><span></span><img height="228px;" src="https://lh3.googleusercontent.com/F_MdAYOGBImwVnHyC24sNfrmWetPpfA4IajGM0lXJBJGWwLP3ZDHMvXo0zjfOdaTJ22YwA0JPFTUmJQMUCpX8MFMvxg0W4WhP8HULohIp4zHAb1Gl4pnW8kgTA" width="376px;"><span></span><br /><span></span></b><br /><div dir="ltr"><span>Toggle the YouTube Data API and/or YouTube Analytics API on:</span></div><b><span></span><img height="123px;" src="https://lh6.googleusercontent.com/t3yYr9LRMKmQH8y-nBZL5gsWNVmqw3AQJZ5lkjvyHQ9OCl3qS4WnImA4juF5ddWndQk4fykJnkmQqvsRShfIW5iNYBAKUpDYzkyDTK82qUmIxJnzJ_o93Act0Q" width="624px;"><span></span><br /><span></span></b><br /><div dir="ltr"><span>Note the message that these services must be enabled in the API console. Click the link to be taken to the </span><a href="https://cloud.google.com/console#/project"><span>Google Developer Console</span></a><span>. The link in the message will take you to a specific API project created for this specific Apps Script. Scroll down and toggle on the YouTube APIs the script will use:</span></div><b><span></span><img height="97px;" src="https://lh4.googleusercontent.com/xUPPSvyhUn-pEcM0WSBFA3zZZ5TXTKi588jdRBO0mjhybYsJ1r39w0CiPhhmMUJbNkAVn15BxhpX-Wq0jTCLvzhNJ1tAs0p2_OcEdJuhmFuA57UBhJKGL4E2QQ" width="455px;"><span></span><br /><span></span></b><br /><div dir="ltr"><span>Switch back to the tab containing Google Apps Script and click &#8220;OK&#8221;. You&#8217;re ready to start writing code. Type &#8220;YouTube&#8221; and hit the period key (&#8220;.&#8221;). If the APIs have been turned on correctly, you will be able to start writing code and calling functions available in the </span><a href="https://developers.google.com/youtube/v3/docs/"><span>Data API</span></a><span> or </span><a href="https://developers.google.com/youtube/analytics/v1/"><span>Analytics API</span></a><span>. For instance, <a href="https://gist.github.com/ikai/7993934">a short script</a> that searches for videos about &#8220;dogs&#8221; and prints the video IDs to the Google Apps Script log would look like this:</span></div><b><br /><span></span></b> <br /><pre>function searchByKeyword() {<br />  var results = YouTube.Search.list("id,snippet", <br />                   {q : "google apps script", maxResults: 25});<br /><br />  for(var i in results.items) {<br />    var item = results.items[i];<br />    Logger.log("[%s] Title: %s", item.id.videoId, item.snippet.title);<br />  }<br />}<br /></pre><br /><div dir="ltr"></div><div dir="ltr"><div><span>For more information about this update to Google Apps Script, check out <a href="http://googleappsdeveloper.blogspot.com/2013/12/more-google-services-available-in-apps.html">the post on their official blog</a>. To learn more about how to integrate scheduled jobs, write to spreadsheets or any of the many things Google Apps Script can do, check out the tutorials at their home at </span><a href="https://developers.google.com/apps-script/"><span>developers.google.com/apps-script</span></a><span>. If you&#8217;re the type that prefers to learn on the go, get started with <a href="https://script.google.com/d/1aViyhjoLGwhkbzlQutD6f9O8Fx6JKWAj8bQPHeVnlGzKWbQIxoWSdYXN/edit?newcopy=true">your own copy of our sample code</a> in your Google Drive. You will still need to enable the APIs, so don&#8217;t forget to go to &#8220;Resources &#62; Advanced Google services&#8221; for the link to the Developer Console project to turn on the APIs.</span></div></div><b><br /><span></span></b> <br /><div dir="ltr"><span>If you have any questions, feel free to find us on StackOverflow under the </span><a href="http://stackoverflow.com/questions/tagged/youtube-api"><span>youtube-api</span></a><span> and </span><a href="http://stackoverflow.com/questions/tagged/google-apps-script"><span>google-apps-script</span></a><span> tags. Happy coding!</span></div><b><br /><span></span></b> <br /><div dir="ltr"><span>- <a href="http://plus.google.com/+IkaiLan">Ikai Lan</a></span><br /><span>YouTube Developer Relations</span></div></div>]]></description>
				<content:encoded><![CDATA[<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">There’s nothing better in this world than a great pairing, like coffee and donuts or bees and honey. Today there’s a new one to add to the list: </span><a href="https://developers.google.com/apps-script/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Google Apps Script</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"> now has built in support for the </span><a href="https://developers.google.com/youtube/v3/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">YouTube Data v3</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"> and </span><a href="https://developers.google.com/youtube/analytics/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">YouTube Analytics APIs</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">. If you haven’t yet heard of Google Apps Script, you’re missing out on an easy-to-use tool for integrating and automating common tasks across many of Google’s services. With less than half a screen’s worth of code in Google Apps Script’s cloud-based editor, you can:</span></div><b style="font-weight: normal;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b> <br /><ul style="margin-bottom: 0pt; margin-top: 0pt;"><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Dynamically update a spreadsheet containing watch-time statistics for all of your channel's videos, with all the flexibility and power of Google Sheets to sort and slice that data</span></div></li><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Create a live dashboard or scheduled email report about your channel's performance</span></div></li><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Handle channel management tasks such as scheduling automatic bulletins or changing the visibility of a large number of videos from private to public</span></div></li><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Automate playlist rotation without having to maintain a server or keep a computer for the sole purpose of running a script</span></div></li></ul><div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Google Apps Script's cloud-based environment and autocomplete functionality make it easy to just open an editor, enable the YouTube APIs, and start writing code:</span><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div><b style="font-weight: normal;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><img height="107px;" src="https://lh3.googleusercontent.com/iHq3Z1P37is7ya1kuuAxLYmnKfp_bilAFpleWoeSnqbv1gZpNhcaaGDhJJ_7Qs3Exc6AmcanAY8r5AOV58v38UZBzQvozstTb65t7vzKEBJv8HWhG66lHTQOQw" width="624px;" /></b><br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">For functions that require </span><a href="https://developers.google.com/youtube/v3/guides/authentication" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">OAuth 2.0 authorization</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, there’s no authorization code to write and no token management to deal with. Once your script is ready, just click “Run” and Google Apps Script will present you with an authorization dialog. Once you select the channel you want to authorize, the script will have all of the permissions it needs to operate on your behalf, </span><a href="https://developers.google.com/apps-script/understanding_triggers" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">running in the background at scheduled intervals</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> if you so desire.</span><br /><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"><br /></span><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">To get started, browse to </span><a href="https://drive.google.com/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Google Drive</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">. Click “Create” and then choose “Script”. This will open a new browser tab to the Google Apps Script editor. Name your project and click on “Resources” and select “Advanced Google Services”:</span></div><b style="font-weight: normal;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><img height="228px;" src="https://lh3.googleusercontent.com/F_MdAYOGBImwVnHyC24sNfrmWetPpfA4IajGM0lXJBJGWwLP3ZDHMvXo0zjfOdaTJ22YwA0JPFTUmJQMUCpX8MFMvxg0W4WhP8HULohIp4zHAb1Gl4pnW8kgTA" width="376px;" /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Toggle the YouTube Data API and/or YouTube Analytics API on:</span></div><b style="font-weight: normal;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><img height="123px;" src="https://lh6.googleusercontent.com/t3yYr9LRMKmQH8y-nBZL5gsWNVmqw3AQJZ5lkjvyHQ9OCl3qS4WnImA4juF5ddWndQk4fykJnkmQqvsRShfIW5iNYBAKUpDYzkyDTK82qUmIxJnzJ_o93Act0Q" width="624px;" /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">Note the message that these services must be enabled in the API console. Click the link to be taken to the </span><a href="https://cloud.google.com/console#/project" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Google Developer Console</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">. The link in the message will take you to a specific API project created for this specific Apps Script. Scroll down and toggle on the YouTube APIs the script will use:</span></div><b style="font-weight: normal;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><img height="97px;" src="https://lh4.googleusercontent.com/xUPPSvyhUn-pEcM0WSBFA3zZZ5TXTKi588jdRBO0mjhybYsJ1r39w0CiPhhmMUJbNkAVn15BxhpX-Wq0jTCLvzhNJ1tAs0p2_OcEdJuhmFuA57UBhJKGL4E2QQ" width="455px;" /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">Switch back to the tab containing Google Apps Script and click “OK”. You’re ready to start writing code. Type “YouTube” and hit the period key (“.”). If the APIs have been turned on correctly, you will be able to start writing code and calling functions available in the </span><a href="https://developers.google.com/youtube/v3/docs/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Data API</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"> or </span><a href="https://developers.google.com/youtube/analytics/v1/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Analytics API</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">. For instance, <a href="https://gist.github.com/ikai/7993934">a short script</a> that searches for videos about “dogs” and prints the video IDs to the Google Apps Script log would look like this:</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b> <br /><pre>function searchByKeyword() {<br />  var results = YouTube.Search.list("id,snippet", <br />                   {q : "google apps script", maxResults: 25});<br />  <br />  for(var i in results.items) {<br />    var item = results.items[i];<br />    Logger.log("[%s] Title: %s", item.id.videoId, item.snippet.title);<br />  }<br />}<br /></pre><br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"></div><div dir="ltr" style="margin-bottom: 0pt; margin-top: 0pt;"><div style="line-height: 1.15;"><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">For more information about this update to Google Apps Script, check out <a href="http://googleappsdeveloper.blogspot.com/2013/12/more-google-services-available-in-apps.html">the post on their official blog</a>. To learn more about how to integrate scheduled jobs, write to spreadsheets or any of the many things Google Apps Script can do, check out the tutorials at their home at </span><a href="https://developers.google.com/apps-script/" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">developers.google.com/apps-script</span></a><span style="color: black; font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">. If you’re the type that prefers to learn on the go, get started with <a href="https://script.google.com/d/1aViyhjoLGwhkbzlQutD6f9O8Fx6JKWAj8bQPHeVnlGzKWbQIxoWSdYXN/edit?newcopy=true">your own copy of our sample code</a> in your Google Drive. You will still need to enable the APIs, so don’t forget to go to “Resources &gt; Advanced Google services” for the link to the Developer Console project to turn on the APIs.</span></div></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b> <br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">If you have any questions, feel free to find us on StackOverflow under the </span><a href="http://stackoverflow.com/questions/tagged/youtube-api" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">youtube-api</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and </span><a href="http://stackoverflow.com/questions/tagged/google-apps-script" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">google-apps-script</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> tags. Happy coding!</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b> <br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">- <a href="http://plus.google.com/+IkaiLan" style="text-decoration: none;">Ikai Lan</a></span><br /><span style="font-family: Arial; font-size: 15px; line-height: 1.15; white-space: pre-wrap;">YouTube Developer Relations</span></div></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/youtube-api/building-on-youtube-apis-in-the-cloud-with-google-apps-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Spice up your channel with the InVideo Programming API</title>
		<link>https://googledata.org/youtube-api/spice-up-your-channel-with-the-invideo-programming-api/</link>
		<comments>https://googledata.org/youtube-api/spice-up-your-channel-with-the-invideo-programming-api/#comments</comments>
		<pubDate>Wed, 02 Oct 2013 20:53:00 +0000</pubDate>
		<dc:creator><![CDATA[Ikai]]></dc:creator>
				<category><![CDATA[Youtube API]]></category>
		<category><![CDATA[youtube docs]]></category>
		<category><![CDATA[youtube integration]]></category>
		<category><![CDATA[youtube video]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=97771b69673ec16d3f892882b024a575</guid>
		<description><![CDATA[<div dir="ltr"><span>If you&#8217;ve used </span><a href="https://support.google.com/youtube/answer/2790636?hl=en"><span>InVideo Programming</span></a><span> before, you know that it&#8217;s a powerful way to attract subscribers to your channel. By featuring a watermark or a hit video on all videos on your channel, you can showcase the best of what your channel has to offer. You can also add a link to your home on social networks with a custom message to drive two-way conversation with your viewers on multiple fronts.</span></div><b><br /><span></span></b><div dir="ltr"><span>&#8220;That&#8217;s awesome,&#8221; you might say. &#8220;I&#8217;m already using it via the YouTube.com website!&#8221; Well, great! But did you know these options are available via our v3 </span><a href="https://developers.google.com/youtube/v3/"><span>Data API</span></a><span>? The API enables all kinds of interesting use cases. Some examples:</span></div><b><br /><span></span></b><ul><li><div dir="ltr"><span>Update the message to tease your latest tweet. When users click on your link, they are taken to your Twitter page</span></div></li><li><div dir="ltr"><span>Feature the most recent upload to </span><span>any</span><span> channel on YouTube</span></div></li><li><div dir="ltr"><span>Run a channel about television? You can write a script to rotate the featured video depending on whether it is the afternoon or the evening, a weekday or a weekend! Or, rotate the featured video daily to drive more views, reshares and discussion of quality content that might not be as fresh</span></div></li><li><div dir="ltr"><span>Build a widget on your website or mobile app that lets your subscribers vote for a video to be featured every week! The video doesn&#8217;t have to be a video from your channel - it can be </span><span>any</span><span> video on YouTube!</span></div></li></ul><b><br /><span></span></b><div dir="ltr"><span>InVideo Programming options are set as part of the </span><a href="https://developers.google.com/youtube/v3/docs/channels#resource"><span>channels resource</span></a><span>, passed as a parameter to </span><a href="https://developers.google.com/youtube/v3/docs/channels/update"><span>youtube.channels.update()</span></a><span> in the </span><span>invideoPromotion</span><span> field. For instance, to feature this recent &#8220;YouTube Developers Live&#8221; show featuring our team&#8217;s favorite moments, I would structure the </span><span>invideoPromotion</span><span> field in my API request&#8217;s payload body like this:</span></div><b><br /><span></span></b><div dir="ltr"><span>invideoPromotion": {</span></div><div dir="ltr"><span> "items": [</span></div><div dir="ltr"><span> &#160;{</span></div><div dir="ltr"><span> &#160;&#160;"id": {</span></div><div dir="ltr"><span> &#160;&#160;&#160;"type": "video",</span></div><div dir="ltr"><span> &#160;&#160;&#160;"videoId": "</span><span>lzaYch2mqlU</span><span>"</span></div><div dir="ltr"><span> &#160;&#160;},</span></div><div dir="ltr"><span> &#160;&#160;"timing": {</span></div><div dir="ltr"><span> &#160;&#160;&#160;"type": "offsetFromStart",</span></div><div dir="ltr"><span> &#160;&#160;&#160;"offsetMs": "0",</span></div><div dir="ltr"><span> &#160;&#160;&#160;"durationMs": "15000"</span></div><div dir="ltr"><span> &#160;&#160;}</span></div><div dir="ltr"><span> &#160;}</span></div><div dir="ltr"><span> ]</span></div><div dir="ltr"><span>}</span><span></span></div><b><br /><span></span></b><div dir="ltr"><span>Other options for the type field in the </span><span>id</span><span> object include </span><span>website</span><span> and </span><span>recentUpload</span><span>, which correspond to InVideo Programming featuring a link, or automatically updating InVideo Programming featuring the latest video in a channel. For more information, see </span><a href="https://developers.google.com/youtube/v3/docs/channels#resource"><span>the documentation describing the </span><span>invideoPromotion</span><span> object</span></a><span> in the channels resource.</span></div><b><br /><span></span><img height="352px;" src="https://lh3.googleusercontent.com/ua3E3bvRQ7YMO-xbaN43OZTcwrvqb7Xngd2_VBu9_SFiYx7Om9wLEWAOte2Edc9Bew1Oqvnj0hiE-CRqf4Rh2gClWw1Em3UTXKCnnSsHD6B1V3rx1YDBSfDQIg" width="577px;"><span></span><br /><span></span></b><br /><div dir="ltr"><span>A video featuring a watermark (top right) and InVideo Programming (bottom left)</span></div><b><br /><span></span></b><div dir="ltr"><span>Chances are good, though, that you&#8217;re using one of our </span><a href="https://developers.google.com/youtube/v3/libraries"><span>API client libraries</span></a><span>, which will help translate these API requests and responses into programmatic objects that you can manipulate and pass around in your code. </span></div><b><br /><span></span></b><div dir="ltr"><span>InVideo Programming functionality is relatively new, so if you are using an API client for a language like Java or .NET, you will need to make sure your client libraries are up-to-date before you can take advantage of these new features. Our samples are sorted by programming language on our </span><a href="http://github.com/youtube"><span>Github page</span></a><span>.</span></div><b><br /><span></span></b><div dir="ltr"><span>You can also set a channel&#8217;s watermark using the Data API&#8217;s </span><a href="https://developers.google.com/youtube/v3/docs/watermarks/set"><span>watermarks.set</span></a><span>() method. Watermarks are images that appear in the upper right hand corner of your videos that will link viewers to your channel on web and in the YouTube mobile apps for Android and iOS. This is usefu</span></div><b><br /><span></span></b><div dir="ltr"><span>InVideo Programming lets you reinforce your channel&#8217;s brand and drive viewers to other videos or social channels. The API makes it easy for your team to integrate InVideo Programming into your tools and workflow to make them more dynamic and interesting. Integrating the API into your tools and workflow only help to make your InVideo Programming more dynamic.</span></div><div dir="ltr"><span><br /></span></div><div dir="ltr"><span>Happy coding!</span></div><div dir="ltr"><span>- <a href="https://plus.google.com/+IkaiLan">Ikai Lan</a>, <a href="https://plus.google.com/+YouTubeDev">YouTube API team</a></span></div>]]></description>
				<content:encoded><![CDATA[<div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;">If you’ve used </span><a href="https://support.google.com/youtube/answer/2790636?hl=en" style="line-height: 1.15; text-decoration: none;"><span style="color: #1155cc; font-family: Arial; font-size: 15px; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">InVideo Programming</span></a><span style="font-family: Arial; font-size: 15px; vertical-align: baseline; white-space: pre-wrap;"> before, you know that it’s a powerful way to attract subscribers to your channel. By featuring a watermark or a hit video on all videos on your channel, you can showcase the best of what your channel has to offer. You can also add a link to your home on social networks with a custom message to drive two-way conversation with your viewers on multiple fronts.</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">“That’s awesome,” you might say. “I’m already using it via the YouTube.com website!” Well, great! But did you know these options are available via our v3 </span><a href="https://developers.google.com/youtube/v3/" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Data API</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">? The API enables all kinds of interesting use cases. Some examples:</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><ul style="margin-bottom: 0pt; margin-top: 0pt;"><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Update the message to tease your latest tweet. When users click on your link, they are taken to your Twitter page</span></div></li><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Feature the most recent upload to </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">any</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> channel on YouTube</span></div></li><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Run a channel about television? You can write a script to rotate the featured video depending on whether it is the afternoon or the evening, a weekday or a weekend! Or, rotate the featured video daily to drive more views, reshares and discussion of quality content that might not be as fresh</span></div></li><li dir="ltr" style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; list-style-type: disc; text-decoration: none; vertical-align: baseline;"><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Build a widget on your website or mobile app that lets your subscribers vote for a video to be featured every week! The video doesn’t have to be a video from your channel - it can be </span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">any</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> video on YouTube!</span></div></li></ul><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">InVideo Programming options are set as part of the </span><a href="https://developers.google.com/youtube/v3/docs/channels#resource" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">channels resource</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, passed as a parameter to </span><a href="https://developers.google.com/youtube/v3/docs/channels/update" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">youtube.channels.update()</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> in the </span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">invideoPromotion</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> field. For instance, to feature this recent “YouTube Developers Live” show featuring our team’s favorite moments, I would structure the </span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">invideoPromotion</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> field in my API request’s payload body like this:</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">invideoPromotion": {</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> "items": [</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;{</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;"id": {</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;&nbsp;"type": "video",</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;&nbsp;"videoId": "</span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">lzaYch2mqlU</span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">"</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;},</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;"timing": {</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;&nbsp;"type": "offsetFromStart",</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;&nbsp;"offsetMs": "0",</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;&nbsp;"durationMs": "15000"</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;&nbsp;}</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> &nbsp;}</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ]</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}</span><span style="background-color: #ebf2fe; color: #434343; font-family: 'Courier New'; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Other options for the type field in the </span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">id</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> object include </span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">website</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and </span><span style="background-color: transparent; color: black; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">recentUpload</span><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, which correspond to InVideo Programming featuring a link, or automatically updating InVideo Programming featuring the latest video in a channel. For more information, see </span><a href="https://developers.google.com/youtube/v3/docs/channels#resource" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">the documentation describing the </span><span style="background-color: transparent; color: #1155cc; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">invideoPromotion</span><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;"> object</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> in the channels resource.</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><img height="352px;" src="https://lh3.googleusercontent.com/ua3E3bvRQ7YMO-xbaN43OZTcwrvqb7Xngd2_VBu9_SFiYx7Om9wLEWAOte2Edc9Bew1Oqvnj0hiE-CRqf4Rh2gClWw1Em3UTXKCnnSsHD6B1V3rx1YDBSfDQIg" width="577px;" /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><br /><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt; text-align: center;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 12px; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">A video featuring a watermark (top right) and InVideo Programming (bottom left)</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Chances are good, though, that you’re using one of our </span><a href="https://developers.google.com/youtube/v3/libraries" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">API client libraries</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, which will help translate these API requests and responses into programmatic objects that you can manipulate and pass around in your code. </span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">InVideo Programming functionality is relatively new, so if you are using an API client for a language like Java or .NET, you will need to make sure your client libraries are up-to-date before you can take advantage of these new features. Our samples are sorted by programming language on our </span><a href="http://github.com/youtube" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">Github page</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">You can also set a channel’s watermark using the Data API’s </span><a href="https://developers.google.com/youtube/v3/docs/watermarks/set" style="text-decoration: none;"><span style="background-color: transparent; color: #1155cc; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">watermarks.set</span></a><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">() method. Watermarks are images that appear in the upper right hand corner of your videos that will link viewers to your channel on web and in the YouTube mobile apps for Android and iOS. This is usefu</span></div><b style="font-weight: normal;"><br /><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"></span></b><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">InVideo Programming lets you reinforce your channel’s brand and drive viewers to other videos or social channels. The API makes it easy for your team to integrate InVideo Programming into your tools and workflow to make them more dynamic and interesting. Integrating the API into your tools and workflow only help to make your InVideo Programming more dynamic.</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Happy coding!</span></div><div dir="ltr" style="line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">- <a href="https://plus.google.com/+IkaiLan">Ikai Lan</a>, <a href="https://plus.google.com/+YouTubeDev">YouTube API team</a></span></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/youtube-api/spice-up-your-channel-with-the-invideo-programming-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
	</channel>
</rss>
