title: Which Google Client Cloud Library is used for Universal Analytics API
body: <p>I'm rebuilding some python code to download UA data. I have previously used the Google API client library (<a href="https://pypi.org/project/google-api-python-client/" rel="nofollow noreferrer">https://pypi.org/project/google-api-python-client/</a>) and specifically this code fragment from Google's examples to create the analytics object for the report</p>
  <pre><code>from apiclient.discovery import build
  
  def initialize_analyticsreporting():
   
    credentials = service_account.Credentials.from_service_account_file(
          KEY_FILE_LOCATION, scopes=SCOPES)
  
    # Build the service object
    analytics = build('analyticsreporting', 'v4', credentials=credentials)
  
    return analytics
  </code></pre>
  <p>The Google API Client documentation now says that they now recommend using Google's Cloud Client Libraries for Python - which would be great as the API library is <em>huge</em> and ultimately this will end up as an AWS Lambda so space is at a premium.</p>
  <p>The problem is I cannot find any documentation on which library (if any) I should be using for UA access.</p>
  <p>Anyone have any pointers?</p>