class_docstr: A class for handling connections and interactions with the Google Analytics Admin API.
  
  Attributes:
      credentials_file (str): The path to the Google Auth Credentials file for authentication
      and interacting with the Google Analytics API on behalf of the user.
  
      Scopes (List[str], Optional): The scopes to use when authenticating with the Google Analytics API.
class_docstr_tok: ["A","class","for","handling","connections","and","interactions","with","the","Google","Analytics","Admin","API",".","Attributes",":","credentials_file","(","str",")",":","The","path","to","the","Google","Auth","Credentials","file","for","authentication","and","interacting","with","the","Google","Analytics","API","on","behalf","of","the","user",".","Scopes","(","List","[","str","]",",","Optional",")",":","The","scopes","to","use","when","authenticating","with","the","Google","Analytics","API","."]
docstr: Check connection to the handler.
  
  Returns
  -------
  response
      Status confirmation
docstr_tok: ["Check","connection","to","the","handler",".","Returns","--","--","--","-","response","Status","confirmation"]
code: def check_connection(self) -> StatusResponse:
      """
      Check connection to the handler.
  
      Returns
      -------
      response
          Status confirmation
      """
      response = StatusResponse(False)
  
      try:
          # Call the Google Analytics API
          service = self.connect()
          result = service.list_conversion_events(
              parent=f"properties/{self.property_id}"
          )
  
          if result is not None:
              response.success = True
      except HttpError as error:
          response.error_message = (
              f"Error connecting to Google Analytics api: {error}."
          )
          log.logger.error(response.error_message)
  
      if response.success is False and self.is_connected is True:
          self.is_connected = False
  
      return response
  
file_path: mindsdb/mindsdb/integrations/handlers/google_analytics_handler/google_analytics_handler.py
imports: from mindsdb_sql import parse_sql
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.utilities import log
  from mindsdb.integrations.handlers.google_analytics_handler.google_analytics_tables import ConversionEventsTable
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  import os
  from google.analytics.admin_v1beta import AnalyticsAdminServiceClient
  from google.oauth2 import service_account
  from google.auth.transport.requests import Request
  from googleapiclient.errors import HttpError
label_desc: Use image node_id 4 for calling the GoogleAnalyticsHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response