MonsterInsights_GA_Lib_Service_Webmasters_Searchanalytics_Resource

The "searchanalytics" collection of methods.

Defined (1)

The class is defined in the following location(s).

/assets/lib/google/src/Google/Service/Webmasters.php  
  1. class MonsterInsights_GA_Lib_Service_Webmasters_Searchanalytics_Resource extends MonsterInsights_GA_Lib_Service_Resource 
  2.  
  3. /** 
  4. * Query your data with filters and parameters that you define. Returns zero or 
  5. * more rows grouped by the row keys that you define. You must define a date 
  6. * range of one or more days. 
  7. * When date is one of the group by values, any days without data are omitted 
  8. * from the result list. If you need to know which days have data, issue a broad 
  9. * date range query grouped by date for any metric, and see which day rows are 
  10. * returned. (searchanalytics.query) 
  11. * @param string $siteUrl The site's URL, including protocol. For example: 
  12. * http://www.example.com/ 
  13. * @param Google_SearchAnalyticsQueryRequest $postBody 
  14. * @param array $optParams Optional parameters. 
  15. * @return MonsterInsights_GA_Lib_Service_Webmasters_SearchAnalyticsQueryResponse 
  16. */ 
  17. public function query($siteUrl, MonsterInsights_GA_Lib_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) 
  18. $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); 
  19. $params = array_merge($params, $optParams); 
  20. return $this->call('query', array($params), "MonsterInsights_GA_Lib_Service_Webmasters_SearchAnalyticsQueryResponse");