Google Data

  • Home
  • Everything Google
    • Gmail (Google Mail)
    • Google Adsense
    • Google Adsense Feeds
    • Google Adwords
    • Google Adwords API
    • Google Affiliate Network
    • Google Ajax API
    • Google Analytics
    • Google Android
    • Google App Engine
    • Google Apps
    • Google Blog
    • Google Blogger Buzz
    • Google Books
    • Google Checkout
    • Google Chrome
    • Google Code
    • Google Conversions
    • Google CPG
    • Google Custom Search
    • Google Desktop
    • Google Desktop API
    • Google Docs
    • Google DoubleClick
    • Google Earth
    • Google Enterprise
    • Google Finance
    • Google Gadgets
    • Google Gears
    • Google Grants
    • Google Mac Blog
    • Google Maps
    • Google Merchant
    • Google Mobile
    • Google News
    • Google Notebook
    • Google Online Security
    • Google Open Source
    • Google OpenSocial
    • Google Orkut
    • Google Photos (Picasa)
    • Google Product Ideas
    • Google Public Policy
    • Google Reader
    • Google RechargeIT
    • Google Research
    • Google SketchUp
    • Google Student Blog
    • Google Talk
    • Google Testing
    • Google Translate
    • Google TV Ads Blog
    • Google Video
    • Google Voice
    • Google Wave
    • Google Webmaster Central
    • Google Website Optimizer
    • Google.org
    • iGoogle
    • Uncategorized
    • Youtube
    • Youtube API
  • Resources
    • Google Products & Services
    • Google Twitter Directory
    • Google Trademarks
    • Google Data Site Map
  • About
  • Contact
  • Subscribe via RSS

Archive for October 7th, 2011

Introducing Google Account support and YouTube API v2.1

October 7th, 2011  |  by Jarek Wilkiewicz  |  published in Youtube API

Authenticated access to YouTube APIs lets your app offer many features that are unavailable to logged-out users. By authenticating user actions, your app can allow users to manage subscriptions, create playlists, and upload videos. Until recently, users could only perform any of these operations if they had YouTube accounts. (A YouTube account provides a user with a YouTube channel.)

We are pleased to announce that we have also started to give Google Account holders who don’t already have YouTube channels access to certain YouTube features on YouTube.com and in the YouTube API. We call these unlinked Google Accounts since they haven’t already been linked to a YouTube channel. For example, a user with a Gmail account or an Android device is certain to have a Google Account but may not have already linked that account to a YouTube channel.
What this means for your application is that with a few relatively simple changes, you should be able to allow authenticated access for users who have unlinked Google Accounts. Thus, those users will be able to log in to YouTube without having to create a YouTube username.
In a moment, we’ll dive into the details of how to use the API with unlinked Google Accounts and also offer a few user experience recommendations for your YouTube API application. First, though, a quick note about the new minor YouTube API revision that we’re introducing. 
Say “Hello!” to YouTube API v2.1
When designing this feature, we decided to take a conservative approach toward backward compatibility. The set of write operations supported for Google Accounts is currently a subset of API operations available to YouTube account holders. Rather than expose existing applications to accounts with potentially restricted functionality, we’re explicitly requiring that an application prepared to handle unlinked Google Accounts tells us so by using the API version 2.1, a new, minor version of the API. Our documentation explains that you can specify an API version by appending v=2.1 to the API request URI or by using the GData-Version: 2.1 request header. 
HTTP response codes for authenticated operations
API v2.0 supports all authenticated operations for users with YouTube accounts, which could also be called linked Google Accounts, but doesn’t support any authenticated operations for unlinked Google Accounts. If the authentication token for a v2.0 API request identifies an unlinked Google Account, the API will return a 401 NoLinkedYouTubeAccount error.
In API v2.1, however, a number of operations that require authentication are supported for users with unlinked Google Accounts, and the API will return a 200 response code for those operations. For operations that aren’t supported for unlinked Google Accounts in v2.1, the API will return an HTTP 403 Forbidden error with a youtube_signup_required error code. 
The table below shows how API v2.1 changes response codes when different types of users try to execute operations that require authentication:


  API v2 API v2.1
