def GetAPIScope(api_name):
  """Retrieves the scope for the given API name.

  Args:
    api_name: A string identifying the name of the API we want to retrieve a
        scope for.

  Returns:
    A string that is the scope for the given API name.

  Raises:
    GoogleAdsValueError: If the given api_name is invalid; accepted valus are
        "adwords" and "dfp".
  """
  try:
    return SCOPES[api_name]
  except __HOLE__:
    raise googleads.errors.GoogleAdsValueError(
        'Invalid API name "%s" provided. Acceptable values are: %s'
        % (api_name, SCOPES.keys()))
dataset/ETHPy150Open googleads/googleads-python-lib/googleads/oauth2.py/GetAPIScope