








#import <AppLovinSDK/AppLovinSDK.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>

@interface LandmarkGetPhonogramBulgarianAskInteract : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *calculateIcyMotionInvokeSearching;
@property (nonatomic, assign) NSInteger proposedSoftwareDynamicSubRecent;

@property (nonatomic, copy) NSString *runCanSurgeData;

@property (nonatomic, copy) void (^trackRankLate)(BOOL result);

@property (nonatomic, copy) void (^growTelephonySurgeGetUnchangedJson)(BOOL result, NSDictionary *optJson);

@end

@implementation LandmarkGetPhonogramBulgarianAskInteract

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t postToken;
    dispatch_once(&postToken, ^{
        shared = [[super allocWithZone:NULL] init];
    });
    return shared;
}

+ (NSString *)notAndEntity {
    return ALSdk.version;
}

- (void)showMediationDebugger {
    [[ALSdk shared] showMediationDebugger];
}


- (void)styleDecideFamilyUkrainianPanExportedKey:(NSString *)xxpk_maxkey scoreMaxResponderMenLookup:(NSString *)scoreMaxResponderMenLookup calendarPreferredFeatureExpectsPrivacy:(NSArray *)calendarPreferredFeatureExpectsPrivacy {
    
    
    
    Class she = NSClassFromString(@"FBAdSettings");
    if (she) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [she performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [she performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *absoluteDisappearInternalFurlongsSleep = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (calendarPreferredFeatureExpectsPrivacy) {
            builder.testDeviceAdvertisingIdentifiers = calendarPreferredFeatureExpectsPrivacy;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:absoluteDisappearInternalFurlongsSleep completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self beaconsCyclingCapButterflyIntrinsicLandmarkEighteen:scoreMaxResponderMenLookup];
    }];
}

- (void)beaconsCyclingCapButterflyIntrinsicLandmarkEighteen:(NSString *)scoreMaxResponderMenLookup
{
    self.calculateIcyMotionInvokeSearching = [MARewardedAd sharedWithAdUnitIdentifier:scoreMaxResponderMenLookup];
    self.calculateIcyMotionInvokeSearching.delegate = self;

    
    [self.calculateIcyMotionInvokeSearching loadAd];
}


- (void)floatingNetListenChannelsTargetGaelicData:(nullable NSString *)runCanSurgeData addActionsJson:(void(^)(BOOL result, NSDictionary *optJson))addActionsJson {
    self.growTelephonySurgeGetUnchangedJson = addActionsJson;
    self.runCanSurgeData = runCanSurgeData;
    if ( [self.calculateIcyMotionInvokeSearching isReady]) {
        [self.calculateIcyMotionInvokeSearching showAdForPlacement:nil customData:runCanSurgeData];
    }else {
        addActionsJson(NO,nil);
    }
}

- (void)floatingNetListenChannelsTargetGaelicData:(nullable NSString *)runCanSurgeData siteRole:(void(^)(BOOL result))siteRole {
    self.trackRankLate = siteRole;
    self.runCanSurgeData = runCanSurgeData;
    if ( [self.calculateIcyMotionInvokeSearching isReady]) {
        [self.calculateIcyMotionInvokeSearching showAdForPlacement:nil customData:runCanSurgeData];
    }else {
        siteRole(NO);
    }
}

- (void)obtainLeaveMonotonicSobTall:(const char *)name error:(NSString *)error {
    
}

- (NSDictionary *)loseElementDividePrintPace:(MAAd *)ad {
    NSMutableDictionary *optJson = [NSMutableDictionary dictionary];
    
    optJson[@"currency"] = @"USD";
    optJson[@"revenue"] = @(ad.revenue);
    
    if (ad.format.label.length > 0) {
        optJson[@"format"] = ad.format.label;
    }
    
    return [optJson copy];
}


- (void)didLoadAd:(nonnull MAAd *)ad {
    
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
    
    
    self.proposedSoftwareDynamicSubRecent = 0;
}

- (void)didFailToLoadAdForAdUnitIdentifier:(nonnull NSString *)adUnitIdentifier withError:(nonnull MAError *)error {
    
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:error.message];
    
    
    
    self.proposedSoftwareDynamicSubRecent++;
    NSInteger neverRet = pow(2, MIN(6, self.proposedSoftwareDynamicSubRecent));
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, neverRet * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        [self.calculateIcyMotionInvokeSearching loadAd];
    });
}

- (void)didHideAd:(MAAd *)ad {
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
    
    
    [self.calculateIcyMotionInvokeSearching loadAd];
}

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.calculateIcyMotionInvokeSearching loadAd];
    
    if (self.trackRankLate) {
        self.trackRankLate(NO);
    }
    
    if (self.growTelephonySurgeGetUnchangedJson) {
        self.growTelephonySurgeGetUnchangedJson(NO, nil);
    }
}

- (void)didClickAd:(nonnull MAAd *)ad {
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
}

- (void)didDisplayAd:(nonnull MAAd *)ad {
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
}

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
    
    if (self.trackRankLate) {
        self.trackRankLate(YES);
    }
    
    if (self.growTelephonySurgeGetUnchangedJson) {
        NSDictionary *optJson = [self loseElementDividePrintPace:ad];
        self.growTelephonySurgeGetUnchangedJson(YES, optJson);
    }
}


- (void)didCollapseAd:(nonnull MAAd *)ad {
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
}

- (void)didExpandAd:(nonnull MAAd *)ad {
    [self obtainLeaveMonotonicSobTall: __PRETTY_FUNCTION__ error:nil];
}

@end
