title: YouTube Analytics API returning strange results
body: <p>I'm having a hard time with getting data from YouTubeAnalytics. I have created a client and its authenticating ok (I use the same client instance for google analytics). YouTubeAnalytics is enabled in google developer console but I seem to get different responses when using the AJAX console they provide to the <a href="http://github.com/google/google-api-php-client" rel="nofollow noreferrer">PHP client</a>. My tests are;</p>
  <h3>Getting info for my channel id (&quot;channel==MINE&quot;) - returns no data</h3>
  <pre><code>$analytics = new Google_Service_YouTubeAnalytics($client);
  
  var_dump($analytics-&gt;reports-&gt;query(
      &quot;channel==MINE&quot;,
      '2014-01-01',
      '2014-08-01',
      'views', array(
          'sort' =&gt; 'day',
          'dimensions' =&gt; 'day'
      )
  ));
  </code></pre>
  <h2></h2>
  <h3>Getting info for my actual channel id (&quot;channel==UC-CF-1aN7rEN8SBQgT9DDag&quot;) - returns 403 error</h3>
  <pre><code>$analytics = new Google_Service_YouTubeAnalytics($client);
  
  var_dump($analytics-&gt;reports-&gt;query(
      &quot;channel==UC-CF-1aN7rEN8SBQgT9DDag&quot;,
      '2014-01-01',
      '2014-08-01',
      'views', array(
          'sort' =&gt; 'day',
          'dimensions' =&gt; 'day'
      )
  ));
  </code></pre>
  <h2></h2>
  <h3>Getting info for my channel - this gets a different id to my channel id</h3>
  <pre><code>$service = new Google_Service_YouTube($client);
  
  $channels = $service-&gt;channels-&gt;listChannels('id,brandingSettings',array(
      'mine' =&gt; 'true',
  ));
  
  var_dump($channels[0]-&gt;getId());
  </code></pre>
  <h2></h2>
  <h3>Getting info for aforementioned different channel id - no data</h3>
  <pre><code>var_dump($analytics-&gt;reports-&gt;query(&quot;channel=={$channels[0]-&gt;getId()}&quot;,...);
  </code></pre>
  <p>Checking on youtube for this new channel ID shows &quot;Channel not found&quot;.</p>
  <p>Any one have any other suggestions? It seems like it must relate to some permissions of the channel? I just don't see what the different id to my channel id is related to.</p>