def GetAPIScope(api_name):
 try:
  return SCOPES[api_name]
 except KeyError:
  raise googleads.errors.GoogleAdsValueError(('Invalid API name "%s" provided. Acceptable values are: %s' % (api_name, SCOPES.keys())))

def GetAPIScope ( api_name ) : try : return SCOPES [ api_name ] except KeyError : raise googleads . errors . GoogleAdsValueError ( ( 'Invalid API name "%s" provided. Acceptable values are: %s' % ( api_name , SCOPES . keys ( ) ) ) )
retrieves the scope for the given api name .