title: How to get keyword type (Organic or Paid) from Google Analytics Reporting API
body: <p>I am using Google Analytics Core Reporting API. I have a little confusion that I want to discuss. </p>
  
  <p>First I want to get keyword which User has searched to reach on my site. I have used <code>ga:keyword</code>. I have also seen one other dimension which is <code>ga:searchKeyword</code>. Which one of these will give me desire result?</p>
  
  <p>Second I want to get keyword type is it organic or paid? If I will use <code>ga:medium</code> then will it give me type of searched keyword?</p>
  
  <p>BTY using following function to get results</p>
  
  <pre><code>private function getResults(&amp;$analytics, $profileId,$data) {
  
      $optParams = array(
  
          'dimensions' =&gt; 'ga:visitCount,ga:browser,ga:fullReferrer,ga:keyword,ga:country,ga:campaign,ga:medium'
          );
  
      return $analytics-&gt;data_ga-&gt;get(
              'ga:' . $profileId, $data['start_date'], $data['end_date'], 'ga:visits',$optParams);
  }
  </code></pre>
  
  <p>Please guide me. </p>
  
  <p>Best Regards,</p>