def execute
      uri = URI.parse("https://analyticsreporting.googleapis.com/v4/reports:batchGet")
      https = Net::HTTP.new(uri.host, uri.port)
      https.use_ssl = true
      # https.set_debug_output($stdout)
      request = Net::HTTP::Post.new(uri.request_uri,
        "Content-Type" => "application/json",
        "Authorization" => "Bearer #{access_token}")
      request.body = query.to_json
      Response.new(https.request(request))
    end
def execute
      uri = URI.parse("https://analyticsreporting.googleapis.com/v4/reports:batchGet")
      https = Net::HTTP.new(uri.host, uri.port)
      https.use_ssl = true
      # https.set_debug_output($stdout)
      request = Net::HTTP::Post.new(uri.request_uri,
        "Content-Type" => "application/json",
        "Authorization" => "Bearer #{access_token}")
      request.body = query.to_json
      Response.new(https.request(request))
    end
Create a Query object.
 @param access_token [String] A valid access token with which to make a request to
   the specified View ID.
 @param end_date [Date, String] The end date for the report.
 @param query_string [String, Hash, JSON] The query in JSON format.
 @param start_date [Date, String] The start date for the report.
 @param view_id [String] The view ID of the property for which to submit the
   query.
 Send the requested query to Google Analytics and return the response.
 @return [GAAPI::Response] The response from the request.