








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

@interface PinSinAudiogramShapeGermanWon : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *youThemeTwoPhaseZone;
@property (nonatomic, assign) NSInteger transmitProblemPassOddForm;

@property (nonatomic, copy) NSString *selectedFarData;

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

@property (nonatomic, copy) void (^areaSourcesExporterSpanishSamplerJson)(BOOL result, NSDictionary *wasJson);

@end

@implementation PinSinAudiogramShapeGermanWon

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

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

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


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

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

- (void)existentWateryOuterBendAppendShiftChildren:(NSString *)formPreferredAssertionPostAlone
{
    self.youThemeTwoPhaseZone = [MARewardedAd sharedWithAdUnitIdentifier:formPreferredAssertionPostAlone];
    self.youThemeTwoPhaseZone.delegate = self;

    
    [self.youThemeTwoPhaseZone loadAd];
}


- (void)serverDriveCycleRestingDecomposeAudiencesData:(nullable NSString *)selectedFarData oddCreatorJson:(void(^)(BOOL result, NSDictionary *wasJson))oddCreatorJson {
    self.areaSourcesExporterSpanishSamplerJson = oddCreatorJson;
    self.selectedFarData = selectedFarData;
    if ( [self.youThemeTwoPhaseZone isReady]) {
        [self.youThemeTwoPhaseZone showAdForPlacement:nil customData:selectedFarData];
    }else {
        oddCreatorJson(NO,nil);
    }
}

- (void)serverDriveCycleRestingDecomposeAudiencesData:(nullable NSString *)selectedFarData albumHit:(void(^)(BOOL result))albumHit {
    self.declineLarger = albumHit;
    self.selectedFarData = selectedFarData;
    if ( [self.youThemeTwoPhaseZone isReady]) {
        [self.youThemeTwoPhaseZone showAdForPlacement:nil customData:selectedFarData];
    }else {
        albumHit(NO);
    }
}

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

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


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

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

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

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self rotateSeedDitherRankedColleague: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.youThemeTwoPhaseZone loadAd];
    
    if (self.declineLarger) {
        self.declineLarger(NO);
    }
    
    if (self.areaSourcesExporterSpanishSamplerJson) {
        self.areaSourcesExporterSpanishSamplerJson(NO, nil);
    }
}

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

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

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self rotateSeedDitherRankedColleague: __PRETTY_FUNCTION__ error:nil];
    
    if (self.declineLarger) {
        self.declineLarger(YES);
    }
    
    if (self.areaSourcesExporterSpanishSamplerJson) {
        NSDictionary *wasJson = [self pieceCloudyCreamyCircleExclusion:ad];
        self.areaSourcesExporterSpanishSamplerJson(YES, wasJson);
    }
}


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

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

@end
