title: Webmaster Tools: Google PHP API client only single result?
body: <p>I'm trying to pull a list of search queries from Google's Search Console API using the latest beta PHP API client. Auth works fine, permissions are OK. </p>
  
  <p>However, when I try to pull a list of search queries I only receive a single result despite using a dimension (query): </p>
  
  <pre><code>$webmastersService = new Google_Service_Webmasters($client);
  $searchanalytics = $webmastersService-&gt;searchanalytics;
  
  // Build query
  $request = new Google_Service_Webmasters_SearchAnalyticsQueryRequest;
  $request-&gt;setStartDate('2015-06-01');
  $request-&gt;setEndDate('2015-06-02');
  $request-&gt;setDimensions("[query]");
  
  $qsearch = $searchanalytics-&gt;query("http://www.mydomain.xyz", $request); 
  $rows = $qsearch-&gt;getRows();
  </code></pre>
  
  <p>print_r($rows) returns something similar to this, a summary of all clicks during the date range instead of a list of search keywords:</p>
  
  <pre><code>Array ( [0] =&gt; Google_Service_Webmasters_ApiDataRow Object (
  [collection_key:protected] =&gt; keys [internal_gapi_mappings:protected] =&gt;
  Array ( ) [clicks] =&gt; 210 [ctr] =&gt; 0.1028823282 [impressions] =&gt; 2095
  [keys] =&gt; [position] =&gt; 4.093283557047 [modelData:protected] =&gt;
  Array ( ) [processed:protected] =&gt; Array ( ) ) )
  </code></pre>
  
  <p>I've ploughed my way through the dev manual, the search console works fine and shows all results, but my API query doesn't seem to work properly.</p>
  
  <p>Appreciate any help and ideas. Thanks!</p>