 #if canImport(AdServices)
 import AdServices
 #endif
-
-enum AttributionFetcherError: Error {
-
-    case identifierForAdvertiserUnavailableForPlatform
-    case identifierForAdvertiserFrameworksUnavailable
-    case adServicesNotAvailable
-    case adServicesTokenFetchError
-
-}
 
 class AttributionFetcher {
 

        return nil
    }

    func afficheClientAttributionDetails(completion: @escaping ([String: NSObject]?, Error?) -> Void) {
        // Should match available platforms in
        // https://developer.apple.com/documentation/iad/adclient?language=swift
#if os(iOS)
        guard let afficheClientProxy = attributionFactory.afficheClientProxy() else {
            Logger.warn(Strings.attribution.search_ads_attribution_cancelled_missing_ad_framework)
            completion(nil, AttributionFetcherError.identifierForAdvertiserFrameworksUnavailable)
            return
        }
        afficheClientProxy.requestAttributionDetails(completion)
#else
        completion(nil, AttributionFetcherError.identifierForAdvertiserUnavailableForPlatform)
#endif
    }


            return .notDetermined
        }
        return self.fetchAuthorizationStatus
    }

}

private extension AttributionFetcher {

    enum Error: Swift.Error {

        case identifierForAdvertiserUnavailableForPlatform
        case identifierForAdvertiserFrameworksUnavailable

    }

}
