title: No Linked You tube account, Code=401 "The operation couldn’t be completed. While Searching videos
body: <p>I am using YouTube Data API 2.1.</p>
  
  <p>When I search for video without login everything works fine, I got all the video listed.
  But when I try to search after login using an unlinked google account I got </p>
  
  <blockquote>
    <p>Error Domain=com.google.HTTPStatus Code=401 "The operation couldn’t be
    completed. (  NoLinkedYouTubeAccount
     
    <H1>NoLinkedYouTubeAccount</H1> <H2>Error 401</H2>   )"
    UserInfo=0x67cb240 {error= 
    NoLinkedYouTubeAccount   <H1>NoLinkedYouTubeAccount</H1> <H2>Error 401</H2>
      , NSLocalizedFailureReason=( 
    NoLinkedYouTubeAccount   <H1>NoLinkedYouTubeAccount</H1> <H2>Error 401</H2>
      )}</p>
  </blockquote>
  
  <p>But when I create channel it worked fine.</p>
  
  <p>How it is working when logged out, since this requires no user id:( . Also for searching public data no user id is needed as specified in documents.</p>
  
  <p>Anybody faced the same issue? or am I completely wrong?
  Please provide some guidance.</p>