def get_ua_goals(management_api):
  """Get a list of UA goal settings.

  Args:
    management_api: The Analytics Management API object.

  Returns:
    A list of UA goal settings.
  """
  goals = management_api.management().goals().list(
      accountId='~all', webPropertyId='~all', profileId='~all').execute()
  list_of_goals = goals['items']
  return list_of_goals