├── .gitignore ├── LICENSE ├── OMAdColonyAdapter ├── Info.plist ├── OMAdColonyAdapter.h ├── OMAdColonyAdapter.m ├── OMAdColonyClass.h ├── OMAdColonyRewardedVideo.h ├── OMAdColonyRewardedVideo.m └── include │ └── Empty.h ├── OMAdMobAdapter ├── Info.plist ├── OMAdMobAdapter.h ├── OMAdMobAdapter.m ├── OMAdMobBanner.h ├── OMAdMobBanner.m ├── OMAdMobBannerClass.h ├── OMAdMobClass.h ├── OMAdMobInterstitial.h ├── OMAdMobInterstitial.m ├── OMAdMobInterstitialClass.h ├── OMAdMobNative.h ├── OMAdMobNative.m ├── OMAdMobNativeAd.h ├── OMAdMobNativeAd.m ├── OMAdMobNativeClass.h ├── OMAdMobNativeView.h ├── OMAdMobNativeView.m ├── OMAdMobRewardedVideo.h ├── OMAdMobRewardedVideo.m ├── OMAdMobRewardedVideoClass.h ├── OMAdMobSplash.h ├── OMAdMobSplash.m ├── OMAdMobSplashClass.h └── include │ └── Empty.h ├── OMAdTimingAdapter ├── Info.plist ├── OMAdTimingAdapter.h ├── OMAdTimingAdapter.m ├── OMAdTimingBanner.h ├── OMAdTimingBanner.m ├── OMAdTimingBannerClass.h ├── OMAdTimingBid.h ├── OMAdTimingBid.m ├── OMAdTimingClass.h ├── OMAdTimingInterstitial.h ├── OMAdTimingInterstitial.m ├── OMAdTimingInterstitialClass.h ├── OMAdTimingNative.h ├── OMAdTimingNative.m ├── OMAdTimingNativeAd.h ├── OMAdTimingNativeAd.m ├── OMAdTimingNativeClass.h ├── OMAdTimingNativeView.h ├── OMAdTimingNativeView.m ├── OMAdTimingRewardedVideo.h ├── OMAdTimingRewardedVideo.m ├── OMAdTimingRewardedVideoClass.h └── include │ └── Empty.h ├── OMAdmostAdapter ├── Info.plist ├── OMAdMostNativeAdView.h ├── OMAdMostNativeAdView.m ├── OMAdmostAdapter.h ├── OMAdmostAdapter.m ├── OMAdmostBanner.h ├── OMAdmostBanner.m ├── OMAdmostBannerClass.h ├── OMAdmostBid.h ├── OMAdmostBid.m ├── OMAdmostClass.h ├── OMAdmostInterstitial.h ├── OMAdmostInterstitial.m ├── OMAdmostInterstitialClass.h ├── OMAdmostNative.h ├── OMAdmostNative.m ├── OMAdmostRewardedVideo.h ├── OMAdmostRewardedVideo.m ├── OMAdmostRewardedVideoClass.h └── include │ └── Empty.h ├── OMAppLovinAdapter ├── Info.plist ├── OMAppLovinAdapter.h ├── OMAppLovinAdapter.m ├── OMAppLovinBanner.h ├── OMAppLovinBanner.m ├── OMAppLovinBannerClass.h ├── OMAppLovinClass.h ├── OMAppLovinInterstitial.h ├── OMAppLovinInterstitial.m ├── OMAppLovinInterstitialClass.h ├── OMAppLovinRewardedVideo.h ├── OMAppLovinRewardedVideo.m ├── OMAppLovinRewardedVideoClass.h └── include │ └── Empty.h ├── OMChartboostAdapter ├── Info.plist ├── OMChartboostAdapter.h ├── OMChartboostAdapter.m ├── OMChartboostClass.h ├── OMChartboostInterstitial.h ├── OMChartboostInterstitial.m ├── OMChartboostRewardedVideo.h ├── OMChartboostRewardedVideo.m └── include │ └── Empty.h ├── OMFacebookAdapter ├── Info.plist ├── OMFacebookAdapter.h ├── OMFacebookAdapter.m ├── OMFacebookBanner.h ├── OMFacebookBanner.m ├── OMFacebookBannerClass.h ├── OMFacebookBid.h ├── OMFacebookBid.m ├── OMFacebookBidClass.h ├── OMFacebookClass.h ├── OMFacebookInterstitial.h ├── OMFacebookInterstitial.m ├── OMFacebookInterstitialClass.h ├── OMFacebookNative.h ├── OMFacebookNative.m ├── OMFacebookNativeAd.h ├── OMFacebookNativeAd.m ├── OMFacebookNativeClass.h ├── OMFacebookNativeView.h ├── OMFacebookNativeView.m ├── OMFacebookRewardedVideo.h ├── OMFacebookRewardedVideo.m ├── OMFacebookRewardedVideoClass.h └── include │ └── Empty.h ├── OMFyberAdapter ├── Info.plist ├── OMFyberAdapter.h ├── OMFyberAdapter.m ├── OMFyberBanner.h ├── OMFyberBanner.m ├── OMFyberBannerClass.h ├── OMFyberClass.h └── include │ └── Empty.h ├── OMGoogleAdAdapter ├── Info.plist ├── OMGoogleAdAdapter.h ├── OMGoogleAdAdapter.m ├── OMGoogleAdBanner.h ├── OMGoogleAdBanner.m ├── OMGoogleAdBannerClass.h ├── OMGoogleAdClass.h ├── OMGoogleAdInterstitial.h ├── OMGoogleAdInterstitial.m ├── OMGoogleAdInterstitialClass.h ├── OMGoogleAdNative.h ├── OMGoogleAdNative.m ├── OMGoogleAdNativeAd.h ├── OMGoogleAdNativeAd.m ├── OMGoogleAdNativeClass.h ├── OMGoogleAdNativeView.h ├── OMGoogleAdNativeView.m ├── OMGoogleAdRewardedVideo.h ├── OMGoogleAdRewardedVideo.m ├── OMGoogleAdRewardedVideoClass.h ├── OMGoogleAdSplash.h ├── OMGoogleAdSplash.m ├── OMGoogleAdSplashClass.h └── include │ └── Empty.h ├── OMHeliumAdapter ├── Info.plist ├── OMHeliumAdapter.h ├── OMHeliumAdapter.m ├── OMHeliumBid.h ├── OMHeliumBid.m ├── OMHeliumClass.h ├── OMHeliumInterstitial.h ├── OMHeliumInterstitial.m ├── OMHeliumRewardedVideo.h ├── OMHeliumRewardedVideo.m ├── OMHeliumRouter.h ├── OMHeliumRouter.m └── include │ └── Empty.h ├── OMInMobiAdapter ├── Info.plist ├── OMInMobiAdapter.h ├── OMInMobiAdapter.m ├── OMInMobiBanner.h ├── OMInMobiBanner.m ├── OMInMobiBannerClass.h ├── OMInMobiBid.h ├── OMInMobiBid.m ├── OMInMobiClass.h ├── OMInMobiInterstitial.h ├── OMInMobiInterstitial.m ├── OMInMobiInterstitialClass.h ├── OMInMobiRewardedVideo.h ├── OMInMobiRewardedVideo.m └── include │ └── Empty.h ├── OMIronSourceAdapter ├── Info.plist ├── OMIronSourceAdapter.h ├── OMIronSourceAdapter.m ├── OMIronSourceBanner.h ├── OMIronSourceBanner.m ├── OMIronSourceClass.h ├── OMIronSourceInterstitial.h ├── OMIronSourceInterstitial.m ├── OMIronSourceRewardedVideo.h ├── OMIronSourceRewardedVideo.m ├── OMIronSourceRouter.h ├── OMIronSourceRouter.m └── include │ └── Empty.h ├── OMKuaiShouAdapter ├── Info.plist ├── OMKuaiShouAdapter.h ├── OMKuaiShouAdapter.m ├── OMKuaiShouAdapterClass.h ├── OMKuaiShouInterstitial.h ├── OMKuaiShouInterstitial.m ├── OMKuaiShouInterstitialClass.h ├── OMKuaiShouRewardedVideo.h ├── OMKuaiShouRewardedVideo.m ├── OMKuaiShouRewardedVideoClass.h └── include │ └── Empty.h ├── OMMintegralAdapter ├── Info.plist ├── OMMintegralAdapter.h ├── OMMintegralAdapter.m ├── OMMintegralBanner.h ├── OMMintegralBanner.m ├── OMMintegralBannerClass.h ├── OMMintegralBid.h ├── OMMintegralBid.m ├── OMMintegralBidClass.h ├── OMMintegralClass.h ├── OMMintegralInterstitial.h ├── OMMintegralInterstitial.m ├── OMMintegralInterstitialClass.h ├── OMMintegralNative.h ├── OMMintegralNative.m ├── OMMintegralNativeAd.h ├── OMMintegralNativeAd.m ├── OMMintegralNativeClass.h ├── OMMintegralNativeView.h ├── OMMintegralNativeView.m ├── OMMintegralRewardedVideo.h ├── OMMintegralRewardedVideo.m ├── OMMintegralRewardedVideoClass.h ├── OMMintegralRouter.h ├── OMMintegralRouter.m ├── OMMintegralSplash.h ├── OMMintegralSplash.m ├── OMMintegralSplashClass.h └── include │ └── Empty.h ├── OMMoPubAdapter ├── Info.plist ├── OMMopubAdapter.h ├── OMMopubAdapter.m ├── OMMopubBanner.h ├── OMMopubBanner.m ├── OMMopubBannerClass.h ├── OMMopubClass.h ├── OMMopubInterstitial.h ├── OMMopubInterstitial.m ├── OMMopubInterstitialClass.h ├── OMMopubNative.h ├── OMMopubNative.m ├── OMMopubNativeAd.h ├── OMMopubNativeAd.m ├── OMMopubNativeClass.h ├── OMMopubNativeView.h ├── OMMopubNativeView.m ├── OMMopubRewardedVideo.h ├── OMMopubRewardedVideo.m ├── OMMopubRewardedVideoClass.h └── include │ └── Empty.h ├── OMPangleAdapter ├── Info.plist ├── OMPangleAdapter.h ├── OMPangleAdapter.m ├── OMPangleBanner.h ├── OMPangleBanner.m ├── OMPangleBannerClass.h ├── OMPangleClass.h ├── OMPangleInterstitial.h ├── OMPangleInterstitial.m ├── OMPangleInterstitialClass.h ├── OMPangleNative.h ├── OMPangleNative.m ├── OMPangleNativeAd.h ├── OMPangleNativeAd.m ├── OMPangleNativeClass.h ├── OMPangleNativeView.h ├── OMPangleNativeView.m ├── OMPangleRewardedVideo.h ├── OMPangleRewardedVideo.m ├── OMPangleRewardedVideoClass.h ├── OMPangleSplash.h ├── OMPangleSplash.m ├── OMPangleSplashClass.h └── include │ └── Empty.h ├── OMPubNativeAdapter ├── Info.plist ├── OMPubNativeAdapter.h ├── OMPubNativeAdapter.m ├── OMPubNativeBanner.h ├── OMPubNativeBanner.m ├── OMPubNativeBid.h ├── OMPubNativeBid.m ├── OMPubNativeClass.h ├── OMPubNativeInterstitial.h ├── OMPubNativeInterstitial.m ├── OMPubNativeInterstitialClass.h ├── OMPubNativeNative.h ├── OMPubNativeNative.m ├── OMPubNativeNativeAd.h ├── OMPubNativeNativeAd.m ├── OMPubNativeNativeClass.h ├── OMPubNativeNativeView.h ├── OMPubNativeNativeView.m ├── OMPubNativeRewardedVideo.h ├── OMPubNativeRewardedVideo.m ├── OMPubNativeRewardedVideoClass.h └── include │ └── Empty.h ├── OMSigMobAdapter ├── Info.plist ├── OMSigMobAdapter.h ├── OMSigMobAdapter.m ├── OMSigMobClass.h ├── OMSigMobInterstitial.h ├── OMSigMobInterstitial.m ├── OMSigMobInterstitialClass.h ├── OMSigMobRewardedVideo.h ├── OMSigMobRewardedVideo.m ├── OMSigMobRewardedVideoClass.h └── include │ └── Empty.h ├── OMTapjoyAdapter ├── Info.plist ├── OMTapjoyAdapter.h ├── OMTapjoyAdapter.m ├── OMTapjoyClass.h ├── OMTapjoyRewardedVideo.h ├── OMTapjoyRewardedVideo.m └── include │ └── Empty.h ├── OMTencentAdAdapter ├── Info.plist ├── OMTencentAdAdapter.h ├── OMTencentAdAdapter.m ├── OMTencentAdBanner.h ├── OMTencentAdBanner.m ├── OMTencentAdBannerClass.h ├── OMTencentAdClass.h ├── OMTencentAdInterstitial.h ├── OMTencentAdInterstitial.m ├── OMTencentAdInterstitialClass.h ├── OMTencentAdNative.h ├── OMTencentAdNative.m ├── OMTencentAdNativeAd.h ├── OMTencentAdNativeAd.m ├── OMTencentAdNativeClass.h ├── OMTencentAdNativeView.h ├── OMTencentAdNativeView.m ├── OMTencentAdRewardedVideo.h ├── OMTencentAdRewardedVideo.m ├── OMTencentAdRewardedVideoClass.h ├── OMTencentAdSplash.h ├── OMTencentAdSplash.m ├── OMTencentAdSplashClass.h └── include │ └── Empty.h ├── OMUnityAdapter ├── Info.plist ├── OMUnityAdapter.h ├── OMUnityAdapter.m ├── OMUnityBanner.h ├── OMUnityBanner.m ├── OMUnityBannerClass.h ├── OMUnityClass.h ├── OMUnityRewardedVideo.h ├── OMUnityRewardedVideo.m ├── OMUnityRouter.h ├── OMUnityRouter.m └── include │ └── Empty.h ├── OMVungleAdapter ├── Info.plist ├── OMVungleAdapter.h ├── OMVungleAdapter.m ├── OMVungleBanner.h ├── OMVungleBanner.m ├── OMVungleBid.h ├── OMVungleBid.m ├── OMVungleClass.h ├── OMVungleInterstitial.h ├── OMVungleInterstitial.m ├── OMVungleRewardedVideo.h ├── OMVungleRewardedVideo.m └── include │ └── Empty.h ├── OpenMediation.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ ├── OpenMediation.xcscheme │ └── OpenMediationDemo.xcscheme ├── OpenMediation ├── Info.plist ├── OpenMediation.h ├── OpenMediation.m ├── OpenMediation.modulemap ├── OpenMediationAdFormats.h ├── OpenMediationBanner │ ├── OMBanner.h │ ├── OMBanner.m │ ├── OMBannerAd.h │ ├── OMBannerAd.m │ └── OMBannerDelegate.h ├── OpenMediationBid │ ├── OMBid.h │ ├── OMBid.m │ ├── OMBidCustomEvent.h │ ├── OMBidNetworkItem.h │ ├── OMBidNetworkItem.m │ ├── OMBidResponse.h │ └── OMBidResponse.m ├── OpenMediationConstant.h ├── OpenMediationCrossPromotion │ ├── OMCrossPromotion.h │ ├── OMCrossPromotion.m │ ├── OMCrossPromotionAd.h │ ├── OMCrossPromotionAd.m │ ├── OMCrossPromotionAdDelegate.h │ └── OMCrossPromotionDelegate.h ├── OpenMediationCustomEvent │ ├── OMBannerCustomEvent.h │ ├── OMCrossPromotionCustomEvent.h │ ├── OMCustomEventDelegate.h │ ├── OMInterstitialCustomEvent.h │ ├── OMMediatedNativeAd.h │ ├── OMMediationAdapter.h │ ├── OMNativeCustomEvent.h │ ├── OMNativeViewCustomEvent.h │ ├── OMRewardedVideoCustomEvent.h │ └── OMSplashCustomEvent.h ├── OpenMediationImpressionData │ ├── OMImpressionData.h │ ├── OMImpressionData.m │ ├── OMImpressionDataDelegate.h │ ├── OMImpressionDataRouter.h │ └── OMImpressionDataRouter.m ├── OpenMediationInterstitial │ ├── OMInterstitial.h │ ├── OMInterstitial.m │ ├── OMInterstitialAd.h │ ├── OMInterstitialAd.m │ └── OMInterstitialDelegate.h ├── OpenMediationModel │ ├── OMConfig.h │ ├── OMConfig.m │ ├── OMInstance.h │ ├── OMInstance.m │ ├── OMModelUmbrella.h │ ├── OMScene.h │ ├── OMScene.m │ ├── OMUnit.h │ └── OMUnit.m ├── OpenMediationNative │ ├── OMNative.h │ ├── OMNative.m │ ├── OMNativeAd.h │ ├── OMNativeAd.m │ ├── OMNativeAdView.h │ ├── OMNativeAdView.m │ ├── OMNativeDelegate.h │ ├── OMNativeManager.h │ ├── OMNativeManager.m │ ├── OMNativeMediaView.h │ ├── OMNativeMediaView.m │ ├── OMNativeView.h │ └── OMNativeView.m ├── OpenMediationNetwork │ ├── OMBaseRequest.h │ ├── OMBaseRequest.m │ ├── OMCDRequest.h │ ├── OMCDRequest.m │ ├── OMErrorRequest.h │ ├── OMErrorRequest.m │ ├── OMEventRequest.h │ ├── OMEventRequest.m │ ├── OMIAPRequest.h │ ├── OMIAPRequest.m │ ├── OMIcRequest.h │ ├── OMIcRequest.m │ ├── OMInitRequest.h │ ├── OMInitRequest.m │ ├── OMLrRequest.h │ ├── OMLrRequest.m │ ├── OMNetworkUmbrella.h │ ├── OMRequest.h │ ├── OMRequest.m │ ├── OMWaterfallRequest.h │ └── OMWaterfallRequest.m ├── OpenMediationPromotion │ ├── OMCrossPromotionBanner.h │ ├── OMCrossPromotionBanner.m │ ├── OMCrossPromotionBid.h │ ├── OMCrossPromotionBid.m │ ├── OMCrossPromotionCP.h │ ├── OMCrossPromotionCP.m │ ├── OMCrossPromotionCacheFile.h │ ├── OMCrossPromotionCacheFile.m │ ├── OMCrossPromotionCampaign.h │ ├── OMCrossPromotionCampaign.m │ ├── OMCrossPromotionCampaignManager.h │ ├── OMCrossPromotionCampaignManager.m │ ├── OMCrossPromotionCampaignModel.h │ ├── OMCrossPromotionCampaignModel.m │ ├── OMCrossPromotionClRequest.h │ ├── OMCrossPromotionClRequest.m │ ├── OMCrossPromotionClickHandler.h │ ├── OMCrossPromotionClickHandler.m │ ├── OMCrossPromotionDownloadManager.h │ ├── OMCrossPromotionDownloadManager.m │ ├── OMCrossPromotionDownloader.h │ ├── OMCrossPromotionDownloader.m │ ├── OMCrossPromotionExposureMonitor.h │ ├── OMCrossPromotionExposureMonitor.m │ ├── OMCrossPromotionHTTPCacheControl.h │ ├── OMCrossPromotionHTTPCacheControl.m │ ├── OMCrossPromotionJSBridge.h │ ├── OMCrossPromotionJSBridge.m │ ├── OMCrossPromotionNative.h │ ├── OMCrossPromotionNative.m │ ├── OMCrossPromotionNativeAd.h │ ├── OMCrossPromotionNativeAd.m │ ├── OMCrossPromotionNativeMediaView.h │ ├── OMCrossPromotionNativeMediaView.m │ ├── OMCrossPromotionNativeView.h │ ├── OMCrossPromotionNativeView.m │ ├── OMCrossPromotionRewardedVideo.h │ ├── OMCrossPromotionRewardedVideo.m │ ├── OMCrossPromotionVideoController.h │ ├── OMCrossPromotionVideoController.m │ ├── OMCrossPromotionWebController.h │ ├── OMCrossPromotionWebController.m │ ├── OMPromotionConfig.h │ ├── OMPromotionConfig.m │ ├── OMPromotionUnit.h │ └── OMPromotionUnit.m ├── OpenMediationRewardedVideo │ ├── OMRewardedVideo.h │ ├── OMRewardedVideo.m │ ├── OMRewardedVideoAd.h │ ├── OMRewardedVideoAd.m │ └── OMRewardedVideoDelegate.h ├── OpenMediationSegments │ ├── OMAdBase.h │ ├── OMAdBase.m │ ├── OMAdBasePrivate.h │ ├── OMAdSingletonInterface.h │ ├── OMAdSingletonInterface.m │ ├── OMAdSingletonInterfacePrivate.h │ ├── OMEventManager.h │ ├── OMEventManager.m │ ├── OMHybridLoad.h │ ├── OMHybridLoad.m │ ├── OMInstanceContainer.h │ ├── OMInstanceContainer.m │ ├── OMLoad.h │ ├── OMLoad.m │ ├── OMLoadFrequencryControl.h │ ├── OMLoadFrequencryControl.m │ ├── OMMediations.h │ ├── OMMediations.m │ ├── OMSmartLoad.h │ ├── OMSmartLoad.m │ ├── OMUserData.h │ └── OMUserData.m ├── OpenMediationSplash │ ├── OMSplash.h │ ├── OMSplash.m │ ├── OMSplashAd.h │ ├── OMSplashAd.m │ └── OMSplashDelegate.h ├── OpenMediationTool │ ├── NSData+OMGzip.h │ ├── NSData+OMGzip.m │ ├── NSDate+OMExtension.h │ ├── NSDate+OMExtension.m │ ├── NSError+OMExtension.h │ ├── NSError+OMExtension.m │ ├── NSNumber+OMExtension.h │ ├── NSNumber+OMExtension.m │ ├── NSString+OMEncrypt.h │ ├── NSString+OMEncrypt.m │ ├── NSString+OMExtension.h │ ├── NSString+OMExtension.m │ ├── OMBacktrace.h │ ├── OMBacktrace.m │ ├── OMCrashHandle.h │ ├── OMCrashHandle.m │ ├── OMDependTask.h │ ├── OMDependTask.m │ ├── OMError.h │ ├── OMError.m │ ├── OMExposureMonitor.h │ ├── OMExposureMonitor.m │ ├── OMKeychain.h │ ├── OMKeychain.m │ ├── OMLogMoudle.h │ ├── OMLogMoudle.m │ ├── OMMacros.h │ ├── OMNetMonitor.h │ ├── OMNetMonitor.m │ ├── OMReachability+OMExtentsion.h │ ├── OMReachability+OMExtentsion.m │ ├── OMReachability.h │ ├── OMReachability.m │ ├── OMSDKError.h │ ├── OMSDKError.m │ ├── OMToolUmbrella.h │ ├── OMWeakObject.h │ ├── OMWeakObject.m │ ├── UIDevice+OMExtension.h │ ├── UIDevice+OMExtension.m │ ├── UIView+OMExtentsion.h │ ├── UIView+OMExtentsion.m │ ├── UIViewController+OMExtension.h │ └── UIViewController+OMExtension.m ├── OpenMediationUmbrella.h └── include │ ├── OMAdBase.h │ ├── OMAdSingletonInterface.h │ ├── OMBanner.h │ ├── OMBannerDelegate.h │ ├── OMCrossPromotion.h │ ├── OMCrossPromotionDelegate.h │ ├── OMImpressionData.h │ ├── OMImpressionDataDelegate.h │ ├── OMInterstitial.h │ ├── OMInterstitialDelegate.h │ ├── OMNative.h │ ├── OMNativeAd.h │ ├── OMNativeDelegate.h │ ├── OMNativeMediaView.h │ ├── OMNativeView.h │ ├── OMRewardedVideo.h │ ├── OMRewardedVideoDelegate.h │ ├── OMScene.h │ ├── OMSplash.h │ ├── OMSplashDelegate.h │ ├── OpenMediation.h │ ├── OpenMediationAdFormats.h │ └── OpenMediation_Ref.h ├── OpenMediationDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-1024.png │ │ ├── Icon-20.png │ │ ├── Icon-20@2x-1.png │ │ ├── Icon-20@2x.png │ │ ├── Icon-20@3x.png │ │ ├── Icon-29.png │ │ ├── Icon-29@2x-1.png │ │ ├── Icon-29@2x.png │ │ ├── Icon-29@3x.png │ │ ├── Icon-40.png │ │ ├── Icon-40@2x-1.png │ │ ├── Icon-40@2x.png │ │ ├── Icon-40@3x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ └── Icon-83.5@2x.png │ ├── Contents.json │ ├── noSelectIcon.imageset │ │ ├── Contents.json │ │ ├── noSelectIcon@2x.png │ │ └── noSelectIcon@3x.png │ └── selectIcon.imageset │ │ ├── Contents.json │ │ ├── selectIcon@2x.png │ │ └── selectIcon@3x.png ├── BannerViewController.h ├── BannerViewController.m ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── BaseViewController.h ├── BaseViewController.m ├── CrossPromotionViewController.h ├── CrossPromotionViewController.m ├── CustomXibs │ ├── AdmostCustomNative4937-inter.xib │ ├── AdmostCustomNative4937.xib │ ├── AdmostCustomNative5950.xib │ ├── amr-adchoices.png │ ├── native_int_close.png │ └── random-grey-variations.png ├── Info.plist ├── InitSettingViewController.h ├── InitSettingViewController.m ├── InterstitialViewController.h ├── InterstitialViewController.m ├── MainViewController.h ├── MainViewController.m ├── NativeViewController.h ├── NativeViewController.m ├── RewardedVideoViewController.h ├── RewardedVideoViewController.m ├── SplashViewController.h ├── SplashViewController.m ├── WelcomeViewController.h ├── WelcomeViewController.m └── main.m ├── OpenMediationSwiftDemo ├── AppDelegate.swift ├── Assets.xcassets │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-1024.png │ │ ├── Icon-20.png │ │ ├── Icon-20@2x-1.png │ │ ├── Icon-20@2x.png │ │ ├── Icon-20@3x.png │ │ ├── Icon-29.png │ │ ├── Icon-29@2x-1.png │ │ ├── Icon-29@2x.png │ │ ├── Icon-29@3x.png │ │ ├── Icon-40.png │ │ ├── Icon-40@2x-1.png │ │ ├── Icon-40@2x.png │ │ ├── Icon-40@3x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ └── Icon-83.5@2x.png │ └── Contents.json ├── BannerViewController.swift ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── CrossPromotViewController.swift ├── Info.plist ├── InterstitialViewController.swift ├── NativeViewController.swift ├── SplashViewController.swift ├── VideoViewController.swift ├── ViewController.swift └── WelcomeViewController.swift ├── Package.swift ├── Podfile └── README.md /OMAdColonyAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMAdColonyAdapter/OMAdColonyAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMAdColonyClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const AdColonyAdapterVersion = @"2.0.7"; 11 | 12 | @interface OMAdColonyAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | + (void)setConsent:(BOOL)consent; 18 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 19 | + (void)setUserAgeRestricted:(BOOL)restricted; 20 | + (void)setUserAge:(NSInteger)userAge; 21 | + (void)setUserGender:(NSInteger)userGender; 22 | + (NSInteger)getUserAge; 23 | + (NSInteger)getUserGender; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /OMAdColonyAdapter/OMAdColonyRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdColonyClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdColonyRewardedVideo : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, strong) AdColonyInterstitial *adColonyAd; 13 | @property (nonatomic, weak) id delegate; 14 | @property (nonatomic, strong) AdColonyZone *zone; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 17 | - (void)loadAd; 18 | - (BOOL)isReady; 19 | - (void)show:(UIViewController*)vc; 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMAdColonyAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMAdMobAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMAdMobClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdMobAdapter : NSObject 11 | 12 | + (NSString*)adapterVerison; 13 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 14 | + (void)setConsent:(BOOL)consent; 15 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 16 | + (void)setUserAgeRestricted:(BOOL)restricted; 17 | + (BOOL)npaAd; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBannerCustomEvent.h" 7 | #import "OMAdMobBannerClass.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMAdMobBanner : UIView 13 | 14 | @property(nonatomic, weak, nullable) id delegate; 15 | @property (nonatomic, strong) GADBannerView *admobBannerView; 16 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 17 | - (void)loadAd; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMInterstitialCustomEvent.h" 6 | #import "OMAdMobInterstitialClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | 11 | 12 | @interface OMAdMobInterstitial : NSObject 13 | 14 | @property (nonatomic, strong) GADInterstitialAd *admobInterstitial; 15 | @property (nonatomic, copy) NSString *pid; 16 | @property (nonatomic, weak) id delegate; 17 | @property (nonatomic, assign) BOOL ready; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)show:(UIViewController*)vc; 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMNativeCustomEvent.h" 7 | #import "OMAdMobNativeClass.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMAdMobNative : NSObject 13 | 14 | @property (nonatomic, strong) GADAdLoader *adLoader; 15 | @property (nonatomic, weak) id delegate; 16 | @property (nonatomic, assign) BOOL canLoadRequest; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 19 | - (void)loadAd; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMAdMobNativeAd.h" 5 | 6 | @implementation OMAdMobNativeAd 7 | - (instancetype)initWithGadNativeAd:(GADNativeAd*)gadNativeAd { 8 | self = [super init]; 9 | if (self) { 10 | _adObject = gadNativeAd; 11 | _title = [gadNativeAd headline]; 12 | _body= [gadNativeAd body]; 13 | id icon = [gadNativeAd icon]; 14 | NSURL * url =(NSURL *) [icon imageURL]; 15 | _iconUrl = [url absoluteString]; 16 | _rating = [gadNativeAd starRating].doubleValue; 17 | _callToAction = [gadNativeAd callToAction]; 18 | _nativeViewClass = @"OMAdMobNativeView"; 19 | } 20 | return self; 21 | } 22 | @end 23 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeViewCustomEvent.h" 6 | #import "OMAdMobNativeAd.h" 7 | #import "OMAdMobNativeClass.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMAdMobNativeView : UIView 12 | @property (nonatomic, strong) OMAdMobNativeAd *nativeAd; 13 | @property (nonatomic, strong) GADNativeAdView *gadNativeView; 14 | @property (nonatomic, strong) GADMediaView *mediaView; 15 | @property(nonatomic, strong) NSLayoutConstraint *heightConstraint; 16 | - (instancetype)initWithFrame:(CGRect)frame; 17 | 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMRewardedVideoCustomEvent.h" 6 | #import "OMAdMobRewardedVideoClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | 11 | @interface OMAdMobRewardedVideo : NSObject 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, strong) GADRewardedAd *videoAd; 14 | @property (nonatomic, strong) GADAdReward *reward; 15 | @property (nonatomic, weak) id delegate; 16 | @property (nonatomic, assign) BOOL ready; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMAdMobAdapter/OMAdMobSplash.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMSplashCustomEvent.h" 6 | #import "OMAdMobSplashClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdMobSplash : NSObject 11 | 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) GADAppOpenAd *appOpenAd; 15 | @property (nonatomic, assign) CGSize adSize; 16 | @property (nonatomic, strong) NSDate *loadTime; 17 | @property (nonatomic, assign) BOOL ready; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary *)adParameter adSize:(CGSize)size; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)showWithWindow:(UIWindow *)window customView:(UIView *)customView; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMAdMobAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | static NSString *const AdTimingAdapterVersion = @"2.0.4"; 10 | 11 | @interface OMAdTimingAdapter : NSObject 12 | 13 | + (NSString*)adapterVerison; 14 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 15 | 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdTimingBannerClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdTimingBanner : UIView 11 | 12 | @property(nonatomic, weak, nullable) id delegate; 13 | @property (nonatomic, strong) AdTimingBidBanner *banner; 14 | @property (nonatomic, assign) BOOL impr; 15 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 16 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBidCustomEvent.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMAdTimingBid : NSObject 10 | 11 | + (NSString*)bidderToken; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingBid.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMAdTimingBid.h" 5 | #import "OMAdTimingClass.h" 6 | 7 | @implementation OMAdTimingBid 8 | 9 | + (NSString*)bidderToken { 10 | NSString *token = @""; 11 | Class adtimingClass = NSClassFromString(@"AdTimingBid"); 12 | if (adtimingClass && [adtimingClass respondsToSelector:@selector(bidderToken)]) { 13 | token = [adtimingClass bidderToken]; 14 | } 15 | return token; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingClass.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #ifndef OMAdTimingClass_h 5 | #define OMAdTimingClass_h 6 | 7 | typedef NS_ENUM(NSInteger, AdTimingBidAdType) { 8 | AdTimingBidAdTypeBanner = (1 << 0), 9 | AdTimingBidAdTypeNative = (1 << 1), 10 | AdTimingBidAdTypeRewardedVideo = (1 << 2), 11 | AdTimingBidAdTypeInterstitial = (1 << 4), 12 | }; 13 | 14 | 15 | @interface AdTimingBid : NSObject 16 | + (NSString *)SDKVersion; 17 | + (void)initWithAppKey:(NSString*)appKey; 18 | + (NSString*)bidderToken; 19 | + (void)setGDPRConsent:(BOOL)consent; 20 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 21 | + (void)setUserAge:(NSInteger)userAge; 22 | + (void)setUserGender:(NSInteger)userGender; 23 | @end 24 | 25 | #endif /* OMAdTimingClass_h */ 26 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdTimingInterstitialClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdTimingInterstitial : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, weak) id delegate; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdTimingNativeClass.h" 6 | #import "OMNativeCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdTimingNative : NSObject 11 | 12 | @property (nonatomic, strong) AdTimingBidNative *native; 13 | @property (nonatomic, strong) NSString *pid; 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic, weak) UIViewController *rootVC; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 18 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMAdTimingNativeAd.h" 5 | 6 | @interface OMAdTimingNativeAd() 7 | 8 | @property (nonatomic, strong) id mediatedAd; 9 | @property (nonatomic, assign) BOOL rendering; 10 | @property (nonatomic, assign) BOOL impr; 11 | @end 12 | 13 | 14 | @implementation OMAdTimingNativeAd 15 | 16 | - (instancetype)initWithAdTimingNativeAd:(AdTimingBidNativeAd*)adtNativeAd { 17 | if (self = [super init]) { 18 | _adObject = adtNativeAd; 19 | _title = [adtNativeAd title]; 20 | _body = [adtNativeAd body]; 21 | _iconUrl = [NSString stringWithFormat:@"%@",[adtNativeAd iconUrl]]; 22 | _callToAction = [adtNativeAd callToAction]; 23 | _rating = [adtNativeAd rating]; 24 | _nativeViewClass = @"OMAdTimingNativeView"; 25 | } 26 | return self; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeViewCustomEvent.h" 6 | #import "OMAdTimingNativeClass.h" 7 | #import "OMAdTimingNativeAd.h" 8 | #import "OMAdTimingNativeView.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMAdTimingNativeView : UIView 13 | 14 | @property (nonatomic, strong) OMAdTimingNativeAd *nativeAd; 15 | @property (nonatomic, strong) AdTimingBidNativeView *adtNativeView; 16 | @property (nonatomic, strong) AdTimingBidNativeMediaView *mediaView; 17 | 18 | /// This is a method to initialize an AdTimingNativeView. 19 | /// Parameter frame: the AdTimingNativeView frame. 20 | - (instancetype)initWithFrame:(CGRect)frame; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/OMAdTimingRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdTimingRewardedVideoClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdTimingRewardedVideo : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, weak) id delegate; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMAdTimingAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMAdmostAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdMostNativeAdView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdmostBannerClass.h" 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMAdMostNativeAdView : UIView 9 | @property (nonatomic, strong) AMRBanner *nativeAd; 10 | 11 | - (instancetype)initWithAdmostNativeAd:(AMRBanner*)nativeAd; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdMostNativeAdView.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMAdMostNativeAdView.h" 5 | 6 | @implementation OMAdMostNativeAdView 7 | 8 | - (instancetype)initWithAdmostNativeAd:(AMRBanner*)nativeAd { 9 | if (self = [super initWithFrame:nativeAd.bannerView.bounds]) { 10 | self.nativeAd = nativeAd; 11 | [self addSubview:nativeAd.bannerView]; 12 | } 13 | return self; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdmostAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMAdmostClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const AdmostAdapterVersion = @"2.0.9"; 11 | 12 | @interface OMAdmostAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | 18 | + (void)setConsent:(BOOL)consent; 19 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 20 | + (void)setUserAgeRestricted:(BOOL)restricted; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdmostBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBannerCustomEvent.h" 7 | #import "OMAdmostBannerClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMAdmostBanner : UIView 13 | 14 | @property (nonatomic, strong) AMRBanner *banner; 15 | @property (nonatomic, copy) NSString *pid; 16 | @property(nonatomic, weak, nullable) id delegate; 17 | @property (nonatomic, weak) id bidDelegate; 18 | 19 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 20 | - (void)loadAd; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdmostBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBidCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAdmostBid : NSObject 11 | + (void)bidWithNetworkItem:(OMBidNetworkItem*)networkItem adFormat:(NSString*)format adSize:(CGSize)size responseCallback:(void(^)(NSDictionary *bidResponseData))callback; 12 | @end 13 | 14 | NS_ASSUME_NONNULL_END 15 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdmostInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMInterstitialCustomEvent.h" 6 | #import "OMAdmostInterstitialClass.h" 7 | #import "OMBidCustomEvent.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMAdmostInterstitial : NSObject 13 | 14 | @property (nonatomic, copy) NSString *pid; 15 | @property (nonatomic, strong) AMRInterstitial *interstitial; 16 | @property (nonatomic, weak) id delegate; 17 | @property (nonatomic, weak) id bidDelegate; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)show:(UIViewController*)vc; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdmostNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMNativeCustomEvent.h" 7 | #import "OMAdmostBannerClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMAdmostNative : NSObject 13 | 14 | @property (nonatomic, strong, nullable) AMRBanner *native; 15 | @property (nonatomic, copy) NSString *uid; 16 | @property (nonatomic, copy) NSString *pid; 17 | @property(nonatomic, weak, nullable) id delegate; 18 | @property (nonatomic, weak) id bidDelegate; 19 | @property (nonatomic, strong) NSObject *baseView; 20 | 21 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 22 | - (void)loadAd; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMAdmostAdapter/OMAdmostRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMRewardedVideoCustomEvent.h" 6 | #import "OMAdmostRewardedVideoClass.h" 7 | #import "OMBidCustomEvent.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMAdmostRewardedVideo : NSObject 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, strong) AMRRewardedVideo *rewardedVideo; 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic, weak) id bidDelegate; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 18 | - (void)loadAd; 19 | - (BOOL)isReady; 20 | - (void)show:(UIViewController*)vc; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMAdmostAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMAppLovinAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMAppLovinAdapter/OMAppLovinAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMAppLovinClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const AppLovinAdapterVersion = @"2.0.5"; 11 | 12 | @interface OMAppLovinAdapter : NSObject 13 | + (NSString*)adapterVerison; 14 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 15 | + (ALSdk*)alShareSdk; 16 | + (UIWindow *)currentWindow; 17 | + (void)setConsent:(BOOL)consent; 18 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 19 | + (void)setUserAgeRestricted:(BOOL)restricted; 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMAppLovinAdapter/OMAppLovinBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAppLovinBannerClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAppLovinBanner : UIView 11 | 12 | @property(nonatomic, weak, nullable) id delegate; 13 | @property (nonatomic, strong) ALAdView *bannerAdView; 14 | @property (nonatomic, assign) BOOL impr; 15 | @property (nonatomic, strong, nullable) ALAd *alAd; 16 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 17 | - (void)loadAd; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMAppLovinAdapter/OMAppLovinInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMInterstitialCustomEvent.h" 6 | #import "OMAppLovinInterstitialClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAppLovinInterstitial : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, weak) id delegate; 14 | @property (nonatomic, strong) ALInterstitialAd *appLovinInterstitial; 15 | @property (nonatomic, strong, nullable) ALAd *alAd; 16 | @property (nonatomic, assign) BOOL ready; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMAppLovinAdapter/OMAppLovinRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAppLovinRewardedVideoClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMAppLovinRewardedVideo : NSObject 11 | @property (nonatomic, strong, nullable) ALIncentivizedInterstitialAd *alAd; 12 | @property (nonatomic, strong) ALAd *ad; 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic, assign) NSInteger playPercent; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 18 | - (void)loadAd; 19 | - (BOOL)isReady; 20 | - (void)show:(UIViewController*)vc; 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMAppLovinAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMChartboostAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMChartboostAdapter/OMChartboostAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMChartboostClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const ChartboostAdapterVersion = @"2.0.5"; 11 | 12 | @interface OMChartboostAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 16 | + (void)setConsent:(BOOL)consent; 17 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 18 | + (void)setUserAgeRestricted:(BOOL)restricted; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMChartboostAdapter/OMChartboostInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMChartboostClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMChartboostInterstitial : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic,strong) CHBInterstitial *chbInterstitial; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAd; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMChartboostAdapter/OMChartboostRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMChartboostClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMChartboostRewardedVideo : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic,strong) CHBRewarded *chbRewarded; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAd; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMChartboostAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMFacebookAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | 7 | static NSString * const FacebookAdapterVersion = @"2.0.8"; 8 | 9 | @interface OMFacebookAdapter : NSObject 10 | 11 | + (NSString*)adapterVerison; 12 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 13 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 14 | +(void)setUserAgeRestricted:(BOOL)restricted; 15 | @end 16 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookBanner.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "OMFacebookBannerClass.h" 3 | #import "OMBannerCustomEvent.h" 4 | 5 | NS_ASSUME_NONNULL_BEGIN 6 | 7 | @interface OMFacebookBanner : UIView 8 | @property (nonatomic, strong) FBAdView *facebookBannerView; 9 | @property(nonatomic, weak, nullable) id delegate; 10 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 11 | - (void)loadAd; 12 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBidCustomEvent.h" 6 | 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMFacebookBid : NSObject 11 | 12 | + (NSString*)bidderToken; 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookBid.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMFacebookBid.h" 5 | #import "OMFacebookClass.h" 6 | #import "OMFacebookBidClass.h" 7 | 8 | @implementation OMFacebookBid 9 | 10 | + (NSString*)bidderToken { 11 | NSString *token = @""; 12 | Class fbSetting = NSClassFromString(@"FBAdSettings"); 13 | if (fbSetting && [fbSetting respondsToSelector:@selector(bidderToken)]) { 14 | token = [fbSetting bidderToken]; 15 | } 16 | return token; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookInterstitial.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "OMFacebookInterstitialClass.h" 3 | #import "OMInterstitialCustomEvent.h" 4 | 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMFacebookInterstitial : NSObject 9 | @property (nonatomic, strong) FBInterstitialAd *facebookInterstitial; 10 | @property (nonatomic, copy) NSString *pid; 11 | @property (nonatomic, weak) id delegate; 12 | @property (nonatomic, assign) BOOL ready; 13 | @property (nonatomic, getter=isAdValid, readonly) BOOL adValid; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAd; 17 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 18 | - (BOOL)isReady; 19 | - (void)show:(UIViewController*)vc; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMFacebookNativeClass.h" 6 | #import "OMNativeCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMFacebookNative : NSObject 11 | 12 | @property (nonatomic, strong) FBNativeAd *fbNativeAd; 13 | @property (nonatomic, weak) UIViewController *rootVC; 14 | @property (nonatomic, weak) id delegate; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 17 | - (void)loadAd; 18 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMFacebookNativeAd.h" 5 | 6 | @implementation OMFacebookNativeAd 7 | - (instancetype)initWithFBNativeAd:(FBNativeAd*)fbNativeAd { 8 | if (self = [super init]) { 9 | _adObject = fbNativeAd; 10 | _title = [fbNativeAd headline]; 11 | _body = [fbNativeAd bodyText]; 12 | FBAdImage *fbIcon = [fbNativeAd adChoicesIcon]; 13 | _iconUrl = [NSString stringWithFormat:@"%@",[fbIcon url]]; 14 | if ([fbNativeAd respondsToSelector:@selector(starRating)]) { 15 | struct FBAdStarRating star = [fbNativeAd starRating]; 16 | _rating = star.value; 17 | } 18 | _callToAction = [fbNativeAd callToAction]; 19 | _nativeViewClass = @"OMFacebookNativeView"; 20 | } 21 | return self; 22 | } 23 | @end 24 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMFacebookNativeClass.h" 6 | #import "OMFacebookNativeAd.h" 7 | #import "OMNativeViewCustomEvent.h" 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMFacebookNativeView : UIView 11 | 12 | @property (nonatomic, strong) OMFacebookNativeAd *nativeAd; 13 | @property (nonatomic, strong) FBAdChoicesView *adChoicesView; 14 | @property (nonatomic, strong) FBMediaView *mediaView; 15 | 16 | - (instancetype)initWithFrame:(CGRect)frame; 17 | 18 | 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMFacebookAdapter/OMFacebookRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMFacebookRewardedVideoClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMFacebookRewardedVideo : NSObject 10 | @property (nonatomic, copy) NSString *pid; 11 | @property (nonatomic, strong) FBRewardedVideoAd *faceBookPlacement; 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic, assign) BOOL ready; 14 | @property (nonatomic, getter=isAdValid, readonly) BOOL adValid; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 17 | - (void)loadAd; 18 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 19 | - (BOOL)isReady; 20 | - (void)show:(UIViewController*)vc; 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMFacebookAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMFyberAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMFyberAdapter/OMFyberAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMFyberClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const FyberAdapterVersion = @"2.0.3"; 11 | 12 | @interface OMFyberAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMFyberAdapter/OMFyberBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMFyberBannerClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMFyberBanner : UIView 10 | 11 | @property(nonatomic, weak, nullable) id delegate; 12 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 13 | - (void)loadAd; 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /OMFyberAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMGoogleAdClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMGoogleAdAdapter : NSObject 11 | 12 | + (NSString*)adapterVerison; 13 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 14 | + (void)setConsent:(BOOL)consent; 15 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 16 | + (void)setUserAgeRestricted:(BOOL)restricted; 17 | + (BOOL)npaAd; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBannerCustomEvent.h" 7 | #import "OMGoogleAdBannerClass.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMGoogleAdBanner : UIView 13 | 14 | @property(nonatomic, weak, nullable) id delegate; 15 | @property (nonatomic, strong) GAMBannerView *admobBannerView; 16 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 17 | - (void)loadAd; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMInterstitialCustomEvent.h" 6 | #import "OMGoogleAdInterstitialClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | 11 | 12 | @interface OMGoogleAdInterstitial : NSObject 13 | 14 | @property (nonatomic, strong) GAMInterstitialAd *admobInterstitial; 15 | @property (nonatomic, copy) NSString *pid; 16 | @property (nonatomic, weak) id delegate; 17 | @property (nonatomic, assign) BOOL ready; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)show:(UIViewController*)vc; 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMNativeCustomEvent.h" 7 | #import "OMGoogleAdNativeClass.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMGoogleAdNative : NSObject 13 | 14 | @property (nonatomic, strong) GADAdLoader *adLoader; 15 | @property (nonatomic, weak) id delegate; 16 | @property (nonatomic, assign) BOOL canLoadRequest; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 19 | - (void)loadAd; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMGoogleAdNativeAd.h" 5 | 6 | @implementation OMGoogleAdNativeAd 7 | - (instancetype)initWithGadNativeAd:(GADNativeAd*)gadNativeAd { 8 | self = [super init]; 9 | if (self) { 10 | _adObject = gadNativeAd; 11 | _title = [gadNativeAd headline]; 12 | _body= [gadNativeAd body]; 13 | id icon = [gadNativeAd icon]; 14 | NSURL * url =(NSURL *) [icon imageURL]; 15 | _iconUrl = [url absoluteString]; 16 | _rating = [gadNativeAd starRating].doubleValue; 17 | _callToAction = [gadNativeAd callToAction]; 18 | _nativeViewClass = @"OMGoogleAdNativeView"; 19 | } 20 | return self; 21 | } 22 | @end 23 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeViewCustomEvent.h" 6 | #import "OMGoogleAdNativeAd.h" 7 | #import "OMGoogleAdNativeClass.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMGoogleAdNativeView : UIView 12 | @property (nonatomic, strong) OMGoogleAdNativeAd *nativeAd; 13 | @property (nonatomic, strong) GADNativeAdView *gadNativeView; 14 | @property (nonatomic, strong) GADMediaView *mediaView; 15 | @property(nonatomic, strong) NSLayoutConstraint *heightConstraint; 16 | - (instancetype)initWithFrame:(CGRect)frame; 17 | 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMRewardedVideoCustomEvent.h" 6 | #import "OMGoogleAdRewardedVideoClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | 11 | @interface OMGoogleAdRewardedVideo : NSObject 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, strong) GADRewardedAd *videoAd; 14 | @property (nonatomic, strong) GADAdReward *reward; 15 | @property (nonatomic, weak) id delegate; 16 | @property (nonatomic, assign) BOOL ready; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/OMGoogleAdSplash.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMSplashCustomEvent.h" 6 | #import "OMGoogleAdSplashClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMGoogleAdSplash : NSObject 11 | 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) GADAppOpenAd *appOpenAd; 15 | @property (nonatomic, assign) CGSize adSize; 16 | @property (nonatomic, strong) NSDate *loadTime; 17 | @property (nonatomic, assign) BOOL ready; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary *)adParameter adSize:(CGSize)size; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)showWithWindow:(UIWindow *)window customView:(UIView *)customView; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMGoogleAdAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMHeliumAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMHeliumAdapter/OMHeliumAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMHeliumClass.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | static NSString * const HeliumAdapterVersion = @"2.1.3"; 10 | 11 | 12 | @interface OMHeliumAdapter : NSObject 13 | 14 | @property (nonatomic, copy, nullable) OMMediationAdapterInitCompletionBlock initBlock; 15 | 16 | + (NSString*)adapterVerison; 17 | 18 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 19 | +(void)setConsent:(BOOL)consent; 20 | +(void)setUSPrivacyLimit:(BOOL)privacyLimit; 21 | +(void)setUserAgeRestricted:(BOOL)restricted; 22 | @end 23 | 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMHeliumAdapter/OMHeliumBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBidCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMHeliumBid : NSObject 11 | + (void)bidWithNetworkItem:(id)networkItem adFormat:(NSString*)format adSize:(CGSize)size responseCallback:(void(^)(NSDictionary *bidResponseData))callback; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMHeliumAdapter/OMHeliumInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMHeliumRouter.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | #import "OMBidCustomEvent.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMHeliumInterstitial : NSObject 13 | 14 | @property (nonatomic, copy) NSString *pid; 15 | @property (nonatomic, weak) id delegate; 16 | @property (nonatomic, weak) id bidDelegate; 17 | @property (nonatomic, strong) NSDictionary *biInfo; 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMHeliumAdapter/OMHeliumRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMHeliumRouter.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | #import "OMBidCustomEvent.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMHeliumRewardedVideo : NSObject 12 | 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic, weak) id bidDelegate; 16 | @property (nonatomic, strong) NSDictionary *biInfo; 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 18 | - (void)loadAd; 19 | - (BOOL)isReady; 20 | - (void)show:(UIViewController*)vc; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMHeliumAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMInMobiAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMInMobiAdapter/OMInMobiAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMInMobiClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const InMobiAdapterVersion = @"2.0.5"; 11 | 12 | @interface OMInMobiAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | 18 | + (void)setConsent:(BOOL)consent; 19 | + (void)setUserAgeRestricted:(BOOL)restricted; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | 25 | -------------------------------------------------------------------------------- /OMInMobiAdapter/OMInMobiBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBannerCustomEvent.h" 7 | #import "OMInMobiBannerClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMInMobiBanner : UIView 13 | 14 | @property (nonatomic, strong) IMBanner *banner;; 15 | @property (nonatomic, copy) NSString *pid; 16 | @property(nonatomic, weak, nullable) id delegate; 17 | @property (nonatomic, weak) id bidDelegate; 18 | 19 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 20 | - (void)loadAd; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMInMobiAdapter/OMInMobiBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBidCustomEvent.h" 6 | #import "OMInMobiClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMInMobiBid : NSObject 11 | 12 | + (void)bidWithNetworkItem:(OMBidNetworkItem*)networkItem adFormat:(NSString*)format adSize:(CGSize)size responseCallback:(void(^)(NSDictionary *bidResponseData))callback; 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMInMobiAdapter/OMInMobiInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | 5 | #import 6 | #import "OMInterstitialCustomEvent.h" 7 | #import "OMInMobiInterstitialClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMInMobiInterstitial : NSObject 13 | 14 | @property (nonatomic, copy) NSString *pid; 15 | @property (nonatomic, strong) IMInterstitial *interstitial; 16 | @property (nonatomic, weak) id delegate; 17 | @property (nonatomic, weak) id bidDelegate; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)show:(UIViewController*)vc; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMInMobiAdapter/OMInMobiRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | 5 | #import 6 | #import "OMRewardedVideoCustomEvent.h" 7 | #import "OMInMobiInterstitialClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMInMobiRewardedVideo : NSObject 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) IMInterstitial *rewardedVideo; 15 | @property (nonatomic, weak) id delegate; 16 | @property (nonatomic, weak) id bidDelegate; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMInMobiAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMIronSourceAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMIronSourceAdapter/OMIronSourceAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMIronSourceClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | 11 | @interface OMIronSourceAdapter : NSObject 12 | @property (class, nonatomic) BOOL mediationAPI; 13 | + (NSString*)adapterVerison; 14 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 15 | + (void)setConsent:(BOOL)consent; 16 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 17 | +(void)setUserAgeRestricted:(BOOL)restricted; 18 | + (void)setUserAge:(NSInteger)userAge; 19 | + (void)setUserGender:(NSInteger)userGender; 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMIronSourceAdapter/OMIronSourceBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBannerCustomEvent.h" 6 | #import "OMIronSourceClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMIronSourceBanner : UIView 11 | 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic, strong, nullable) ISBannerView *bannerView; 14 | @property (nonatomic, weak) UIViewController *showVC; 15 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 16 | - (void)loadAd; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMIronSourceAdapter/OMIronSourceInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMIronSourceRouter.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMIronSourceInterstitial : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, weak) id delegate; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAd; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMIronSourceAdapter/OMIronSourceRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMIronSourceRouter.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMIronSourceRewardedVideo : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, weak) id delegate; 13 | 14 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 15 | - (void)loadAd; 16 | - (BOOL)isReady; 17 | - (void)show:(UIViewController*)vc; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMIronSourceAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMKuaiShouAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 2.0.2 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMKuaiShouAdapter/OMKuaiShouAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMKuaiShouAdapterClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const KSAdapterVersion = @"2.0.3"; 11 | 12 | @interface OMKuaiShouAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OMKuaiShouAdapter/OMKuaiShouInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMKuaiShouInterstitialClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMKuaiShouInterstitial : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, assign) BOOL adReadyFlag; 14 | @property (nonatomic, readonly) BOOL isValid; 15 | @property (nonatomic, strong) KSFullscreenVideoAd *fullscreenVideoAd; 16 | @property (nonatomic, weak) id delegate; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMKuaiShouAdapter/OMKuaiShouRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMKuaiShouRewardedVideoClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMKuaiShouRewardedVideo : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, strong) KSRewardedVideoAd *rewardedVideoAd; 13 | @property (nonatomic, readonly) BOOL isValid; 14 | @property (nonatomic, weak) id delegate; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 17 | - (void)loadAd; 18 | - (BOOL)isReady; 19 | - (void)show:(UIViewController*)vc; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMKuaiShouAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMMintegralAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | static NSString * const MintegralAdapterVersion = @"2.0.8"; 10 | 11 | @interface OMMintegralAdapter : NSObject 12 | 13 | + (NSString*)adapterVerison; 14 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 15 | + (void)setConsent:(BOOL)consent; 16 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 17 | + (void)setUserAgeRestricted:(BOOL)restricted; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMintegralBannerClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMMintegralBanner : UIView 11 | 12 | @property(nonatomic, weak, nullable) id delegate; 13 | @property (nonatomic, strong) MTGBannerAdView *bannerAdView; 14 | @property (nonatomic, assign) BOOL impr; 15 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 16 | - (void)loadAd; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBidCustomEvent.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMMintegralBid : NSObject 10 | 11 | + (NSString*)bidderToken; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralBid.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMMintegralBid.h" 5 | #import "OMMintegralBidClass.h" 6 | 7 | @implementation OMMintegralBid 8 | 9 | + (NSString*)bidderToken { 10 | NSString *token = @""; 11 | Class mtgSDK = NSClassFromString(@"MTGBiddingSDK"); 12 | if (mtgSDK && [mtgSDK respondsToSelector:@selector(buyerUID)]) { 13 | token = [mtgSDK buyerUID]; 14 | } 15 | return token;; 16 | } 17 | 18 | @end 19 | 20 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMintegralInterstitialClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMMintegralInterstitial : NSObject 12 | 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) MTGNewInterstitialAdManager *ivAdManager; 15 | @property (nonatomic, strong) MTGNewInterstitialBidAdManager *ivBidAdManager; 16 | @property (nonatomic, weak) id delegate; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMMintegralNativeAd.h" 5 | 6 | @implementation OMMintegralNativeAd 7 | 8 | -(instancetype)initWithMtgNativeAd:(MTGCampaign *)mtgCampaign withManager:(MTGNativeAdManager *)mtgManager withBidManager:(MTGBidNativeAdManager *)mtgBidManager { 9 | self = [super init]; 10 | if (self) { 11 | _adObject = mtgCampaign; 12 | _mtgManager = mtgManager; 13 | _mtgBidManager = mtgBidManager; 14 | _title = [mtgCampaign appName]; 15 | _body = [mtgCampaign appDesc]; 16 | _iconUrl = [mtgCampaign iconUrl]; 17 | _callToAction = [mtgCampaign adCall]; 18 | _nativeViewClass = @"OMMintegralNativeView"; 19 | } 20 | return self; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMintegralNativeClass.h" 6 | #import "OMMintegralNativeAd.h" 7 | #import "OMNativeViewCustomEvent.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMMintegralNativeView : UIView 12 | 13 | @property (nonatomic, strong) OMMintegralNativeAd *nativeAd; 14 | @property (nonatomic, strong) MTGAdChoicesView *adChoicesView; 15 | @property (nonatomic, strong) MTGMediaView *mediaView; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMMintegralRouter.h" 7 | #import "OMRewardedVideoCustomEvent.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMMintegralRewardedVideo : NSObject 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, weak) id delegate; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAd; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMMintegralAdapter/OMMintegralSplash.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMSplashCustomEvent.h" 6 | #import "OMMintegralSplashClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMMintegralSplash : NSObject 11 | 12 | @property (nonatomic, weak) id delegate; 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) MTGSplashAD *splashAD; 15 | @property (nonatomic, assign) CGSize adSize; 16 | @property (nonatomic, assign) BOOL isBidAd; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary *)adParameter adSize:(CGSize)size; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)showWithWindow:(UIWindow *)window customView:(UIView *)customView; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMMintegralAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMMoPubAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | #import "OMMediationAdapter.h" 7 | #import "OMMopubClass.h" 8 | 9 | static NSString * const MopubAdapterVersion = @"2.0.8"; 10 | 11 | @interface OMMopubAdapter : NSObject 12 | 13 | + (NSString*)adapterVerison; 14 | 15 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 16 | 17 | + (void)setConsent:(BOOL)consent; 18 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 19 | 20 | @end 21 | 22 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMopubBannerClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMMopubBanner : UIView 11 | 12 | @property (nonatomic, weak, nullable) id delegate; 13 | @property (nonatomic, strong) MPAdView *bannerView; 14 | @property (nonatomic, weak) UIViewController *rootVC; 15 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 16 | - (void)loadAd; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMopubInterstitialClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMMopubInterstitial : NSObject 11 | 12 | @property (nonatomic, strong) MPInterstitialAdController *interstitial; 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, weak) id delegate; 15 | @property (nonatomic, assign) BOOL hasShown; 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 17 | - (void)loadAd; 18 | - (BOOL)isReady; 19 | - (void)show:(UIViewController*)vc; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMopubNativeClass.h" 6 | #import "OMNativeCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMMopubNative : NSObject 11 | @property (nonatomic, strong) MPImageDownloadQueue *imageDownloadQueue; 12 | @property (nonatomic, strong) MPNativeAdRequest *adLoader; 13 | @property (nonatomic, strong) MPNativeAd *nativeAd; 14 | @property (nonatomic, weak) UIViewController *rootVC; 15 | @property (nonatomic, weak) id delegate; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 18 | - (void)loadAd; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMMopubNativeAd.h" 5 | 6 | @implementation OMMopubNativeAd 7 | 8 | 9 | - (instancetype)initWithMopubResponse:(MPNativeAd*)nativeResponse { 10 | 11 | self = [super init]; 12 | if (self) { 13 | _adObject =nativeResponse; 14 | _title = nativeResponse.properties[@"title"]; 15 | _body= nativeResponse.properties[@"text"]; 16 | _iconUrl = nativeResponse.properties[@"iconimage"]; 17 | _rating = [nativeResponse.properties[@"starrating"]doubleValue]; 18 | _callToAction = @"INSTALL"; 19 | _nativeViewClass = @"OMMopubNativeView"; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeViewCustomEvent.h" 6 | #import "OMMopubNativeClass.h" 7 | #import "OMMopubNativeAd.h" 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMMopubNativeView : UIView 11 | @property (nonatomic, strong) OMMopubNativeAd *nativeAd; 12 | @property (nonatomic, strong) UIImageView *mediaView; 13 | - (instancetype)initWithFrame:(CGRect)frame; 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /OMMoPubAdapter/OMMopubRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMopubRewardedVideoClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMMopubRewardedVideo : NSObject 10 | @property (nonatomic, copy) NSString *pid; 11 | @property (nonatomic, weak) id delegate; 12 | 13 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 14 | - (void)loadAd; 15 | - (BOOL)isReady; 16 | - (void)show:(UIViewController*)vc; 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OMMoPubAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMPangleAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMPangleAdapter/OMPangleAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMPangleClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const PangleAdapterVersion = @"2.1.2"; 11 | 12 | @interface OMPangleAdapter : NSObject 13 | @property (class, nonatomic) BOOL internalAPI; 14 | 15 | + (NSString*)adapterVerison; 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | + (void)setConsent:(BOOL)consent; 18 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 19 | + (void)setUserAgeRestricted:(BOOL)restricted; 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMPangleAdapter/OMPangleInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMPangleInterstitialClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | 10 | @interface OMPangleInterstitial : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, assign) BOOL adReadyFlag; 14 | @property (nonatomic, strong) BUNativeExpressFullscreenVideoAd *fullscreenVideoAd; 15 | @property (nonatomic, strong) PAGLInterstitialAd *pagInterstitialAd; 16 | @property (nonatomic, weak) id delegate; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMPangleAdapter/OMPangleNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeCustomEvent.h" 6 | #import "OMPangleNativeClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMPangleNative : NSObject 11 | 12 | @property (nonatomic, strong) BUNativeExpressAdManager *adLoader; 13 | @property (nonatomic, weak, readwrite) UIViewController *rootVC; 14 | 15 | // 海外 16 | @property (nonatomic, copy) NSString *pid; 17 | @property (nonatomic, strong) PAGLNativeAd *pagNativeAd; 18 | 19 | @property (nonatomic, weak) id delegate; 20 | @property (nonatomic, assign) BOOL hasShown; 21 | 22 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 23 | - (void)loadAd; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /OMPangleAdapter/OMPangleNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMPangleNativeAd.h" 5 | 6 | @implementation OMPangleNativeAd 7 | 8 | - (instancetype)initWithNativeAd:(PAGLNativeAd*)nativeAd { 9 | if (self = [super init]) { 10 | _adObject = nativeAd; 11 | _title = nativeAd.data.AdTitle; 12 | _body = nativeAd.data.AdDescription; 13 | _iconUrl = nativeAd.data.icon.imageURL; 14 | _nativeViewClass = @"OMPangleNativeView"; 15 | } 16 | return self; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /OMPangleAdapter/OMPangleNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeViewCustomEvent.h" 6 | #import "OMPangleNativeClass.h" 7 | #import "OMPangleNativeAd.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMPangleNativeView : UIView 12 | 13 | @property (nonatomic, strong) OMPangleNativeAd *nativeAd; 14 | @property (nonatomic, strong) PAGLNativeAdRelatedView *nativeView; 15 | @property (nonatomic, strong) PAGMediaView *mediaView; 16 | 17 | - (instancetype)initWithFrame:(CGRect)frame; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMPangleAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 2.0.2 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/OMPubNativeAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMPubNativeClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const PubNativeAdapterVersion = @"2.1.1"; 11 | 12 | @interface OMPubNativeAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | 18 | +(void)setConsent:(BOOL)consent; 19 | +(void)setUSPrivacyLimit:(BOOL)privacyLimit; 20 | +(void)setUserAgeRestricted:(BOOL)restricted; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/OMPubNativeBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMPubNativeClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | #import "OMPubNativeClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMPubNativeBanner : UIView 13 | @property (nonatomic, strong) HyBidAdView *bannerAdView; 14 | @property (nonatomic, copy) NSString *pid; 15 | @property(nonatomic, weak, nullable) id delegate; 16 | @property (nonatomic, weak) id bidDelegate; 17 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 18 | - (void)loadAd; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/OMPubNativeBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBidCustomEvent.h" 7 | 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMPubNativeBid : NSObject 12 | + (void)bidWithNetworkItem:(OMBidNetworkItem*)networkItem adFormat:(NSString*)format adSize:(CGSize)size responseCallback:(void(^)(NSDictionary *bidResponseData))callback; 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/OMPubNativeNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMPubNativeNativeClass.h" 6 | #import "OMNativeCustomEvent.h" 7 | #import "OMPubNativeClass.h" 8 | #import "OMBidCustomEvent.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMPubNativeNative : NSObject 13 | 14 | @property (nonatomic, strong) HyBidNativeAdLoader *nativeAdLoader; 15 | @property (nonatomic, strong) HyBidNativeAd *nativeAd; 16 | @property (nonatomic, weak) id delegate; 17 | @property (nonatomic, strong) NSString *pid; 18 | @property (nonatomic, weak) id bidDelegate; 19 | 20 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 21 | - (void)loadAd; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/OMPubNativeNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMPubNativeNativeAd.h" 5 | 6 | @implementation OMPubNativeNativeAd 7 | 8 | -(instancetype)initWithHybidNativeAd:(HyBidNativeAd *)hyBidNativeAd { 9 | self = [super init]; 10 | if (self) { 11 | _adObject = hyBidNativeAd; 12 | _title = [hyBidNativeAd title]; 13 | _body= [hyBidNativeAd body]; 14 | _iconUrl = [hyBidNativeAd iconUrl]; 15 | _rating = [hyBidNativeAd rating].doubleValue; 16 | _callToAction = [hyBidNativeAd callToActionTitle]; 17 | _nativeViewClass = @"OMPubNativeNativeView"; 18 | } 19 | return self; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/OMPubNativeNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMNativeViewCustomEvent.h" 6 | #import "OMPubNativeNativeClass.h" 7 | #import "OMPubNativeNativeAd.h" 8 | #import "OMPubNativeNative.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMPubNativeNativeView : UIView 13 | 14 | @property (nonatomic, strong) OMPubNativeNativeAd *nativeAd; 15 | @property (nonatomic, strong) HyBidNativeAdRenderer *renderer; // native view 16 | @property (nonatomic, strong) UIImageView *mediaView; 17 | - (instancetype)initWithFrame:(CGRect)frame; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMPubNativeAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMSigMobAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 2.0.2 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMSigMobAdapter/OMSigMobAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMSigMobClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const SigMobAdapterVersion = @"2.0.8"; 11 | 12 | @interface OMSigMobAdapter : NSObject 13 | 14 | + (NSString*)adapterVerison; 15 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 16 | 17 | +(void)setConsent:(BOOL)consent; 18 | +(void)setUserAge:(NSInteger)userAge; 19 | +(void)setUSPrivacyLimit:(BOOL)privacyLimit; 20 | +(void)setUserAgeRestricted:(BOOL)restricted; 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMSigMobAdapter/OMSigMobInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMInterstitialCustomEvent.h" 6 | #import "OMSigMobInterstitialClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMSigMobInterstitial : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, strong) WindIntersititialAd *interstitialAd; 14 | @property (nonatomic, getter=isAdReady, readonly) BOOL ready; 15 | @property (nonatomic, weak) id delegate; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 18 | - (void)loadAd; 19 | - (BOOL)isReady; 20 | - (void)show:(UIViewController*)vc; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMSigMobAdapter/OMSigMobRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMRewardedVideoCustomEvent.h" 6 | #import "OMSigMobRewardedVideoClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMSigMobRewardedVideo : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, strong) WindRewardVideoAd *rewardedVideoAd; 14 | @property (nonatomic, getter=isAdReady, readonly) BOOL ready; 15 | @property (nonatomic, weak) id delegate; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 18 | - (void)loadAd; 19 | - (BOOL)isReady; 20 | - (void)show:(UIViewController*)vc; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMSigMobAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMTapjoyAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMTapjoyAdapter/OMTapjoyAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMTapjoyClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const TapjoyAdapterVersion = @"2.0.5"; 11 | 12 | @interface OMTapjoyAdapter : NSObject 13 | @property (nonatomic, copy, nullable) OMMediationAdapterInitCompletionBlock initBlock; 14 | 15 | + (NSString*)adapterVerison; 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | + (instancetype)sharedInstance; 18 | + (void)setConsent:(BOOL)consent; 19 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 20 | +(void)setUserAgeRestricted:(BOOL)restricted; 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMTapjoyAdapter/OMTapjoyRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMTapjoyClass.h" 6 | #import "OMRewardedVideoCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMTapjoyRewardedVideo : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, strong) TJPlacement *tapjoyPlacement; 13 | @property (nonatomic, weak) id delegate; 14 | 15 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 16 | - (void)loadAd; 17 | - (BOOL)isReady; 18 | - (void)show:(UIViewController*)vc; 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMTapjoyAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMTencentAdClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const GdtAdapterVersion = @"2.0.6"; 11 | 12 | @interface OMTencentAdAdapter : NSObject 13 | + (NSString*)adapterVerison; 14 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMTencentAdBannerClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMTencentAdBanner : UIView 11 | @property (nonatomic, strong) GDTUnifiedBannerView *gdtBannerView; 12 | 13 | @property(nonatomic, weak, nullable) id delegate; 14 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 15 | - (void)loadAd; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdInterstitial.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMTencentAdInterstitialClass.h" 6 | #import "OMInterstitialCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMTencentAdInterstitial : NSObject 11 | 12 | 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, copy) NSString *appID; 15 | @property (nonatomic,strong) GDTUnifiedInterstitialAd *interstitial; 16 | @property (nonatomic, readonly) BOOL isAdValid; 17 | @property (nonatomic, weak) id delegate; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)show:(UIViewController*)vc; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMTencentAdNativeClass.h" 6 | #import "OMNativeCustomEvent.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | @class OMTencentAdNative; 9 | 10 | @interface OMTencentAdNative : NSObject 11 | 12 | @property (nonatomic, strong) GDTUnifiedNativeAd *gdtNativeAd; 13 | @property(nonatomic, strong) GDTUnifiedNativeAdDataObject *currentAdData; 14 | @property (nonatomic, weak) UIViewController *rootVC; 15 | @property (nonatomic, weak) id delegate; 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 17 | - (void)loadAd; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMTencentAdNativeAd.h" 5 | 6 | @implementation OMTencentAdNativeAd 7 | 8 | -(instancetype)initWithGdtDataObject:(GDTUnifiedNativeAdDataObject *)gdtDataObject { 9 | if (self = [super init]) { 10 | _adObject = gdtDataObject; 11 | _title = [gdtDataObject title]; 12 | _body= [gdtDataObject desc]; 13 | _iconUrl = [gdtDataObject iconUrl]; 14 | _rating = [gdtDataObject appRating]; 15 | _callToAction = [gdtDataObject callToAction]; 16 | if (!_callToAction) { 17 | _callToAction = gdtDataObject.isAppAd?@"INSTALL":@"OPEN"; 18 | } 19 | _nativeViewClass = @"OMTencentAdNativeView"; 20 | } 21 | return self; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMTencentAdNativeClass.h" 6 | #import "OMTencentAdNativeAd.h" 7 | #import "OMNativeViewCustomEvent.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMTencentAdNativeView : UIView 12 | 13 | @property (nonatomic, strong) OMTencentAdNativeAd *nativeAd; 14 | @property (nonatomic, strong) GDTUnifiedNativeAdView *gdtNativeView; 15 | @property (nonatomic, strong) UIView *mediaView; 16 | @property (nonatomic, strong) GDTMediaView *gdtMediaView; 17 | @property (nonatomic, strong) UIImageView *mainImageView; 18 | @property (nonatomic, strong) UIImageView *leftImageView; 19 | @property (nonatomic, strong) UIImageView *midImageView; 20 | @property (nonatomic, strong) UIImageView *rightImageView; 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMTencentAdRewardedVideoClass.h" 7 | #import "OMRewardedVideoCustomEvent.h" 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMTencentAdRewardedVideo : NSObject 12 | 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, copy) NSString *appID; 15 | @property (nonatomic, strong) GDTRewardVideoAd *rewardedVideoAd; 16 | @property (nonatomic, getter=isAdValid, readonly) BOOL adValid; 17 | @property (nonatomic, weak) id delegate; 18 | 19 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 20 | - (void)loadAd; 21 | - (BOOL)isReady; 22 | - (void)show:(UIViewController*)vc; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/OMTencentAdSplash.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMSplashCustomEvent.h" 6 | #import "OMTencentAdSplashClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMTencentAdSplash : NSObject 11 | 12 | @property (nonatomic, weak) iddelegate; 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) GDTSplashAd *splashAd; 15 | @property (nonatomic, assign) BOOL isLoadSuccess; 16 | 17 | - (instancetype)initWithParameter:(NSDictionary *)adParameter adSize:(CGSize)size; 18 | - (void)loadAd; 19 | - (BOOL)isReady; 20 | - (void)showWithWindow:(UIWindow *)window customView:(UIView *)customView; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMTencentAdAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMUnityAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMUnityAdapter/OMUnityAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMUnityClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | static NSString * const UnityAdapterVersion = @"2.0.8"; 11 | 12 | @interface OMUnityAdapter : NSObject 13 | @property (nonatomic, copy, nullable) OMMediationAdapterInitCompletionBlock initBlock; 14 | 15 | + (NSString*)adapterVerison; 16 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | + (void)setConsent:(BOOL)consent; 18 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 19 | + (void)setUserAgeRestricted:(BOOL)restricted; 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMUnityAdapter/OMUnityBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBannerCustomEvent.h" 6 | #import "OMUnityBannerClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMUnityBanner : UIView 11 | 12 | @property(nonatomic, weak, nullable) id delegate; 13 | @property (nonatomic, assign) BOOL impr; 14 | @property (nonatomic, strong) UADSBannerView *bannerView; 15 | 16 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 17 | - (void)loadAd; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OMUnityAdapter/OMUnityRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMUnityAdapter.h" 6 | #import "OMUnityRouter.h" 7 | #import "OMRewardedVideoCustomEvent.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | 13 | @interface OMUnityRewardedVideo : NSObject 14 | @property (nonatomic, copy) NSString *pid; 15 | @property (nonatomic, assign) BOOL isUnityAdReady; 16 | @property (nonatomic, weak) id delegate; 17 | 18 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 19 | - (void)loadAd; 20 | - (BOOL)isReady; 21 | - (void)show:(UIViewController*)vc; 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMUnityAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OMVungleAdapter/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.3.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OMVungleAdapter/OMVungleAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediationAdapter.h" 6 | #import "OMVungleClass.h" 7 | 8 | static NSString * const VungleAdapterVersion = @"2.0.8"; 9 | 10 | @interface OMVungleAdapter : NSObject 11 | 12 | + (NSString*)adapterVerison; 13 | 14 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 15 | 16 | + (void)setConsent:(BOOL)consent; 17 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 18 | + (void)setUserAgeRestricted:(BOOL)restricted; 19 | @end 20 | -------------------------------------------------------------------------------- /OMVungleAdapter/OMVungleBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMVungleClass.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMVungleBanner : UIView 12 | 13 | @property (nonatomic, copy) NSString *pid; 14 | @property (nonatomic, strong) VungleBanner *bannerView; 15 | @property (nonatomic, assign) BOOL adShow; 16 | @property (nonatomic, weak, nullable) id delegate; 17 | 18 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 19 | 20 | - (void)loadAd; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OMVungleAdapter/OMVungleBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBidCustomEvent.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMVungleBid : NSObject 10 | 11 | + (NSString*)bidderToken; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | 17 | -------------------------------------------------------------------------------- /OMVungleAdapter/OMVungleBid.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMVungleBid.h" 5 | #import "OMVungleClass.h" 6 | 7 | @implementation OMVungleBid 8 | 9 | + (NSString*)bidderToken { 10 | NSString *token = @""; 11 | Class vungleClass = NSClassFromString(@"_TtC12VungleAdsSDK9VungleAds"); 12 | if (vungleClass && [vungleClass respondsToSelector:@selector(getBiddingToken)]) { 13 | token = [vungleClass getBiddingToken]; 14 | } 15 | return token; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /OMVungleAdapter/OMVungleInterstitial.h: -------------------------------------------------------------------------------- 1 | // 2 | // OMVungleInterstitial.h 3 | // OMVungleAdapter 4 | // 5 | // Created by M on 2023/4/12. 6 | // Copyright © 2023 AdTiming. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "OMInterstitialCustomEvent.h" 11 | #import "OMVungleClass.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface OMVungleInterstitial : NSObject 16 | @property (nonatomic, copy) NSString *pid; 17 | @property (nonatomic, strong) VungleInterstitial *interstitialAd; 18 | @property (nonatomic, weak) id delegate; 19 | @property (nonatomic, assign) BOOL ready; 20 | 21 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 22 | - (void)loadAd; 23 | - (void)loadAdWithBidPayload:(NSString *)bidPayload; 24 | - (BOOL)isReady; 25 | - (void)show:(UIViewController*)vc; 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /OMVungleAdapter/OMVungleRewardedVideo.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMRewardedVideoCustomEvent.h" 6 | #import "OMVungleClass.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMVungleRewardedVideo : NSObject 11 | @property (nonatomic, copy) NSString *pid; 12 | @property (nonatomic, strong) VungleRewarded *videoAd; 13 | @property (nonatomic, weak) id delegate; 14 | @property (nonatomic, assign) BOOL ready; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 17 | - (void)loadAd; 18 | - (BOOL)isReady; 19 | - (void)show:(UIViewController*)vc; 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OMVungleAdapter/include/Empty.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /OpenMediation.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /OpenMediation.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /OpenMediation/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | $(MARKETING_VERSION) 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationAdFormats.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #ifndef OpenMediationAdFormats_h 5 | #define OpenMediationAdFormats_h 6 | 7 | #import 8 | 9 | typedef NS_OPTIONS(NSInteger, OpenMediationAdFormat) { 10 | OpenMediationAdFormatNone = 0, 11 | OpenMediationAdFormatBanner = (1 << 0), 12 | OpenMediationAdFormatNative = (1 << 1), 13 | OpenMediationAdFormatRewardedVideo = (1 << 2), 14 | OpenMediationAdFormatInterstitial = (1 << 3), 15 | OpenMediationAdFormatSplash = (1 << 4), 16 | OpenMediationAdFormatCrossPromotion = (1 << 5), 17 | }; 18 | 19 | #endif /* OpenMediationAdFormats_h */ 20 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationBanner/OMBannerAd.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMAdBase.h" 5 | #import "OMAdBasePrivate.h" 6 | #import "OMBannerCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @protocol bannerDelegate 11 | - (void)bannerDidLoad:(NSString *)instanceID; 12 | - (void)bannerDidFailToLoadWithError:(NSError *)error; 13 | - (void)bannerWillExposure; 14 | - (void)bannerDidClick; 15 | - (void)bannerWillPresentScreen; 16 | - (void)bannerDidDissmissScreen; 17 | - (void)bannerWillLeaveApplication; 18 | @end 19 | 20 | @interface OMBannerAd : OMAdBase 21 | 22 | @property (nonatomic, weak)id delegate; 23 | @property (nonatomic, assign) BOOL impr; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationBid/OMBidCustomEvent.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #ifndef OMBidCustomEvent_h 5 | #define OMBidCustomEvent_h 6 | 7 | #import 8 | #import 9 | #import "OMCustomEventDelegate.h" 10 | 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @protocol OMBidCustomEventDelegate 15 | 16 | @optional 17 | - (void)bidReseponse:(NSObject*)bidAdapter bid:(nullable NSDictionary*)bidInfo error:(nullable NSError*)error; 18 | 19 | @end 20 | 21 | @class OMBidNetworkItem; 22 | 23 | @protocol OMBidCustomEvent 24 | 25 | @optional 26 | 27 | + (void)bidWithNetworkItem:(OMBidNetworkItem*)networkItem adFormat:(NSString*)format adSize:(CGSize)size responseCallback:(void(^)(NSDictionary *bidResponseData))callback; 28 | + (NSString*)bidderToken; 29 | @end 30 | 31 | NS_ASSUME_NONNULL_END 32 | 33 | #endif /* OMBidCustomEvent_h */ 34 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationBid/OMBidNetworkItem.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMBidNetworkItem.h" 5 | 6 | @implementation OMBidNetworkItem 7 | + (OMBidNetworkItem *)networkItemWithName:(NSString*)adnName 8 | appKey:(NSString*)key 9 | placementID:(NSString*)placementID 10 | timeOut:(NSInteger)maxTimeoutMS 11 | test:(BOOL)testMode 12 | extra:(NSDictionary*)extraData { 13 | 14 | OMBidNetworkItem *item = [[OMBidNetworkItem alloc]init]; 15 | item.adnName = adnName; 16 | item.appKey = key; 17 | item.placementID = placementID; 18 | item.maxTimeOutMS = maxTimeoutMS; 19 | item.testMode = testMode; 20 | item.extraData = extraData; 21 | return item; 22 | 23 | } 24 | @end 25 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationCrossPromotion/OMCrossPromotionAd.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMCrossPromotionAdDelegate.h" 6 | #import "OMAdBase.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMCrossPromotionAd : OMAdBase 11 | 12 | @property (nonatomic, weak)id delegate; 13 | 14 | - (NSString*)placementID; 15 | 16 | - (instancetype)initWithPlacementID:(NSString *)placementID; 17 | 18 | - (BOOL)isReady; 19 | 20 | - (void)loadAd; 21 | 22 | - (void)preload; 23 | 24 | - (void)showAdWithScreenPoint:(CGPoint)scaleXY adSize:(CGSize)size angle:(CGFloat) angle scene:(NSString*)sceneName; 25 | 26 | - (void)hideAd; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationCrossPromotion/OMCrossPromotionAdDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | @class OMCrossPromotionAd; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @protocol OMCrossPromotionAdDelegate 11 | 12 | @optional 13 | 14 | 15 | - (void)promotionChangedAvailability:(OMCrossPromotionAd *)Promotion newValue:(BOOL)available; 16 | 17 | - (void)promotionDidLoad:(OMCrossPromotionAd*)Promotion; 18 | 19 | - (void)promotionDidFailToLoad:(OMCrossPromotionAd*)Promotion withError:(NSError*)error; 20 | 21 | - (void)promotionWillAppear:(OMCrossPromotionAd *)Promotion; 22 | 23 | - (void)promotionDidClick:(OMCrossPromotionAd *)Promotion; 24 | 25 | - (void)promotionDidDisappear:(OMCrossPromotionAd *)Promotion; 26 | 27 | @end 28 | 29 | NS_ASSUME_NONNULL_END 30 | 31 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationCrossPromotion/OMCrossPromotionDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMScene.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @protocol OMCrossPromotionDelegate 10 | 11 | @optional 12 | 13 | /// Invoked when promotion ad is available. 14 | - (void)omCrossPromotionChangedAvailability:(BOOL)available; 15 | 16 | /// Sent immediately when promotion ad will appear. 17 | - (void)omCrossPromotionWillAppear:(OMScene*)scene; 18 | 19 | /// Sent after a promotion ad has been clicked. 20 | - (void)omCrossPromotionDidClick:(OMScene*)scene; 21 | 22 | /// Sent after a promotion ad did disappear. 23 | - (void)omCrossPromotionDidDisappear:(OMScene*)scene; 24 | 25 | /// Sent after a promotion ad has failed to play. 26 | - (void)omCrossPromotionDidFailToShow:(OMScene*)scene withError:(NSError *)error; 27 | 28 | @end 29 | 30 | NS_ASSUME_NONNULL_END 31 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationCustomEvent/OMCustomEventDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @protocol OMCustomEventDelegate 9 | - (void)customEvent:(id)adapter didLoadAd:(nullable id)adObject; 10 | - (void)customEvent:(id)adapter didLoadWithAdnName:(NSString*)adnName; 11 | - (void)customEvent:(id)adapter didFailToLoadWithError:(NSError*)error; 12 | - (void)customEventAdDidExpired:(id)adapter; 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationCustomEvent/OMMediationAdapter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | typedef void (^OMMediationAdapterInitCompletionBlock)(NSError *_Nullable error); 10 | 11 | @protocol OMMediationAdapter 12 | 13 | + (NSString*)adapterVerison; 14 | 15 | + (void)initSDKWithConfiguration:(NSDictionary *)configuration 16 | completionHandler:(OMMediationAdapterInitCompletionBlock)completionHandler; 17 | 18 | 19 | @optional 20 | 21 | + (void)setConsent:(BOOL)consent; 22 | 23 | + (void)setUSPrivacyLimit:(BOOL)privacyLimit; 24 | 25 | + (void)setUserAgeRestricted:(BOOL)restricted; 26 | 27 | + (void)setUserAge:(NSInteger)userAge; 28 | 29 | + (void)setUserGender:(NSInteger)userGender; 30 | 31 | + (void)setLogEnable:(BOOL)logEnable; 32 | 33 | @end 34 | 35 | NS_ASSUME_NONNULL_END 36 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationCustomEvent/OMNativeViewCustomEvent.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMMediatedNativeAd.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @protocol OMNativeViewCustomEvent 10 | 11 | - (instancetype)initWithFrame:(CGRect)frame; 12 | - (void)setNativeAd:(id)nativeAd; 13 | - (void)setMediaViewWithFrame:(CGRect)frame; 14 | - (UIView*)mediaView; 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationImpressionData/OMImpressionDataDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMImpressionData.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @protocol OMImpressionDataDelegate 10 | 11 | - (void)omImpressionData:(OMImpressionData * _Nullable)impressionData error:(NSError* _Nullable)error; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationImpressionData/OMImpressionDataRouter.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMImpressionDataDelegate.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMImpressionDataRouter : NSObject 10 | 11 | /// Returns the singleton instance. 12 | + (instancetype)sharedInstance; 13 | 14 | 15 | /// Add delegate 16 | - (void)addDelegate:(id)delegate; 17 | 18 | /// Remove delegate 19 | - (void)removeDelegate:(id)delegate; 20 | 21 | 22 | - (void)postImpressionData:(OMImpressionData*)impressionData; 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationModel/OMModelUmbrella.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #ifndef OMModelUmbrella_h 5 | #define OMModelUmbrella_h 6 | 7 | #import "OMConfig.h" 8 | #import "OMUnit.h" 9 | #import "OMInstance.h" 10 | #import "OMScene.h" 11 | 12 | #endif /* OMModelUmbrella_h */ 13 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationModel/OMScene.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMScene : NSObject 10 | 11 | @property(nonatomic, copy)NSString *unitID; 12 | @property(nonatomic, copy)NSString *sceneID; 13 | @property(nonatomic, copy)NSString *sceneName; 14 | @property(nonatomic, assign)BOOL defaultScene; 15 | @property(nonatomic, assign)NSInteger frequencryCap; 16 | @property(nonatomic, assign)NSInteger frequencryUnit; 17 | 18 | - (instancetype)initWithUnitID:(NSString *)unitID sceneData:(NSDictionary *)sceneData; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationModel/OMScene.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMScene.h" 5 | #import "OpenMediationConstant.h" 6 | #import "OMToolUmbrella.h" 7 | @implementation OMScene 8 | 9 | - (instancetype)initWithUnitID:(NSString *)unitID sceneData:(NSDictionary *)sceneData { 10 | if (self = [super init]) { 11 | _unitID = unitID; 12 | _sceneID = [NSString stringWithFormat:@"%@",sceneData[@"id"]]; 13 | _sceneName = OM_SAFE_STRING(sceneData[@"n"]); 14 | _defaultScene = [sceneData[@"isd"]boolValue]; 15 | _frequencryCap = [[sceneData objectForKey:@"fc"]integerValue]; 16 | _frequencryUnit = [[sceneData objectForKey:@"fu"]integerValue]; 17 | } 18 | return self; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNative/OMNativeAd.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | /// The OMNative represents ad metadata to allow you to construct custom ad views. 9 | @interface OMNativeAd : NSObject 10 | 11 | /// Typed access to the ad title. 12 | @property (nonatomic, copy) NSString *title; 13 | 14 | /// Typed access to the body text, usually a longer description of the ad. 15 | @property (nonatomic, copy) NSString *body; 16 | 17 | /// Typed access to the ad icon. 18 | @property (nonatomic, copy) NSString *iconUrl; 19 | 20 | /// Typed access to the call to action phrase of the ad. 21 | @property (nonatomic, copy) NSString *callToAction; 22 | 23 | /// Typed access to the ad star rating. 24 | @property (nonatomic, assign) double rating; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNative/OMNativeAdView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMNativeAdView : UIView 9 | 10 | - (instancetype)initWithMediatedAdView:(UIView *)mediatedAdView; 11 | 12 | @end 13 | 14 | NS_ASSUME_NONNULL_END 15 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNative/OMNativeManager.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMAdSingletonInterface.h" 6 | #import "OMNativeDelegate.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMNativeManager : OMAdSingletonInterface 11 | 12 | 13 | + (instancetype)sharedInstance; 14 | 15 | /// Add delegate 16 | - (void)addDelegate:(id)delegate; 17 | 18 | /// Remove delegate 19 | - (void)removeDelegate:(id)delegate; 20 | 21 | - (void)loadWithPlacementID:(NSString*)placementID; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNative/OMNativeMediaView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMNativeMediaView : UIView 9 | 10 | - (instancetype)initWithFrame:(CGRect)frame; 11 | 12 | @end 13 | 14 | NS_ASSUME_NONNULL_END 15 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNative/OMNativeMediaView.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMNativeMediaView.h" 5 | 6 | 7 | @implementation OMNativeMediaView 8 | 9 | - (instancetype)initWithFrame:(CGRect)frame { 10 | if (self = [super initWithFrame:frame]) { 11 | 12 | } 13 | return self; 14 | } 15 | 16 | 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNative/OMNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | @class OMNativeAd; 6 | #import "OMNativeAdView.h" 7 | #import "OMNativeMediaView.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | /// A customized UIView to represent a ad (native ad). 13 | @interface OMNativeView : UIView 14 | 15 | @property (nonatomic, strong) OMNativeAd *nativeAd; 16 | @property (nonatomic, strong) OMNativeMediaView *mediaView; 17 | @property (nonatomic, strong) OMNativeAdView *nativeAdView; 18 | 19 | /// This is a method to initialize an OMNativeView. 20 | /// Parameter frame: the OMNativeView frame. 21 | - (instancetype)initWithFrame:(CGRect)frame; 22 | 23 | - (void)setClickableViews:(NSArray *)clickableViews; //for Facebook TencentAd 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMBaseRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | typedef NS_ENUM(NSInteger, OMRequestType) { 7 | OMRequestTypeNormal, 8 | OMRequestTypeJsonGzipToJson, 9 | }; 10 | 11 | typedef void(^requestCompletionHandler)(NSObject *_Nullable object, NSError *_Nullable error); 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface OMBaseRequest : NSObject 16 | 17 | + (void)getWithUrl:(NSString *)url type:(OMRequestType)requestType body:(NSData*)body completionHandler:(requestCompletionHandler)completionHandler; 18 | + (void)postWithUrl:(NSString *)url type:(OMRequestType)requestType body:(NSData*)body completionHandler:(requestCompletionHandler)completionHandler; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMCDRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | typedef void(^cdCompletionHandler)(NSDictionary *_Nullable object, NSError *_Nullable error); 9 | 10 | @interface OMCDRequest : NSObject 11 | 12 | + (void)postWithType:(NSInteger)type data:(NSDictionary*)data completionHandler:(cdCompletionHandler)completionHandler; 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMErrorRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMRequest.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMErrorRequest : NSObject 10 | 11 | + (void)postWithErrorMsg:(NSDictionary *)errorInfo completionHandler:(postCompletionHandler)completionHandler; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMEventRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMRequest.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMEventRequest : NSObject 10 | + (void)postEvents:(NSArray*)events url:(NSString*)uploadUrl completionHandler:(postCompletionHandler)completionHandler; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMIAPRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | 7 | typedef void(^iapCompletionHandler)(NSDictionary *_Nullable object, NSError *_Nullable error); 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMIAPRequest : NSObject 12 | 13 | + (void)iapWithPurchase:(CGFloat)purchase total:(CGFloat)total currency:(NSString *)currency completionHandler:(iapCompletionHandler)completionHandler; 14 | 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMIcRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OpenMediationConstant.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMIcRequest : NSObject 10 | 11 | + (void)postWithPid:(NSString *)pid 12 | instanceID:(NSString *)instanceID 13 | adnID:(OMAdNetwork)adnID 14 | sceneID:(NSString *)sceneID 15 | extraParams:(NSString*)extraParams; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMInitRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | typedef void(^configureCompletionHandler)(NSError *_Nullable error); 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMInitRequest : NSObject 11 | 12 | +(void)configureWithAppKey:(NSString *)appKey baseHost:(NSString*)host completionHandler:(configureCompletionHandler)completionHandler; 13 | 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMNetworkUmbrella.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #ifndef OMNetworkUmbrella_h 5 | #define OMNetworkUmbrella_h 6 | 7 | #import "OMInitRequest.h" 8 | #import "OMRequest.h" 9 | #import "OMBaseRequest.h" 10 | #import "OMLrRequest.h" 11 | #import "OMIcRequest.h" 12 | #import "OMWaterfallRequest.h" 13 | #import "OMErrorRequest.h" 14 | #import "OMIAPRequest.h" 15 | #import "OMEventRequest.h" 16 | #import "OMCDRequest.h" 17 | 18 | #endif /* OMNetworkUmbrella_h */ 19 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMBaseRequest.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | typedef void(^postCompletionHandler)(NSObject *_Nullable object, NSError *_Nullable error); 10 | 11 | @interface OMRequest : NSObject 12 | + (NSDictionary*)iosInfo; 13 | + (NSDictionary*)commonDeviceInfo; 14 | + (void)postWithUrl:(NSString*)url data:(NSData*)data completionHandler:(requestCompletionHandler)completionHandler; 15 | @end 16 | 17 | NS_ASSUME_NONNULL_END 18 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationNetwork/OMWaterfallRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | typedef void(^wfCompletionHandler)(NSDictionary *_Nullable ins, NSError *_Nullable error); 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMWaterfallRequest : NSObject 11 | 12 | + (void)requestDataWithPid:(NSString *)pid 13 | size:(CGSize)size 14 | actionType:(NSInteger)actionType 15 | reqId:(NSString*)reqId 16 | bidResponses:(NSArray*)bidResponses 17 | tokens:(NSArray*)tokens 18 | instanceState:(NSArray*)instanceState 19 | completionHandler:(wfCompletionHandler)completionHandler; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionBanner.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMBannerCustomEvent.h" 7 | #import "OMCrossPromotionCampaign.h" 8 | #import "OMCrossPromotionJSBridge.h" 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMCrossPromotionBanner : UIView 13 | 14 | @property (nonatomic, assign) CGSize bannerSize; 15 | @property(nonatomic, weak, nullable) id delegate; 16 | - (instancetype)initWithFrame:(CGRect)frame adParameter:(NSDictionary *)adParameter rootViewController:(UIViewController *)rootViewController; 17 | 18 | - (void)loadAdWithBidPayload:(NSString*)bidPayload; 19 | 20 | @end 21 | 22 | NS_ASSUME_NONNULL_END 23 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionBid.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMCrossPromotionBid : NSObject 9 | 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionCP.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMCrossPromotionCustomEvent.h" 6 | #import "OMCrossPromotionCampaign.h" 7 | #import "OMCrossPromotionJSBridge.h" 8 | 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface OMCrossPromotionCP : UIView 13 | 14 | @property(nonatomic, weak, nullable) id delegate; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter; 17 | - (void)loadAd; 18 | - (BOOL)isReady; 19 | - (void)showAdWithScreenPoint:(CGPoint)scaleXY adSize:(CGSize)size angle:(CGFloat) angle scene:(NSString*)sceneName; 20 | - (void)hideAd; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionCacheFile.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMToolUmbrella.h" 6 | #import "OMCrossPromotionHTTPCacheControl.h" 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMCrossPromotionCacheFile : NSObject 10 | + (BOOL)cacheFresh:(NSString*)url; 11 | + (NSDictionary*)cacheHeader:(NSString*)url; 12 | + (NSString*)localHtmlStr:(NSString*)url; 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionClRequest.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | 7 | typedef void(^clCompletionHandler)(NSDictionary *_Nullable campaigns, NSError *_Nullable error); 8 | 9 | NS_ASSUME_NONNULL_BEGIN 10 | 11 | @interface OMCrossPromotionClRequest : NSObject 12 | 13 | + (void)requestCampaignWithPid:(NSString *)pid size:(CGSize)size reqId:(NSString*)reqId actionType:(NSInteger)actionType payload:(nullable NSString*)payload completionHandler:(clCompletionHandler)completionHandler; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionExposureMonitor.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMCrossPromotionExposureMonitor : NSObject 10 | @property (nonatomic, strong) NSMapTable *monitoredViewMap;//key observer ,value view 11 | + (instancetype)sharedInstance; 12 | - (void)addObserver:(NSObject*)observer forView:(UIView*)view; 13 | - (void)removeObserver:(NSObject*)observer; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionNative.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMCrossPromotionNativeAd.h" 6 | #import "OMNativeCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMCrossPromotionNative : NSObject 11 | 12 | @property (nonatomic, copy) NSString *pid; 13 | @property (nonatomic, weak) UIViewController *rootVC; 14 | @property (nonatomic, weak) id delegate; 15 | 16 | - (instancetype)initWithParameter:(NSDictionary*)adParameter rootVC:(UIViewController*)rootViewController; 17 | - (void)loadAdWithBidPayload:(NSString*)bidPayload; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionNativeAd.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMCrossPromotionNativeAd.h" 5 | #import "OMToolUmbrella.h" 6 | 7 | @implementation OMCrossPromotionNativeAd 8 | 9 | - (instancetype)initWithCampaign:(OMCrossPromotionCampaign *)campaign { 10 | if (self = [super init]) { 11 | _adObject = campaign; 12 | _title = OM_SAFE_STRING(campaign.model.app[@"title"]); 13 | _body = campaign.model.descn; 14 | _iconUrl = OM_SAFE_STRING(campaign.model.app[@"icon"]); 15 | _callToAction = @"INSTALL"; 16 | _rating = [campaign.model.app[@"rating"] floatValue]; 17 | _nativeViewClass = @"OMCrossPromotionNativeView"; 18 | } 19 | return self; 20 | } 21 | 22 | - (void)showAd:(UIViewController*)rootViewController { 23 | [_adObject clickAndShowAd:rootViewController sceneID:@""]; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionNativeMediaView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMCrossPromotionNativeAd.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMCrossPromotionNativeMediaView : UIView 10 | @property (nonatomic, strong) OMCrossPromotionNativeAd *nativeAd; 11 | @property (nonatomic, strong) UIImageView *imgView; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionNativeView.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMCrossPromotionNative.h" 7 | #import "OMCrossPromotionNativeView.h" 8 | #import "OMCrossPromotionNativeMediaView.h" 9 | #import "OMCrossPromotionNativeAd.h" 10 | #import "OMNativeViewCustomEvent.h" 11 | #import "OMCrossPromotionCampaignManager.h" 12 | 13 | NS_ASSUME_NONNULL_BEGIN 14 | 15 | @interface OMCrossPromotionNativeView : UIView 16 | 17 | @property (nonatomic, strong) OMCrossPromotionNativeAd *nativeAd; 18 | @property (nonatomic, strong) OMCrossPromotionNativeMediaView *mediaView; 19 | @property (nonatomic, strong) UIImageView *adChoicesView; 20 | @property (nonatomic, strong) OMCrossPromotionCampaign *campaign; 21 | @property (nonatomic, assign) BOOL visible; 22 | 23 | @end 24 | 25 | NS_ASSUME_NONNULL_END 26 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMCrossPromotionWebController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | 7 | @protocol OMWebViewControllerDelegate 8 | 9 | @optional 10 | 11 | - (void)webViewControllerDismiss; 12 | @end 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface OMCrossPromotionWebController : UIViewController 17 | 18 | @property (nonatomic, strong) NSString *url; 19 | @property (nonatomic, strong) WKWebView *webView; 20 | @property (nonatomic, strong) UIProgressView *progressView; 21 | @property (nonatomic, strong) UIButton *closeItem; 22 | @property (nonatomic, assign) BOOL appSettingStatusBarHidden; 23 | @property (nonatomic, weak) id delegate; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMPromotionConfig.h: -------------------------------------------------------------------------------- 1 | // 2 | // OMPromotionConfig.h 3 | // OMPromotionAdapter 4 | // 5 | // Created by ylm on 2020/11/11. 6 | // Copyright © 2020 AdTiming. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface OMPromotionConfig : NSObject 14 | 15 | @property (nonatomic, strong) NSMutableArray *placementList; 16 | @property (nonatomic, strong) NSMutableDictionary *placementMap; 17 | 18 | + (instancetype) sharedInstance; 19 | 20 | - (void)loadConfig:(NSDictionary*)configData; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMPromotionConfig.m: -------------------------------------------------------------------------------- 1 | // 2 | // OMPromotionConfig.m 3 | // OMPromotionAdapter 4 | // 5 | // Created by ylm on 2020/11/11. 6 | // Copyright © 2020 AdTiming. All rights reserved. 7 | // 8 | 9 | #import "OMPromotionConfig.h" 10 | 11 | static OMPromotionConfig * _instance = nil; 12 | 13 | @implementation OMPromotionConfig 14 | 15 | + (instancetype) sharedInstance{ 16 | static dispatch_once_t onceToken; 17 | dispatch_once(&onceToken, ^{ 18 | _instance = [[self alloc] init]; 19 | }); 20 | return _instance; 21 | } 22 | 23 | - (instancetype)init{ 24 | if (self = [super init]) { 25 | _placementList = [NSMutableArray array]; 26 | _placementMap = [NSMutableDictionary dictionary]; 27 | } 28 | return self; 29 | } 30 | 31 | - (void)loadConfig:(NSDictionary*)configData { 32 | 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMPromotionUnit.h: -------------------------------------------------------------------------------- 1 | // 2 | // OMPromotionUnit.h 3 | // OpenMediation 4 | // 5 | // Created by ylm on 2020/11/11. 6 | // Copyright © 2020 AdTiming. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "OpenMediationAdFormats.h" 11 | 12 | NS_ASSUME_NONNULL_BEGIN 13 | 14 | @interface OMPromotionUnit : NSObject 15 | 16 | @property (nonatomic, copy) NSString *unitID; 17 | @property (nonatomic, assign) OpenMediationAdFormat adFormat; 18 | 19 | - (instancetype)initWithUnitData:(NSDictionary*)unitData; 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationPromotion/OMPromotionUnit.m: -------------------------------------------------------------------------------- 1 | // 2 | // OMPromotionUnit.m 3 | // OpenMediation 4 | // 5 | // Created by ylm on 2020/11/11. 6 | // Copyright © 2020 AdTiming. All rights reserved. 7 | // 8 | 9 | #import "OMPromotionUnit.h" 10 | 11 | @implementation OMPromotionUnit 12 | 13 | - (instancetype)initWithUnitData:(NSDictionary*)unitData { 14 | if (self = [super init]) { 15 | _unitID = [NSString stringWithFormat:@"%@",[unitData objectForKey:@"id"]]; 16 | _adFormat = (1<<[[unitData objectForKey:@"t"]integerValue]); 17 | } 18 | return self; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSegments/OMAdBase.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMAdBase : NSObject 10 | 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSegments/OMAdSingletonInterface.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMAdSingletonInterface : NSObject 9 | 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSegments/OMHybridLoad.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMLoad.h" 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMHybridLoad : OMLoad 9 | @property (nonatomic, assign) NSInteger batchSize; 10 | @property (nonatomic, assign) BOOL fanoutType; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSegments/OMInstanceContainer.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | typedef id _Nullable (^mInstanceInitBlock)(void); 11 | 12 | @interface OMInstanceContainer : NSObject 13 | @property (nonatomic, strong) NSMutableDictionary *instanceMap; 14 | @property (nonatomic, strong) NSMutableDictionary *placementCacheMap; 15 | + (instancetype)sharedInstance; 16 | - (id)getInstance:(NSString*)instanceID block:(mInstanceInitBlock)mInstanceInitBlock; 17 | - (void)removeImpressionInstance:(NSString*)instanceID; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSegments/OMSmartLoad.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMLoad.h" 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMSmartLoad : OMLoad 9 | 10 | @property (nonatomic, assign) NSInteger unitCacheCount; 11 | @property (nonatomic, assign) NSInteger configCacheCount; 12 | @property (nonatomic, strong) NSMutableArray *fillInstances; 13 | @property (nonatomic, assign) NSInteger maxParallelLoadCount; 14 | @property (nonatomic, assign) NSInteger replenishCacheNofillCount; 15 | @property (nonatomic, strong, nullable) NSTimer *checkCacheTimer; 16 | 17 | @property (nonatomic, assign) NSInteger loadingCount; 18 | @property (nonatomic, assign) NSInteger cacheCount; 19 | 20 | 21 | @end 22 | 23 | NS_ASSUME_NONNULL_END 24 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSplash/OMSplash.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import "OMSplashDelegate.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface OMSplash : NSObject 11 | 12 | @property (nonatomic, weak)id delegate; 13 | 14 | - (instancetype)initWithPlacementId:(NSString *)placementId adSize:(CGSize)size; 15 | 16 | - (void)loadAd; 17 | 18 | - (BOOL)isReady; 19 | 20 | - (void)showWithWindow:(UIWindow *)window customView:(nullable UIView *)customView; 21 | 22 | @end 23 | 24 | NS_ASSUME_NONNULL_END 25 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSplash/OMSplashAd.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMAdBase.h" 5 | #import "OMAdBasePrivate.h" 6 | #import "OMSplashCustomEvent.h" 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @protocol splashDelegate 11 | 12 | - (void)splashDidLoad:(NSString *)instanceId; 13 | - (void)splashDidFailToLoadWithError:(NSError *)error; 14 | - (void)splashDidShow; 15 | - (void)splashDidClick; 16 | - (void)splashDidClose; 17 | - (void)splashDidFailToShowWithError:(NSError*)error; 18 | @end 19 | 20 | @interface OMSplashAd : OMAdBase 21 | @property (nonatomic, weak)iddelegate; 22 | - (void)showWithWindow:(UIWindow *)window customView:(UIView *)customView; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationSplash/OMSplashDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | @class OMSplash; 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @protocol OMSplashDelegate 11 | 12 | @optional 13 | 14 | - (void)omSplashDidLoad:(OMSplash *)splash; 15 | 16 | - (void)omSplashFailToLoad:(OMSplash *)splash withError:(NSError *)error; 17 | 18 | - (void)omSplashDidShow:(OMSplash *)splash; 19 | 20 | - (void)omSplashDidClick:(OMSplash *)splash; 21 | 22 | - (void)omSplashDidClose:(OMSplash *)splash; 23 | 24 | - (void)omSplashDidFailToShow:(OMSplash *)splash withError:(NSError *)error; 25 | 26 | @end 27 | 28 | NS_ASSUME_NONNULL_END 29 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSData+OMGzip.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | 5 | #import 6 | #import 7 | 8 | NS_ASSUME_NONNULL_BEGIN 9 | 10 | @interface NSData (OMGzip) 11 | 12 | - (NSData *)omGzipData; 13 | - (NSData *)omUnzipData; 14 | - (BOOL)omIsGzippedData; 15 | - (NSData *)omZlibInflate; 16 | - (NSData *)omZlibDeflate; 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSDate+OMExtension.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface NSDate (OMExtension) 9 | + (NSString*)omBeijingDate; 10 | + (NSString*)omBeijingTime; 11 | + (NSString*)omGMTTimeStr; 12 | @end 13 | 14 | NS_ASSUME_NONNULL_END 15 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSError+OMExtension.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | FOUNDATION_EXPORT NSString *const OMRequestErrorDomain; 9 | 10 | typedef NS_ENUM(NSInteger, OMRequestError) { 11 | OMRequestErrorNetworkNotReachable = 1001, 12 | OMRequestErrorUseAgent, 13 | OMRequestErrorInvalidRequest, 14 | OMRequestErrorInvalidResponse, 15 | OMRequestErrorNetworkError, 16 | OMRequestErrorEmptyResponseData, 17 | OMRequestErrorInvalidResponseData, 18 | }; 19 | 20 | 21 | FOUNDATION_EXPORT NSString *const OMCampaignErrorDomain; 22 | 23 | 24 | typedef NS_ENUM(NSInteger, OMCampaignError) { 25 | OMCampaignErrorNoFill = 2001, 26 | }; 27 | 28 | 29 | @interface NSError (OMExtension) 30 | 31 | + (NSError *)omNetworkError:(OMRequestError)code; 32 | 33 | @end 34 | 35 | NS_ASSUME_NONNULL_END 36 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSNumber+OMExtension.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface NSNumber (OMExtension) 9 | + (NSNumber*)omStr2Number:(NSString*)str; 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSNumber+OMExtension.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "NSNumber+OMExtension.h" 5 | #import "OMMacros.h" 6 | 7 | 8 | @implementation NSNumber (OMExtension) 9 | 10 | + (NSNumber*)omStr2Number:(NSString*)str { 11 | NSInteger number = (OM_STR_EMPTY(str))?0:[str integerValue]; 12 | return [NSNumber numberWithInteger:number]; 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSString+OMEncrypt.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface NSString (OMEncrypt) 9 | 10 | - (NSString *)omMd5; 11 | - (NSString*)omSha1; 12 | - (NSString *)omURLEncode; 13 | - (NSString *)omURLDecode; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/NSString+OMExtension.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface NSString (OMExtension) 9 | + (NSString *)omComponentsJoinedChar:(NSArray *)array; 10 | + (NSString*)omDataPath; 11 | + (NSString*)omCachePath; 12 | + (NSString*)omUrlCachePath:(NSString*)urlStr; 13 | + (NSString*)omUrlCacheInfoPath:(NSString*)urlStr; 14 | + (BOOL)omUrlCacheReady:(NSString*)urlStr; 15 | + (NSString*)omEscapeStr:(NSString*)str; 16 | + (NSString*)omObj2JsonStr:(NSObject*)object; 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMBacktrace.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMBacktrace : NSObject 9 | + (NSArray *)allThreadBacktrace; 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMCrashHandle.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMCrashHandle : NSObject 9 | @property (nonatomic, assign) BOOL installed; 10 | @property(strong, nonatomic) NSMutableArray *crashLogs; 11 | 12 | + (instancetype)sharedInstance; 13 | - (void)install; 14 | - (void)sendCrashLog; 15 | - (void)saveException:(NSException*)exception; 16 | - (void)saveSignal:(int)sigNum signalInfo:(siginfo_t*)signalInfo; 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMDependTask.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | typedef void (^observeTaskBlock)(void); 9 | 10 | typedef void (^realTaskBlock)(void); 11 | 12 | @interface OMDependTask : NSObject 13 | @property (nonatomic, strong) NSMutableDictionary *dependTasks; 14 | 15 | + (instancetype)sharedInstance; 16 | //- (void)runTask:(taskBlock)task dependOjbect:(id)object keyPath:(NSString*)keyPath value:(NSString*)value; 17 | - (void)addTaskDependOjbect:(id)object keyPath:(NSString*)keyPath observeValues:(NSArray*)observeValues observeTask:(observeTaskBlock)observeTask realTaskCheckValues:(NSArray*)checkValues realTask:(realTaskBlock)realTask; 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMExposureMonitor.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMExposureMonitor : NSObject 10 | @property (nonatomic, strong) NSMapTable *monitoredViewMap;//key observer ,value view 11 | + (instancetype)sharedInstance; 12 | - (void)addObserver:(NSObject*)observer forView:(UIView*)view; 13 | - (void)removeObserver:(NSObject*)observer; 14 | @end 15 | 16 | NS_ASSUME_NONNULL_END 17 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMKeychain.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | 7 | #define KEY_UUID @"com.om.uuid" 8 | #define KEY_FIRSTLAUNCHTIME @"com.om.firstlaunchtime" 9 | #define KEY_USERKEYCHAIN @"com.om.user" 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface OMKeychain : NSObject 14 | 15 | + (void)save:(NSString *)service data:(id)data; 16 | + (id)load:(NSString *)service; 17 | + (void)delete:(NSString *)service; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMNetMonitor.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "OMReachability.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface OMNetMonitor : NSObject 10 | 11 | @property (nonatomic, strong) OMReachability *reachability; 12 | @property (nonatomic , assign) OMNetworkStatus netStatus; 13 | 14 | + (instancetype)sharedInstance; 15 | - (void)startMonitor; 16 | - (NSString *)getNetWorkType; 17 | - (NSNumber*)omNetworkType; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMReachability+OMExtentsion.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "OMReachability.h" 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface OMReachability (OMExtentsion) 9 | 10 | + (BOOL)omIsHttpAgentOpen; 11 | + (BOOL)omIsVPNConnected; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMToolUmbrella.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #ifndef OMToolUmbrella_h 5 | #define OMToolUmbrella_h 6 | 7 | #import "OMLogMoudle.h" 8 | #import "NSDate+OMExtension.h" 9 | #import "UIDevice+OMExtension.h" 10 | #import "OMMacros.h" 11 | #import "OMKeychain.h" 12 | #import "OMNetMonitor.h" 13 | #import "OMReachability.h" 14 | #import "NSError+OMExtension.h" 15 | #import "NSData+OMGzip.h" 16 | #import "OMReachability+OMExtentsion.h" 17 | #import "NSString+OMEncrypt.h" 18 | #import "NSString+OMExtension.h" 19 | #import "OMWeakObject.h" 20 | #import "OMError.h" 21 | #import "OMSDKError.h" 22 | #import "NSNumber+OMExtension.h" 23 | #import "UIView+OMExtentsion.h" 24 | #import "UIViewController+OMExtension.h" 25 | #import "OMExposureMonitor.h" 26 | #import "OMCrashHandle.h" 27 | #import "OMDependTask.h" 28 | #endif /* OMToolUmbrella_h */ 29 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/OMWeakObject.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | 9 | @interface OMWeakObject : NSProxy 10 | 11 | @property (nullable, nonatomic, weak, readonly) id target; 12 | 13 | - (instancetype)initWithTarget:(id)target; 14 | 15 | + (instancetype)proxyWithTarget:(id)target; 16 | 17 | @end 18 | 19 | NS_ASSUME_NONNULL_END 20 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/UIView+OMExtentsion.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface UIView (OMExtentsion) 9 | - (void)addConstraintEqualSuperView; 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationTool/UIViewController+OMExtension.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface UIViewController (OMExtension) 9 | + (UIViewController *)omRootViewController; 10 | + (UIWindow *)omCurrentWindow; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /OpenMediation/OpenMediationUmbrella.h: -------------------------------------------------------------------------------- 1 | #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_9_0 2 | #error The OpenMediation SDK requires a deployment target of iOS 9.0 or later. 3 | #endif 4 | 5 | // Header files. 6 | #import 7 | 8 | #import 9 | 10 | #import 11 | 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | 19 | #import 20 | 21 | #import 22 | #import 23 | 24 | #import 25 | #import 26 | -------------------------------------------------------------------------------- /OpenMediation/include/OMAdBase.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationSegments/OMAdBase.h -------------------------------------------------------------------------------- /OpenMediation/include/OMAdSingletonInterface.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationSegments/OMAdSingletonInterface.h -------------------------------------------------------------------------------- /OpenMediation/include/OMBanner.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationBanner/OMBanner.h -------------------------------------------------------------------------------- /OpenMediation/include/OMBannerDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationBanner/OMBannerDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OMCrossPromotion.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationCrossPromotion/OMCrossPromotion.h -------------------------------------------------------------------------------- /OpenMediation/include/OMCrossPromotionDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationCrossPromotion/OMCrossPromotionDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OMImpressionData.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationImpressionData/OMImpressionData.h -------------------------------------------------------------------------------- /OpenMediation/include/OMImpressionDataDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationImpressionData/OMImpressionDataDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OMInterstitial.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationInterstitial/OMInterstitial.h -------------------------------------------------------------------------------- /OpenMediation/include/OMInterstitialDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationInterstitial/OMInterstitialDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OMNative.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationNative/OMNative.h -------------------------------------------------------------------------------- /OpenMediation/include/OMNativeAd.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationNative/OMNativeAd.h -------------------------------------------------------------------------------- /OpenMediation/include/OMNativeDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationNative/OMNativeDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OMNativeMediaView.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationNative/OMNativeMediaView.h -------------------------------------------------------------------------------- /OpenMediation/include/OMNativeView.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationNative/OMNativeView.h -------------------------------------------------------------------------------- /OpenMediation/include/OMRewardedVideo.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationRewardedVideo/OMRewardedVideo.h -------------------------------------------------------------------------------- /OpenMediation/include/OMRewardedVideoDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationRewardedVideo/OMRewardedVideoDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OMScene.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationModel/OMScene.h -------------------------------------------------------------------------------- /OpenMediation/include/OMSplash.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationSplash/OMSplash.h -------------------------------------------------------------------------------- /OpenMediation/include/OMSplashDelegate.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationSplash/OMSplashDelegate.h -------------------------------------------------------------------------------- /OpenMediation/include/OpenMediation.h: -------------------------------------------------------------------------------- 1 | 2 | #import "OpenMediation_Ref.h" 3 | #import "OMBanner.h" 4 | #import "OMInterstitial.h" 5 | #import "OMNative.h" 6 | #import "OMNativeAd.h" 7 | #import "OMNativeView.h" 8 | #import "OMNativeMediaView.h" 9 | #import "OMRewardedVideo.h" 10 | #import "OMSplash.h" 11 | #import "OMSplashDelegate.h" 12 | #import "OMCrossPromotion.h" 13 | #import "OMCrossPromotionDelegate.h" 14 | -------------------------------------------------------------------------------- /OpenMediation/include/OpenMediationAdFormats.h: -------------------------------------------------------------------------------- 1 | ../OpenMediationAdFormats.h -------------------------------------------------------------------------------- /OpenMediation/include/OpenMediation_Ref.h: -------------------------------------------------------------------------------- 1 | ../OpenMediation.h -------------------------------------------------------------------------------- /OpenMediationDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | @interface AppDelegate : UIResponder 7 | 8 | @property (strong, nonatomic) UIWindow *window; 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-1024.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x-1.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x-1.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x-1.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/noSelectIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "noSelectIcon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "noSelectIcon@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/noSelectIcon.imageset/noSelectIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/noSelectIcon.imageset/noSelectIcon@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/noSelectIcon.imageset/noSelectIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/noSelectIcon.imageset/noSelectIcon@3x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/selectIcon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "selectIcon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "selectIcon@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/selectIcon.imageset/selectIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/selectIcon.imageset/selectIcon@2x.png -------------------------------------------------------------------------------- /OpenMediationDemo/Assets.xcassets/selectIcon.imageset/selectIcon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/Assets.xcassets/selectIcon.imageset/selectIcon@3x.png -------------------------------------------------------------------------------- /OpenMediationDemo/BannerViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "BaseViewController.h" 5 | @import OpenMediation; 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface BannerViewController : BaseViewController 10 | @property (nonatomic,strong) OMBanner *banner; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /OpenMediationDemo/CrossPromotionViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "BaseViewController.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface CrossPromotionViewController : BaseViewController 10 | 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /OpenMediationDemo/CustomXibs/amr-adchoices.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/CustomXibs/amr-adchoices.png -------------------------------------------------------------------------------- /OpenMediationDemo/CustomXibs/native_int_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/CustomXibs/native_int_close.png -------------------------------------------------------------------------------- /OpenMediationDemo/CustomXibs/random-grey-variations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationDemo/CustomXibs/random-grey-variations.png -------------------------------------------------------------------------------- /OpenMediationDemo/InitSettingViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface InitSettingViewController : UIViewController 9 | 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediationDemo/InterstitialViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "BaseViewController.h" 5 | @import OpenMediation; 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface InterstitialViewController : BaseViewController 9 | 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediationDemo/MainViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface MainViewController : UIViewController 9 | 10 | 11 | 12 | @end 13 | 14 | NS_ASSUME_NONNULL_END 15 | -------------------------------------------------------------------------------- /OpenMediationDemo/NativeViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "BaseViewController.h" 5 | @import OpenMediation; 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface NativeViewController : BaseViewController 9 | 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediationDemo/RewardedVideoViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "BaseViewController.h" 5 | @import OpenMediation; 6 | NS_ASSUME_NONNULL_BEGIN 7 | 8 | @interface RewardedVideoViewController : BaseViewController 9 | 10 | @end 11 | 12 | NS_ASSUME_NONNULL_END 13 | -------------------------------------------------------------------------------- /OpenMediationDemo/SplashViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import "BaseViewController.h" 5 | @import OpenMediation; 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface SplashViewController : BaseViewController 10 | 11 | @property (nonatomic, strong) OMSplash *splash; 12 | 13 | @end 14 | 15 | NS_ASSUME_NONNULL_END 16 | -------------------------------------------------------------------------------- /OpenMediationDemo/WelcomeViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import 6 | #import 7 | 8 | @interface FBAdSettings : NSObject 9 | 10 | + (void)setAdvertiserTrackingEnabled:(BOOL)advertiserTrackingEnabled; 11 | 12 | @end 13 | 14 | NS_ASSUME_NONNULL_BEGIN 15 | 16 | @interface WelcomeViewController : UIViewController 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | -------------------------------------------------------------------------------- /OpenMediationDemo/main.m: -------------------------------------------------------------------------------- 1 | // Copyright 2020 ADTIMING TECHNOLOGY COMPANY LIMITED 2 | // Licensed under the GNU Lesser General Public License Version 3 3 | 4 | #import 5 | #import "AppDelegate.h" 6 | 7 | int main(int argc, char * argv[]) { 8 | NSString * appDelegateClassName; 9 | @autoreleasepool { 10 | // Setup code that might create autoreleased objects goes here. 11 | appDelegateClassName = NSStringFromClass([AppDelegate class]); 12 | } 13 | return UIApplicationMain(argc, argv, nil, appDelegateClassName); 14 | } 15 | -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-1024.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x-1.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x-1.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x-1.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenMediationProject/OpenMediation-iOS/8ece44adebf0c4b8673366b917bf3faa70bbde03/OpenMediationSwiftDemo/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /OpenMediationSwiftDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '10.0' 2 | 3 | source 'https://github.com/CocoaPods/Specs.git' 4 | 5 | target 'OpenMediationDemo' do 6 | use_frameworks! 7 | 8 | pod 'AdTimingBidSDK', '5.2.3' 9 | pod 'Google-Mobile-Ads-SDK', '9.13.0' 10 | pod 'FBAudienceNetwork', '6.12.0' 11 | pod 'UnityAds', '4.4.1' 12 | pod 'VungleSDK-iOS', '6.12.1' 13 | pod 'AdColony', '4.9.0' 14 | pod 'AppLovinSDK', '11.5.5' 15 | pod 'TapjoySDK', '12.11.0' 16 | pod 'ChartboostSDK', '9.1.0' 17 | # pod 'Ads-CN', '4.8.0.9' 18 | # pod 'Ads-Global', '4.7.0.8' 19 | pod 'MintegralAdSDK/All', '7.2.6' 20 | pod 'GDTMobSDK', '4.13.81' 21 | pod 'IronSourceSDK','7.2.5.1' 22 | # pod 'ChartboostHelium','3.1.0' 23 | pod 'Fyber_Marketplace_SDK','7.5.4' 24 | pod 'SigmobAd-iOS', '4.2.1' 25 | pod 'KSAdSDK', '3.3.12' 26 | pod 'HyBid', '2.16.0' 27 | pod 'AMRSDK', '1.5.22' 28 | pod 'InMobiSDK','10.1.0' 29 | target 'OpenMediationSwiftDemo' 30 | end 31 | --------------------------------------------------------------------------------