YouTube Account 200 OK 200 OK
Unlinked Google Account 401 NoLinkedYouTubeAccount 200 OK or 403 Forbidden youtube_signup_required
Handling the youtube_signup_required error
We do not recommend that you try to modify your application to provide a different experience for users with YouTube accounts than for unlinked Google Accounts. That approach would require you to constantly update your application as YouTube expands the list of features that we support for unlinked Google Accounts.
Instead, we recommend that you prepare your application to gracefully handle the youtube_signup_required error, preferably by presenting an option for the user to link to https://www.youtube.com/create_channel. If you are building a mobile application, you can bypass a redirect by using https://m.youtube.com/create_channel instead. The API documentation lists the operations that are and are not currently supported for unlinked Google Account holders.
The XML below shows a sample youtube_signup_required error:
       yt:service    youtube_signup_required   
User profiles for unlinked Google Account holders
A user profile entry for a user with an unlinked Google Account differs from a user profile entry for a user with a YouTube account in two ways:
  • An entry for an unlinked Google Account holder contains a tag. (This tag is not present if the user already has a YouTube channel.) It is useful if you choose to disregard our advice about the youtube_signup_required error and modify your application to provide a different user experience for users with unlinked Google Accounts.
  • An entry for an unlinked Google Account holder contains only a few tags as those users can not customize their profile data without first creating a YouTube channel. The tag definition lists the different tags that may appear in a profile entry depending on whether the user has a YouTube account or an unlinked Google Account.
Displaying an email address for unlinked Google Account holders
In addition to handling the youtube_signup_required error, your application should also be prepared to display an email address for users with unlinked Google Accounts.
In Closing
If you have reached this point in the blog post, thanks for being a dedicated reader. We recognize that unlinked Google Accounts do introduce a certain level of complexity, but, at the same time, they can also open your application to a much larger audience of users who use Google services but haven’t created YouTube channels yet.
We also want to note that v2.1 does not deprecate v2.0 since it is a minor revision. Going forward, new features unrelated to unlinked Google Accounts will be added to both v2.0 and v2.1 but not to the (deprecated) v1.0 of the API. 
Version 2.1 of the API is now available for testing on stage.gdata.youtube.com, and will be released to production in mid-October. 
Cheers, 
—Jarek Wilkiewicz, YouTube API Team

AdWords API v201109 launch — providing better targeting and reporting

October 7th, 2011  |  by AdWords API Team  |  published in Google Adwords API, Uncategorized

We’re pleased to announce the launch of AdWords API v201109, which includes upgrades to targeting and reporting. We’ve highlighted some of the new features below. A complete list of changes is available in the release notes. v201109 highlights…

Answering Obama’s call to action with STEM 100Kin10

October 7th, 2011  |  by A Googler  |  published in Google Blog, Uncategorized

Last January, U.S. President Obama challenged the nation to train 100,000 high-quality science, technology, engineering and math (STEM) teachers in 10 years. Google in Education decided to answer his call to action and became one of the founding member…

Announcing the SketchUp Halloween Challenge

October 7th, 2011  |  by aidanchopra  |  published in Google SketchUp

With Halloween just a few weeks away, nerds here in the Google Boulder office are in a tizzy about their costumes. We take this particular holiday very seriously.A haunted house I modeled years ago, with two pumpkins by IDW. He modeled them for SketchU…

Join the GA team and Partners at GAUGE NYC

October 7th, 2011  |  by Google Analytics team  |  published in Google Analytics

This is a guest post from Caleb Whitmore from Analytics Pros, a Google Analytics Certified Partner. Caleb is also the Chair of the Google Analytics Users’ Great Event (GAUGE) conference. We hope you’ll join the members of the GA team and GA Partners in…

National Cyber Security Awareness Month 2011: Our Shared Responsibility

October 7th, 2011  |  by Google Public Policy Blog  |  published in Google Public Policy, Uncategorized

Posted by Eric Davis, Public Policy Manager, Security(Cross-posted from the Official Google Blog)On the Internet, as with the offline world, the choices we make often have an impact on others. The links we share and the sites we visit can affect our se…

Twenty award winners blaze their way into our Zurich office

October 7th, 2011  |  by A Googler  |  published in Google Blog, Uncategorized

