 import Foundation
 import UIKit
 import iAd
-import AdSupport
 
 // swiftlint:disable function_parameter_count
 

        DispatchQueue.global(qos: .background).async { [weak self] in
            guard let `self` = self else { return }
            self.getAttributionDetails { attributionInfo in
                let idfa = ASIdentifierManager.shared().advertisingIdentifier.uuidString
                let payload = MetricsPayload(data: MetricsPayloadData.launch(LaunchData(bundles: self.bundles,
                                                                                        userAgent: userAgent,
                                                                                        idfa: idfa,
                                                                                        attributionInfo: attributionInfo)))
                self.sendMetrics(payload: payload)
            }

    enum CodingKeys: String, CodingKey {
        case bundles
        case userAgent = "user_agent"
        case vendorId = "vendor_id"
        case osVersion = "os_version"
        case deviceType = "device_type"
        case attributionInfo = "apple_search_ads"