Last week in our Zurich office, we held a celebratory event for the 20 winners of the second annual European Google Trailblazer Awards, intended to recognize students that exhibit great potential in science and engineering. The eight girls and 12 boys …

National Cyber Security Awareness Month 2011: Our Shared Responsibility

October 7th, 2011  |  by A Googler  |  published in Google Blog, Uncategorized

(Cross-posted on the Public Policy Blog)On the Internet, as with the offline world, the choices we make often have an impact on others. The links we share and the sites we visit can affect our security and sometimes introduce risk for people we know. G…

My Summer @ Google – Freshmen Engineering Practicum

October 7th, 2011  |  by Google Students  |  published in Google Student Blog, Uncategorized

Introduction: We continue the “My Summer @ Google” series with a post from Tasha, a rising sophomore studying computer science at New Mexico State University. Tasha (who you may remember from a previous post) was a part of this summer’s Freshmen Engi…

Accessibility: A Progress Report

October 7th, 2011  |  by Google Public Policy Blog  |  published in Google Public Policy, Uncategorized

Posted by Naomi Black, Technical Program Manager, Accessibility Over the past few months, my colleagues and I have worked closely with advocacy organizations for the blind to improve our products. We have had a number of meetings with the National Fed…

Single-language labels in Google Maps

October 7th, 2011  |  by Lat Long Blog  |  published in Google Earth, Google Maps, Uncategorized

If you use Google Maps in English, you might notice we’ve expanded our coverage of translated labels. Previously, map labels would display both transliterated and local names for many places. Using a single language can help users by making the map…

Categories

  • Gmail (Google Mail) (308)
  • Google Adsense (614)
  • Google Adsense Feeds (44)
  • Google Adwords (672)
  • Google Adwords API (350)
  • Google Affiliate Network (84)
  • Google Ajax API (120)
  • Google Analytics (509)
  • Google Android (224)
  • Google App Engine (246)
  • Google Apps (877)
  • Google Blog (845)
  • Google Blogger Buzz (482)
  • Google Books (275)
  • Google Checkout (162)
  • Google Chrome (125)
  • Google Code (768)
  • Google Conversions (129)
  • Google CPG (147)
  • Google Custom Search (109)
  • Google Desktop (144)
  • Google Desktop API (174)
  • Google Docs (535)
  • Google DoubleClick (177)
  • Google Earth (606)
  • Google Enterprise (781)
  • Google Finance (81)
  • Google Gadgets (17)
  • Google Gears (54)
  • Google Grants (285)
  • Google Mac Blog (147)
  • Google Maps (283)
  • Google Merchant (214)
  • Google Mobile (345)
  • Google News (130)
  • Google Notebook (19)
  • Google Online Security (77)
  • Google Open Source (463)
  • Google OpenSocial (179)
  • Google Orkut (334)
  • Google Photos (Picasa) (105)
  • Google Product Ideas (23)
  • Google Public Policy (504)
  • Google Reader (120)
  • Google RechargeIT (29)
  • Google Research (146)
  • Google SketchUp (558)
  • Google Student Blog (403)
  • Google Talk (101)
  • Google Testing (248)
  • Google Translate (43)
  • Google TV Ads Blog (158)
  • Google Video (288)
  • Google Voice (79)
  • Google Wave (37)
  • Google Webmaster Central (376)
  • Google Website Optimizer (98)
  • Google.org (164)
  • iGoogle (85)
  • Uncategorized (848)
  • Youtube (728)
  • Youtube API (122)

Tags

adsense adsense google advertising adwords adwords google adwords tips analytics android blogger blogger buzz blogging platform Google Adsense Google Adwords google adwords help Google Analytics google analytics ga.js Google Android Google Blog google blogs google chat Google Code google culture Google Docs Google Earth Google Enterprise google insights google lat-long Google Mobile Google News google policy google products Google Public Policy Google SketchUp google updates google youtube official google blog open source sketch up sketchup sketchup 7 sketchup google sketchup pro website stats Youtube youtube videos

Page 1 of 11


Copyright © 2011 GoogleData.org, All Rights Reserved.
This site is not operated by, sponsored by, endorsed by, or affiliated with Google Inc. in any way.
Rss Feed Tweeter button Facebook button Technorati button Reddit button Myspace button Linkedin button Delicious button Digg button Stumbleupon button Newsvine button