#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
#ifndef ADVIEWSDK_SWIFT_H
#define ADVIEWSDK_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif

#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wauto-import"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
# ifndef __ptrauth_swift_value_witness_function_pointer
#  define __ptrauth_swift_value_witness_function_pointer(x)
# endif
# ifndef __ptrauth_swift_class_method_pointer
#  define __ptrauth_swift_class_method_pointer(x)
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2  __attribute__((__ext_vector_type__(2)));
typedef float swift_float3  __attribute__((__ext_vector_type__(3)));
typedef float swift_float4  __attribute__((__ext_vector_type__(4)));
typedef double swift_double2  __attribute__((__ext_vector_type__(2)));
typedef double swift_double3  __attribute__((__ext_vector_type__(3)));
typedef double swift_double4  __attribute__((__ext_vector_type__(4)));
typedef int swift_int2  __attribute__((__ext_vector_type__(2)));
typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2  __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3  __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4  __attribute__((__ext_vector_type__(4)));
#endif

#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
#  define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
#  define SWIFT_CLASS_PROPERTY(...) 
# endif
#endif
#if !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
#  define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
#  define SWIFT_RUNTIME_NAME(X) 
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
#  define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
#  define SWIFT_COMPILE_NAME(X) 
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
#  define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
#  define SWIFT_METHOD_FAMILY(X) 
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
#  define SWIFT_NOESCAPE __attribute__((noescape))
# else
#  define SWIFT_NOESCAPE 
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
#  define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
#  define SWIFT_RELEASES_ARGUMENT 
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
#  define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
#  define SWIFT_WARN_UNUSED_RESULT 
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
#  define SWIFT_NORETURN __attribute__((noreturn))
# else
#  define SWIFT_NORETURN 
# endif
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA 
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA 
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA 
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
#  define OBJC_DESIGNATED_INITIALIZER 
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if __has_attribute(enum_extensibility)
#  define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
#  define SWIFT_ENUM_ATTR(_extensibility) 
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED_OBJC)
# if __has_feature(attribute_diagnose_if_objc)
#  define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
# else
#  define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
# endif
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction 
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
#  define SWIFT_EXTERN extern "C"
# else
#  define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT 
#endif
#if !defined(SWIFT_C_INLINE_THUNK)
# if __has_attribute(always_inline)
# if __has_attribute(nodebug)
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
# else
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
# endif
# else
#  define SWIFT_C_INLINE_THUNK inline
# endif
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL 
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import CoreFoundation;
@import CoreLocation;
@import Dispatch;
@import Foundation;
@import ObjectiveC;
@import UIKit;
#endif

#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AdViewSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif

#if defined(__OBJC__)
@protocol ADVIEW_Transaction;
@class ADVIEW_CreativeModel;
@class ADVIEW_EventManager;
@class ADVIEW_SKOverlayManager;
@class UIView;
@class ADVIEW_ModalManager;
@protocol ADVIEW_CreativeViewabilityTracker;
@class NSNumber;
@protocol ADVIEW_CreativeResolutionDelegate;
@protocol ADVIEW_CreativeViewDelegate;
@class UIViewController;
@class ADVIEW_InterstitialDisplayProperties;
@class NSURL;
@protocol ADVIEW_ModalState;
@protocol ADVIEW_ViewExposure;

/// <code>PBMAbstractCreative</code>‘s purpose is a bundling of a model and a view. It acts as an adapter between
/// the view and the SDK, it’s essentially the C in MVC.
/// All <code>Creatives</code> must conform to this protocol. Each creative has-a model which contains the
/// creative info, and must implement a few methods for handling display of the creative.
SWIFT_PROTOCOL_NAMED("AbstractCreative")
@protocol ADVIEW_AbstractCreative <NSObject>
@property (nonatomic, readonly, weak) id <ADVIEW_Transaction> _Nullable transaction;
@property (nonatomic, readonly, strong) ADVIEW_CreativeModel * _Nonnull creativeModel;
@property (nonatomic, readonly, strong) ADVIEW_EventManager * _Nonnull eventManager;
@property (nonatomic, strong) ADVIEW_SKOverlayManager * _Nullable skOverlayManager;
@property (nonatomic, strong) UIView * _Nullable view;
@property (nonatomic) BOOL clickthroughVisible;
@property (nonatomic, strong) ADVIEW_ModalManager * _Nullable modalManager;
@property (nonatomic, strong) dispatch_queue_t _Nonnull dispatchQueue;
@property (nonatomic, strong) id <ADVIEW_CreativeViewabilityTracker> _Nullable viewabilityTracker;
@property (nonatomic, readonly, copy) void (^ _Nonnull dismissInterstitialModalState)(void);
@property (nonatomic) BOOL isDownloaded;
@property (nonatomic, readonly) BOOL isOpened;
@property (nonatomic, readonly, strong) NSNumber * _Nullable displayInterval;
@property (nonatomic, weak) id <ADVIEW_CreativeResolutionDelegate> _Nullable creativeResolutionDelegate;
@property (nonatomic, weak) id <ADVIEW_CreativeViewDelegate> _Nullable creativeViewDelegate;
@property (nonatomic, weak) UIViewController * _Nullable viewControllerForPresentingModals;
@property (nonatomic, readonly) BOOL isMuted;
- (nonnull instancetype)initWithCreativeModel:(ADVIEW_CreativeModel * _Nonnull)creativeModel transaction:(id <ADVIEW_Transaction> _Nonnull)transaction;
- (void)setupView;
- (void)displayWithRootViewController:(UIViewController * _Nonnull)rootViewController;
- (void)showAsInterstitialFromRootViewController:(UIViewController * _Nonnull)fromRootViewController displayProperties:(ADVIEW_InterstitialDisplayProperties * _Nonnull)displayProperties;
- (void)handleClickthrough:(NSURL * _Nonnull)url;
- (void)onResolutionCompleted;
- (void)onResolutionFailed:(NSError * _Nonnull)error;
- (void)createOpenMeasurementSession;
- (void)pause;
- (void)resume;
- (void)mute;
- (void)unmute;
- (void)modalManagerDidFinishPop:(id <ADVIEW_ModalState> _Nonnull)state;
- (void)modalManagerDidLeaveApp:(id <ADVIEW_ModalState> _Nonnull)state;
- (void)onViewabilityChanged:(BOOL)viewable viewExposure:(id <ADVIEW_ViewExposure> _Nonnull)viewExposure;
@end


SWIFT_CLASS_NAMED("AutoRefreshCountConfig")
@interface ADVIEW_AutoRefreshCountConfig : NSObject
/// The number of times the BannerView has been refreshed.
@property (nonatomic) NSInteger numRefreshes;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class ADVIEW_AdFormat;
@class ADVIEW_BannerParameters;
@class ADVIEW_VideoParameters;
enum ADVIEW_InterstitialLayout : NSInteger;
@class ADVIEW_VideoControlsConfiguration;
@class ADVIEW_RewardedConfig;
@class NSString;

/// Contains all the data needed to load an ad.
SWIFT_CLASS_NAMED("AdConfiguration")
@interface ADVIEW_AdConfiguration : ADVIEW_AutoRefreshCountConfig
@property (nonatomic) BOOL isOriginalAPI;
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// Describes an OpenRTB banner object
@property (nonatomic, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// Describes an OpenRTB video object
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// Whether or not this ad configuration is intended to represent an intersitial ad.
/// Setting this to true will disable auto refresh.
@property (nonatomic) BOOL isInterstitialAd;
/// Whether or not this ad configuration is intended to represent an ad as an intersitial one (regardless of original designation).
/// Overrides <code>isInterstitialAd</code>
/// Setting this to true will disable auto refresh.
@property (nonatomic, strong) NSNumber * _Nullable forceInterstitialPresentation;
/// Whether or not this ad configuration is intended to represent an intersitial ad.
/// Returns the effective result by combining <code>isInterstitialAd</code> and <code>forceInterstitialPresentation</code>
@property (nonatomic, readonly) BOOL presentAsInterstitial;
/// Interstitial layout
@property (nonatomic) enum ADVIEW_InterstitialLayout interstitialLayout;
/// Size for the ad.
@property (nonatomic) CGSize size;
/// Sets an ad unit as an rewarded
@property (nonatomic) BOOL isRewarded;
/// Indicates whether the ad is built-in video e.g. 300x250.
@property (nonatomic) BOOL isBuiltInVideo;
/// A flag that determines whether SKOverlay should be supported
@property (nonatomic) BOOL supportSKOverlay;
/// This property indicated winning bid ad format (ext.prebid.type)
@property (nonatomic, strong) ADVIEW_AdFormat * _Nullable winningBidAdFormat;
/// This property represents video controls custom configuration.
@property (nonatomic, strong) ADVIEW_VideoControlsConfiguration * _Nonnull videoControlsConfig;
/// Server-side configuration for rewarded ads (bid.ext.rwdd)
@property (nonatomic, strong) ADVIEW_RewardedConfig * _Nullable rewardedConfig;
@property (nonatomic) NSTimeInterval pollFrequency;
@property (nonatomic) NSInteger viewableArea;
@property (nonatomic) NSInteger viewableDuration;
@property (nonatomic, copy) void (^ _Nullable clickHandlerOverride)(SWIFT_NOESCAPE void (^ _Nonnull)(void));
@property (nonatomic, copy) NSString * _Nullable impORTBConfig;
@property (nonatomic, copy) NSString * _Nullable globalORTBConfig;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Provides info about received ad.
SWIFT_CLASS_NAMED("AdDetails")
@interface ADVIEW_AdDetails : NSObject
/// Raw data returned for the ad request.
@property (nonatomic, readonly, copy) NSString * _Nonnull rawResponse;
/// Unique identifier of the ad, that can be used for managing and reporting ad quality issues.
@property (nonatomic, readonly, copy) NSString * _Nonnull transactionId;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// <code>AdFormat</code> is a class that represents different types of ad formats using an OptionSet.
SWIFT_CLASS_NAMED("AdFormat")
@interface ADVIEW_AdFormat : NSObject
/// The raw integer value representing the ad format.
@property (nonatomic, readonly) NSInteger rawValue;
/// The string representation of the ad format.
@property (nonatomic, readonly, copy) NSString * _Nullable stringEquivalent;
/// Initializes an <code>AdFormat</code> instance with a specified raw value and its string equivalent.
/// \param rawValue The raw value representing the ad format.
///
/// \param stringEquivalent A string equivalent of the ad format.
///
- (nonnull instancetype)initWithRawValue:(NSInteger)rawValue stringEquivalent:(NSString * _Nonnull)stringEquivalent;
/// Initializes an <code>AdFormat</code> instance with a specified raw value.
/// \param rawValue The raw value representing the ad format.
///
- (nonnull instancetype)initWithRawValue:(NSInteger)rawValue OBJC_DESIGNATED_INITIALIZER;
/// Represents a banner ad format.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_AdFormat * _Nonnull banner;)
+ (ADVIEW_AdFormat * _Nonnull)banner SWIFT_WARN_UNUSED_RESULT;
/// Represents a video ad format.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_AdFormat * _Nonnull video;)
+ (ADVIEW_AdFormat * _Nonnull)video SWIFT_WARN_UNUSED_RESULT;
/// Represents a native ad format.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_AdFormat * _Nonnull native;)
+ (ADVIEW_AdFormat * _Nonnull)native SWIFT_WARN_UNUSED_RESULT;
/// An array containing all cases of ad formats.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<ADVIEW_AdFormat *> * _Nonnull allCases;)
+ (NSArray<ADVIEW_AdFormat *> * _Nonnull)allCases SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@protocol ADVIEW_AdLoaderProtocol;
@class NSValue;

SWIFT_PROTOCOL_NAMED("AdLoaderFlowDelegate")
@protocol ADVIEW_AdLoaderFlowDelegate
- (void)adLoader:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader loadedPrimaryAd:(id _Nonnull)adObject adSize:(NSValue * _Nullable)adSize;
- (void)adLoader:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader failedWithPrimarySDKError:(NSError * _Nullable)error;
- (void)adLoader:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader failedWithPrebidError:(NSError * _Nullable)error;
- (void)adLoaderDidWinPrebid:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader;
- (void)adLoaderLoadedPrebidAd:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader;
@end


SWIFT_CLASS_NAMED("AdLoadFlowController")
@interface ADVIEW_AdLoadFlowController : NSObject <ADVIEW_AdLoaderFlowDelegate>
- (void)adLoader:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader loadedPrimaryAd:(id _Nonnull)adObject adSize:(NSValue * _Nullable)adSize;
- (void)adLoader:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader failedWithPrimarySDKError:(NSError * _Nullable)error;
- (void)adLoaderDidWinPrebid:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader;
- (void)adLoaderLoadedPrebidAd:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader;
- (void)adLoader:(id <ADVIEW_AdLoaderProtocol> _Nonnull)adLoader failedWithPrebidError:(NSError * _Nullable)error;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_PROTOCOL_NAMED("PBMSwiftMigrationHelper")
@protocol ADVIEW_SwiftMigrationHelper
@end


SWIFT_PROTOCOL_NAMED("AdLoadFlowControllerDelegate")
@protocol ADVIEW_AdLoadFlowControllerDelegate <ADVIEW_SwiftMigrationHelper, NSObject>
- (void)adLoadFlowController:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController failedWithError:(NSError * _Nullable)error;
- (void)adLoadFlowControllerWillSendBidRequest:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController;
- (void)adLoadFlowControllerWillRequestPrimaryAd:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController;
- (BOOL)adLoadFlowControllerShouldContinue:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController SWIFT_WARN_UNUSED_RESULT;
@end


@protocol ADVIEW_PrimaryAdRequesterProtocol;
@class Bid;
@class AdUnitConfig;

SWIFT_PROTOCOL_NAMED("AdLoaderProtocol")
@protocol ADVIEW_AdLoaderProtocol <NSObject>
@property (nonatomic, weak) id <ADVIEW_AdLoaderFlowDelegate> _Nullable flowDelegate;
@property (nonatomic, readonly, strong) id <ADVIEW_PrimaryAdRequesterProtocol> _Nullable primaryAdRequester;
- (void)createPrebidAdWithBid:(Bid * _Nonnull)bid adUnitConfig:(AdUnitConfig * _Nonnull)adUnitConfig adObjectSaver:(void (^ _Nonnull)(id _Nonnull))adObjectSaver loadMethodInvoker:(void (^ _Nonnull)(void (^ _Nonnull)(void)))loadMethodInvoker;
- (void)reportSuccessWithAdObject:(id _Nonnull)adObject adSize:(NSValue * _Nullable)adSize;
@end

enum ADVIEW_TrackingEvent : NSInteger;
@class ADVIEW_VideoVerificationParameters;

/// This protocol defines methods for tracking ad’s lifesycle.
/// This protocol declares methods that needed for ad tracking in AdViewPrebidMobile. For now, we have two implementations:
/// <ul>
///   <li>
///     AdModelEventTracker
///   </li>
///   <li>
///     PBMOpenMeasurementEventTracker
///   </li>
/// </ul>
SWIFT_PROTOCOL_NAMED("EventTrackerProtocol")
@protocol ADVIEW_EventTrackerProtocol
- (void)trackEvent:(enum ADVIEW_TrackingEvent)event;
- (void)trackVideoAdLoaded:(ADVIEW_VideoVerificationParameters * _Nonnull)parameters;
- (void)trackStartVideoWithDuration:(NSTimeInterval)duration volume:(double)volume;
- (void)trackVolumeChanged:(double)playerVolume deviceVolume:(double)deviceVolume;
@end

@protocol ADVIEW_PrebidServerConnectionProtocol;

SWIFT_CLASS_NAMED("AdModelEventTracker")
@interface ADVIEW_AdModelEventTracker : NSObject <ADVIEW_EventTrackerProtocol>
- (nonnull instancetype)initWithCreativeModel:(ADVIEW_CreativeModel * _Nonnull)creativeModel serverConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)serverConnection OBJC_DESIGNATED_INITIALIZER;
- (void)trackEvent:(enum ADVIEW_TrackingEvent)event;
- (void)trackVideoAdLoaded:(ADVIEW_VideoVerificationParameters * _Nonnull)parameters;
- (void)trackStartVideoWithDuration:(NSTimeInterval)duration volume:(double)volume;
- (void)trackVolumeChanged:(double)playerVolume deviceVolume:(double)deviceVolume;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

/// Ad position on screen. Refer to List 5.4:
/// The following table specifies the position of the ad as a relative measure of visibility or prominence. This
/// OpenRTB table has values derived from the Inventory Quality Guidelines (IQG). Practitioners should
/// keep in sync with updates to the IQG values as published on IAB.com. Values “4” - “7” apply to apps per
/// the mobile addendum to IQG version 2.1.
/// Value Description
/// 0 Unknown
/// 1 Above the Fold
/// 2 DEPRECATED - May or may not be initially visible depending on screen size/resolution.
/// 3 Below the Fold
/// 4 Header
/// 5 Footer
/// 6 Sidebar
/// 7 Full Screen
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_AdPosition, "AdPosition", open) {
/// -1 Undefined
  ADVIEW_AdPositionUndefined = -1,
/// 0 Unknown
  ADVIEW_AdPositionUnknown = 0,
/// 1 Above the Fold
  ADVIEW_AdPositionAboveTheFold = 1,
/// 2 Locked (i.e. fixed position)
  ADVIEW_AdPositionLocked = 2,
/// 3 Below the Fold
  ADVIEW_AdPositionBelowTheFold = 3,
/// 4 Header
  ADVIEW_AdPositionHeader = 4,
/// 5 Footer
  ADVIEW_AdPositionFooter = 5,
/// 6 Sidebar
  ADVIEW_AdPositionSidebar = 6,
/// 7 Full Screen
  ADVIEW_AdPositionFullScreen = 7,
};

@class ADVIEW_NativeAdConfiguration;

SWIFT_CLASS("_TtC9AdViewSDK12AdUnitConfig")
@interface AdUnitConfig : NSObject <NSCopying>
@property (nonatomic, copy) NSString * _Nonnull configId;
@property (nonatomic, readonly, strong) ADVIEW_AdConfiguration * _Nonnull adConfiguration;
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
@property (nonatomic) CGSize adSize;
@property (nonatomic, strong) NSValue * _Nullable minSizePerc;
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
@property (nonatomic, strong) ADVIEW_NativeAdConfiguration * _Nullable nativeAdConfiguration;
@property (nonatomic, copy) NSArray<NSValue *> * _Nullable additionalSizes;
@property (nonatomic) NSTimeInterval refreshInterval;
@property (nonatomic, copy) NSString * _Nullable gpid;
@property (nonatomic, copy) NSString * _Nullable impORTBConfig;
@property (nonatomic, copy) NSString * _Nullable globalORTBConfig;
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId;
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId size:(CGSize)size OBJC_DESIGNATED_INITIALIZER;
- (void)setPbAdSlot:(NSString * _Nullable)newElement;
- (NSString * _Nullable)getPbAdSlot SWIFT_WARN_UNUSED_RESULT;
- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@protocol AdViewPrebidEventDelegate;
@class ADVIEW_LogLevel;
enum ADVIEW_InitializationStatus : NSInteger;
@protocol AdViewPrebidMobilePluginRenderer;

/// The <code>AdView</code> class manages the configuration and initialization of the AdViewSDK.
SWIFT_CLASS_NAMED("AdView")
@interface AdView : NSObject
/// Indicates whether the timeout value has been updated.
@property (nonatomic) BOOL timeoutUpdated;
/// The AdView / AdView Server account ID.
@property (nonatomic, copy) NSString * _Nonnull adviewAccountId;
/// The AdView auction settings ID.
@property (nonatomic, copy) NSString * _Nullable auctionSettingsId;
/// Enables or disables debug mode.
/// ORTB: bidRequest.test
@property (nonatomic) BOOL pbsDebug;
/// Custom HTTP headers to be sent with requests.
/// Thread-safe: All access is synchronized via a serial dispatch queue.
/// The getter returns a snapshot copy of the headers dictionary.
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nonnull customHeaders;
/// Stored bid responses identified by bidder names.
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nonnull storedBidResponses;
/// Optional Delegate which returns Request and Response Data for further processing
@property (nonatomic, weak) id <AdViewPrebidEventDelegate> _Nullable eventDelegate;
/// This property is set by the developer when he is willing to assign the assetID for Native ad.
@property (nonatomic) BOOL shouldAssignNativeAssetID;
/// This property is set by the developer when he is willing to share the location for better ad targeting
@property (nonatomic) BOOL shareGeoLocation;
/// Set the desidered verbosity of the logs
@property (nonatomic, strong) ADVIEW_LogLevel * _Nonnull logLevel;
/// The singleton instance of the <code>AdView</code> class.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AdView * _Nonnull shared;)
+ (AdView * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
/// The version of the AdViewSDK.
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
/// The version of the OM SDK.
@property (nonatomic, readonly, copy) NSString * _Nonnull omsdkVersion;
/// Custom status endpoint for the AdView Server.
@property (nonatomic, copy) NSString * _Nullable customStatusEndpoint;
/// Timeout for AdViewSDK requests in milliseconds. Fixed at 5 seconds; setter is a no-op for API compatibility.
@property (nonatomic) NSInteger timeoutMillis;
/// Dynamic timeout value.
@property (nonatomic, strong) NSNumber * _Nullable timeoutMillisDynamic;
/// Stored auction response.
@property (nonatomic, copy) NSString * _Nullable storedAuctionResponse;
/// Indicates whether the PBS should cache the bid for the rendering API.
/// If the value is true the SDK will make the cache request in order to report
/// the impression event respectively to the legacy analytic setup.
@property (nonatomic) BOOL useCacheForReportingWithRenderingAPI;
/// Controls how long each creative has to load before it is considered a failure.
@property (nonatomic) NSTimeInterval creativeFactoryTimeout;
/// Controls how long video and interstitial creatives have to load before it is considered a failure.
@property (nonatomic) NSTimeInterval creativeFactoryTimeoutPreRenderContent;
/// If set to true, the output of AdViewSDK’s internal logger is written to a text file. This can be helpful for debugging. Defaults to false.
@property (nonatomic) BOOL debugLogFileEnabled;
/// If true, the SDK will periodically try to listen for location updates in order to request location-based ads.
@property (nonatomic) BOOL locationUpdatesEnabled;
@property (nonatomic) BOOL includeWinners;
@property (nonatomic) BOOL includeBidderKeys;
/// If true, the SDK will not check the PBS status during initialization. This will save initialization time
/// if the PBS endpoint is always live and handled client side
@property (nonatomic) BOOL shouldDisableStatusCheck;
/// Adds a stored bid response.
/// \param bidder The name of the bidder.
///
/// \param responseId The response ID.
///
- (void)addStoredBidResponseWithBidder:(NSString * _Nonnull)bidder responseId:(NSString * _Nonnull)responseId;
/// Clears all stored bid responses.
- (void)clearStoredBidResponses;
/// Retrieves stored bid responses.
///
/// returns:
/// An array of dictionaries containing stored bid responses, or nil if there are none.
- (NSArray<NSDictionary<NSString *, NSString *> *> * _Nullable)getStoredBidResponses SWIFT_WARN_UNUSED_RESULT;
/// Adds a custom HTTP header in a thread-safe manner.
/// \param name The name of the header.
///
/// \param value The value of the header.
///
- (void)addCustomHeaderWithName:(NSString * _Nonnull)name value:(NSString * _Nonnull)value;
/// Clears all custom HTTP headers in a thread-safe manner.
- (void)clearCustomHeaders;
/// Checks the status of AdView Server. The <code>customStatusEndpoint</code> property is used as server status endpoint.
/// If <code>customStatusEndpoint</code> property is not provided, the SDK will use default endpoint - <code>host</code> + <code>/status</code>.
/// Checks the version of GMA SDK. If the version is not supported - logs warning.
/// Use this SDK initializer if you’re using AdViewSDK with GMA SDK.
/// \param serverURL The custom AdView Server URL, used when a user allowed the app to track
///
/// \param gadMobileAdsObject GADMobileAds object
///
/// \param completion returns initialization status and optional error
///
+ (BOOL)initializeSDKWithServerURL:(NSString * _Nonnull)serverURL :(id _Nullable)gadMobileAdsObject error:(NSError * _Nullable * _Nullable)error :(void (^ _Nullable)(enum ADVIEW_InitializationStatus, NSError * _Nullable))completion;
/// Checks the status of AdView Server. The <code>customStatusEndpoint</code> property is used as server status endpoint.
/// If <code>customStatusEndpoint</code> property is not provided, the SDK will use default endpoint - <code>host</code> + <code>/status</code>.
/// Checks the version of GMA SDK. If the version is not supported - logs warning.
/// Use this SDK initializer if you’re using AdViewSDK with GMA SDK.
/// \param serverURL The custom AdView Server URL, used when a user allowed the app to track
///
/// \param nonTrackingURLString The custom AdView Server URL, used when a user rejected the app to track
///
/// \param gadMobileAdsObject GADMobileAds object
///
/// \param completion returns initialization status and optional error
///
+ (BOOL)initializeSDKWithServerURL:(NSString * _Nonnull)serverURL nonTrackingURLString:(NSString * _Nonnull)nonTrackingURLString :(id _Nullable)gadMobileAdsObject error:(NSError * _Nullable * _Nullable)error :(void (^ _Nullable)(enum ADVIEW_InitializationStatus, NSError * _Nullable))completion;
/// Initializes AdViewSDK.
/// Checks the status of AdView Server. The <code>customStatusEndpoint</code> property is used as server status endpoint.
/// If <code>customStatusEndpoint</code> property is not provided, the SDK will use default endpoint - <code>host</code> + <code>/status</code>.
/// Checks the version of GMA SDK. If the version is not supported - logs warning.
/// Use this SDK initializer if you’re using AdViewSDK with GMA SDK.
/// \param serverURL The custom AdView Server URL, used when a user allowed the app to track
///
/// \param gadMobileAdsVersion GADMobileAds version string, use <code>GADGetStringFromVersionNumber(GADMobileAds.sharedInstance().versionNumber)</code> to get it
///
/// \param completion returns initialization status and optional error
///
+ (BOOL)initializeSDKAndReturnError:(NSError * _Nullable * _Nullable)error :(void (^ _Nullable)(enum ADVIEW_InitializationStatus, NSError * _Nullable))completion;
/// Initializes AdViewSDK.
/// Checks the status of AdView Server. The <code>customStatusEndpoint</code> property is used as server status endpoint.
/// If <code>customStatusEndpoint</code> property is not provided, the SDK will use default endpoint - <code>host</code> + <code>/status</code>.
/// Checks the version of GMA SDK. If the version is not supported - logs warning.
/// Use this SDK initializer if you’re using AdViewSDK with GMA SDK.
/// \param serverURL The custom AdView Server URL, used when a user allowed the app to track
///
/// \param nonTrackingURLString The custom AdView Server URL, used when a user rejected the app to track
///
/// \param gadMobileAdsVersion GADMobileAds version string, use <code>GADGetStringFromVersionNumber(GADMobileAds.sharedInstance().versionNumber)</code> to get it
///
/// \param completion returns initialization status and optional error
///
+ (BOOL)initializeSDKWithServerURL:(NSString * _Nonnull)serverURL nonTrackingURLString:(NSString * _Nonnull)nonTrackingURLString gadMobileAdsVersion:(NSString * _Nullable)gadMobileAdsVersion error:(NSError * _Nullable * _Nullable)error :(void (^ _Nullable)(enum ADVIEW_InitializationStatus, NSError * _Nullable))completion;
/// Initializes AdViewSDK.
/// Checks the status of AdView Server. The <code>customStatusEndpoint</code> property is used as server status endpoint.
/// If <code>customStatusEndpoint</code> property is not provided, the SDK will use default endpoint - <code>host</code> + <code>/status</code>.
/// Use this SDK initializer if you’re using AdViewSDK without GMA SDK.
/// \param serverURL The custom AdView Server URL, used when a user allowed the app to track
///
/// \param completion returns initialization status and optional error
///
+ (BOOL)initializeSDKWithServerURL:(NSString * _Nonnull)serverURL error:(NSError * _Nullable * _Nullable)error :(void (^ _Nullable)(enum ADVIEW_InitializationStatus, NSError * _Nullable))completion;
/// Initializes AdViewSDK.
/// Checks the status of AdView Server. The <code>customStatusEndpoint</code> property is used as server status endpoint.
/// If <code>customStatusEndpoint</code> property is not provided, the SDK will use default endpoint - <code>host</code> + <code>/status</code>.
/// Use this SDK initializer if you’re using AdViewSDK without GMA SDK.
/// \param serverURL The custom AdView Server URL, used when a user allowed the app to track
///
/// \param nonTrackingURLString The custom AdView Server URL, used when a user rejected the app to track
///
/// \param completion returns initialization status and optional error
///
+ (BOOL)initializeSDKWithServerURL:(NSString * _Nonnull)serverURL nonTrackingURLString:(NSString * _Nonnull)nonTrackingURLString error:(NSError * _Nullable * _Nullable)error :(void (^ _Nullable)(enum ADVIEW_InitializationStatus, NSError * _Nullable))completion;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+ (void)registerPluginRenderer:(id <AdViewPrebidMobilePluginRenderer> _Nonnull)pluginRenderer;
+ (void)unregisterPluginRenderer:(id <AdViewPrebidMobilePluginRenderer> _Nonnull)pluginRenderer;
+ (BOOL)containsPluginRenderer:(id <AdViewPrebidMobilePluginRenderer> _Nonnull)pluginRenderer SWIFT_WARN_UNUSED_RESULT;
@end

@class NSData;

@interface AdView (SWIFT_EXTENSION(AdViewSDK))
- (void)callEventDelegateAsync_prebidBidRequestDidFinishWithRequestData:(NSData * _Nullable)requestData responseData:(NSData * _Nullable)responseData;
@end

@class ADVIEW_DEHManager;

@interface AdView (SWIFT_EXTENSION(AdViewSDK))
/// Entry point for the third-party id (deh) module (disabled by default, §1).
/// Example:
/// \code
/// AdView.shared.enableDEH = true
/// AdView.shared.deh.setIdentity(email: "user@example.com", phone: nil)
///
/// \endcode
@property (nonatomic, readonly, strong) ADVIEW_DEHManager * _Nonnull deh;
/// Enables or disables the deh module (corresponds to the <code>enabledeh</code> config).
@property (nonatomic) BOOL enableDEH;
@end

@class ADVIEW_BidInfo;
enum ADVIEW_ResultCode : NSInteger;

/// Base class for ad units built for original type of integration.
SWIFT_CLASS_NAMED("AdViewAdUnit")
@interface ADVIEW_AdUnit : NSObject
/// ORTB: imp[].ext.data.pbadslot
@property (nonatomic, copy) NSString * _Nullable pbAdSlot;
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
/// Makes bid request  and provides the result as a <code>BidInfo</code> object.
/// \param completionBidInfo A closure called with a <code>BidInfo</code> object representing the fetched demand.
///
- (void)fetchDemandWithCompletionBidInfo:(void (^ _Nonnull)(ADVIEW_BidInfo * _Nonnull))completionBidInfo;
/// Makes bid request for a specific ad object and provides the result code. Setups targeting keywords into the adObject.
/// \param adObject The ad object for which demand is being fetched.
///
/// \param completion A closure called with the result code indicating the outcome of the demand fetch.
///
- (void)fetchDemandWithAdObject:(id _Nonnull)adObject completion:(void (^ _Nonnull)(enum ADVIEW_ResultCode))completion;
/// Sets the GPID for the ad unit.
/// \param gpid The GPID string to set. Can be <code>nil</code> to clear the GPID.
///
- (void)setGPID:(NSString * _Nullable)gpid;
/// Retrieves the current GPID for the ad unit.
///
/// returns:
/// The GPID string, or <code>nil</code> if no GPID is set.
- (NSString * _Nullable)getGPID SWIFT_WARN_UNUSED_RESULT;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalOrtbConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalOrtbConfig SWIFT_WARN_UNUSED_RESULT;
/// This method allows to set the auto refresh period for the demand
/// \param time refresh time interval
///
- (void)setAutoRefreshMillisWithTime:(double)time;
/// This method stops the auto refresh of demand
- (void)stopAutoRefresh;
/// This method resumes the auto refresh of demand
- (void)resumeAutoRefresh;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_PROTOCOL_NAMED("VideoBasedAdUnitProtocol")
@protocol ADVIEW_VideoBasedAdUnitProtocol
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
@end


SWIFT_PROTOCOL_NAMED("BannerBasedAdUnitProtocol")
@protocol ADVIEW_BannerBasedAdUnitProtocol
@property (nonatomic, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
@end


/// A class representing a banner ad unit for original type of integration.
SWIFT_CLASS_NAMED("AdViewBannerAdUnit")
@interface ADVIEW_BannerAdUnit : ADVIEW_AdUnit <ADVIEW_BannerBasedAdUnitProtocol, ADVIEW_VideoBasedAdUnitProtocol>
/// The banner ad parameters used to configure the ad unit.
@property (nonatomic, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// The video ad parameters used to configure the ad unit.
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// The set of ad formats for the ad unit.
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// Initializes a new <code>BannerAdUnit</code> with the specified configuration ID and size.
/// \param configId The unique identifier for the ad unit configuration.
///
/// \param size The size of the banner ad unit.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId size:(CGSize)size OBJC_DESIGNATED_INITIALIZER;
/// Adds additional sizes to the banner ad unit’s configuration.
/// \param sizes An array of <code>CGSize</code> objects representing additional sizes.
///
- (void)addAdditionalSizeWithSizes:(NSArray<NSValue *> * _Nonnull)sizes;
/// Sets the view in which AdViewSDK will start tracking an impression.
/// \param adView The ad view that contains ad creative(f.e. GAMBannerView). This object will be used later for tracking <code>burl</code>.
///
- (void)activatePrebidImpressionTrackerWithAdView:(UIView * _Nonnull)adView;
/// Activates AdViewSDK’s SKAdNetwork StoreKit ads flow for the provided ad view.
/// Ensure this method is called within the Google Mobile Ads ad received method
/// (e.g., in the GADBannerViewDelegate’s <code>bannerViewDidReceiveAd</code> or similar callbacks).
/// This feature is not available for video ads.
/// \param adView The ad view that contains ad creative(f.e. GAMBannerView).
///
- (void)activatePrebidSKAdNetworkStoreKitAdsFlowWithAdView:(UIView * _Nonnull)adView;
@end

@class UIButton;
enum ADVIEW_Position : NSInteger;
@class UIImage;

SWIFT_CLASS_NAMED("AdViewButtonDecorator")
@interface ADVIEW_AdViewButtonDecorator : NSObject
@property (nonatomic, strong) UIButton * _Nonnull button;
@property (nonatomic) enum ADVIEW_Position buttonPosition;
@property (nonatomic) CGRect customButtonPosition;
@property (nonatomic) double buttonArea;
@property (nonatomic) BOOL isMRAID;
@property (nonatomic, copy) void (^ _Nullable buttonTouchUpInsideBlock)(void);
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)setImage:(UIImage * _Nonnull)image;
- (void)addButtonTo:(UIView * _Nonnull)view displayView:(UIView * _Nonnull)displayView;
- (void)removeButtonFromSuperview;
- (void)bringButtonToFront;
- (void)sendSubviewToBack;
- (void)updateButtonConstraints;
- (CGFloat)getButtonConstraintConstant SWIFT_WARN_UNUSED_RESULT;
- (CGSize)getButtonSize SWIFT_WARN_UNUSED_RESULT;
- (void)buttonTappedAction;
@end

/// Enum representing the initialization status of the AdViewSDK.
/// This enum provides various statuses that indicate the result of the AdViewSDK initialization process. It helps in understanding whether the SDK was successfully initialized or if there were issues during the initialization.
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_InitializationStatus, "AdViewInitializationStatus", open) {
/// AdViewSDK successfully initialized.
  ADVIEW_InitializationStatusSucceeded = 0,
/// AdViewSDK is not able to work.
  ADVIEW_InitializationStatusFailed = 1,
/// Something went wrong during PBS status checking.
  ADVIEW_InitializationStatusServerStatusWarning = 2,
/// AdViewSDK skipped status checking.
  ADVIEW_InitializationStatusServerStatusSkipped = 3,
};


/// Represents an instream video ad unit for original type of integration.
SWIFT_CLASS_NAMED("AdViewInstreamVideoAdUnit")
@interface ADVIEW_InstreamVideoAdUnit : ADVIEW_AdUnit <ADVIEW_VideoBasedAdUnitProtocol>
/// The video parameters for this ad unit.
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// Initializes a new instream video ad unit.
/// \param configId The unique identifier for the ad unit configuration.
///
/// \param size The size of the ad.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId size:(CGSize)size OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents an interstitial ad unit built for original type of integration.
SWIFT_CLASS_NAMED("AdViewInterstitialAdUnit")
@interface ADVIEW_InterstitialAdUnit : ADVIEW_AdUnit <ADVIEW_BannerBasedAdUnitProtocol, ADVIEW_VideoBasedAdUnitProtocol>
/// The banner parameters for this ad unit.
@property (nonatomic, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// The video parameters for this ad unit.
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// The ad formats for the ad unit.
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// A flag that determines whether SKOverlay should be supported
@property (nonatomic) BOOL supportSKOverlay;
/// Initializes a new interstitial ad unit with a unique configuration identifier.
/// \param configId The unique identifier for the ad unit configuration.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId OBJC_DESIGNATED_INITIALIZER;
/// Initializes a new interstitial ad unit with a minimum width and height percentage.
/// \param configId The unique identifier for the ad unit configuration.
///
/// \param minWidthPerc The minimum width percentage of the ad.
///
/// \param minHeightPerc The minimum height percentage of the ad.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId minWidthPerc:(NSInteger)minWidthPerc minHeightPerc:(NSInteger)minHeightPerc;
/// Sets the view in which AdViewSDK will start tracking an impression.
- (void)activatePrebidImpressionTracker;
/// Activates AdViewSDK’s SKAdNetwork StoreKit ads flow.
/// Ensure this method is called before presenting interstitials.
/// This feature is not available for video ads.
- (void)activatePrebidSKAdNetworkStoreKitAdsFlow;
/// Attempts to display an <code>SKOverlay</code> if a valid configuration is available.
- (void)activateSKOverlayIfAvailable;
/// Dismisses the SKOverlay if presented.
- (void)dismissSKOverlayIfAvailable;
@end


SWIFT_PROTOCOL_NAMED("CreativeViewDelegate")
@protocol ADVIEW_CreativeViewDelegate <NSObject>
- (void)creativeDidComplete:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeDidDisplay:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeWasClicked:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeViewWasClicked:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeClickthroughDidClose:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeInterstitialDidClose:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeInterstitialDidLeaveApp:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeFullScreenDidFinish:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeDidSendRewardedEvent:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeReadyToReimplant:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeMraidDidCollapse:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeMraidDidExpand:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
@optional
- (void)videoCreativeDidComplete:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)videoWasMuted:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)videoWasUnmuted:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)videoDidResume:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)videoDidPause:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
@end

@protocol ADVIEW_AdViewManagerDelegate;
@protocol ADVIEW_ModalManagerDelegate;

SWIFT_PROTOCOL_NAMED("AdViewManager")
@protocol ADVIEW_AdViewManager <ADVIEW_CreativeViewDelegate>
@property (nonatomic, strong) ADVIEW_AdConfiguration * _Nonnull adConfiguration;
@property (nonatomic, strong) ADVIEW_ModalManager * _Nonnull modalManager;
@property (nonatomic, weak) id <ADVIEW_AdViewManagerDelegate> _Nullable adViewManagerDelegate;
@property (nonatomic) BOOL autoDisplayOnLoad;
@property (nonatomic, readonly) BOOL isCreativeOpened;
@property (nonatomic, readonly) BOOL isMuted;
- (nonnull instancetype)initWithConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection modalManagerDelegate:(id <ADVIEW_ModalManagerDelegate> _Nullable)modalManagerDelegate;
- (NSString * _Nullable)revenueForNextCreative SWIFT_WARN_UNUSED_RESULT;
- (BOOL)isAbleToShowCurrentCreative SWIFT_WARN_UNUSED_RESULT;
- (void)show;
- (void)pause;
- (void)resume;
- (void)mute;
- (void)unmute;
- (void)handleExternalTransaction:(id <ADVIEW_Transaction> _Nonnull)transaction;
@end


SWIFT_PROTOCOL_NAMED("AdViewManagerDelegate")
@protocol ADVIEW_AdViewManagerDelegate <NSObject>
- (UIViewController * _Nullable)viewControllerForModalPresentation SWIFT_WARN_UNUSED_RESULT;
- (void)adLoaded:(ADVIEW_AdDetails * _Nonnull)adDetails;
- (void)failedToLoad:(NSError * _Nonnull)error;
- (void)adDidComplete;
- (void)adDidDisplay;
- (void)adWasClicked;
- (void)adViewWasClicked;
- (void)adDidExpand;
- (void)adDidCollapse;
- (void)adDidLeaveApp;
- (void)adClickthroughDidClose;
- (void)adDidClose;
@optional
@property (nonatomic, readonly, strong) UIView * _Nonnull displayView;
@property (nonatomic, readonly, strong) ADVIEW_InterstitialDisplayProperties * _Nonnull interstitialDisplayProperties;
- (void)videoAdDidFinish;
- (void)videoAdWasMuted;
- (void)videoAdWasUnmuted;
- (void)videoAdDidPause;
- (void)videoAdDidResume;
- (void)adDidSendRewardedEvent;
@end


/// This protocol is dedicated to manage the work with Mediation SDKs.
SWIFT_PROTOCOL("_TtP9AdViewSDK23AdViewMediationDelegate_")
@protocol AdViewMediationDelegate
/// Puts to ad object’s localExtra the ad object (winning bid or native ad) and configId
/// and populates adObject’s keywords by targeting info
/// @return YES on success and NO otherwise (when the passed ad has wrong type)
- (BOOL)setUpAdObjectWith:(NSDictionary<NSString *, id> * _Nonnull)values SWIFT_WARN_UNUSED_RESULT;
/// Removes bid info from ad object’s localExtra and adview-specific keywords.
- (void)cleanUpAdObject;
/// Returns ad view that was passed into AdViewMediationDelegate earlier.
/// Returns nil if there was no view passed.
- (UIView * _Nullable)getAdView SWIFT_WARN_UNUSED_RESULT;
@end


/// A protocol that defines the interface for controlling and interacting with interstitial ads.
/// This protocol allows loading and displaying interstitial ads, as well as managing interactions with them.
SWIFT_PROTOCOL("_TtP9AdViewSDK42AdViewMobileInterstitialControllerProtocol_")
@protocol AdViewMobileInterstitialControllerProtocol <NSObject>
/// Loads the ad content for the interstitial.
/// important:
/// This method is expected to call the <code>loadingDelegate</code> once the ad is successfully loaded or if any error occurred.
- (void)loadAd;
/// Displays the interstitial ad.
- (void)show;
@end

@class ADVIEW_ContextType;
@class ADVIEW_ContextSubType;
@class ADVIEW_PlacementType;
@class ADVIEW_NativeAsset;
@class ADVIEW_NativeEventTracker;

/// A class representing a native request for original type of integration.
SWIFT_CLASS_NAMED("AdViewNativeRequest")
@interface ADVIEW_NativeRequest : ADVIEW_AdUnit
/// The version of the native ad specification being used. Defaults to “1.2” if not set.
@property (nonatomic, copy) NSString * _Nonnull version;
/// The context in which the ad appears. See <code>ContextType</code> for possible values.
@property (nonatomic, strong) ADVIEW_ContextType * _Nullable context;
/// A more detailed context in which the ad appears. See <code>ContextSubType</code> for possible values.
@property (nonatomic, strong) ADVIEW_ContextSubType * _Nullable contextSubType;
/// The design/format/layout of the ad unit being offered. See <code>PlacementType</code> for possible values.
@property (nonatomic, strong) ADVIEW_PlacementType * _Nullable placementType;
/// The number of identical placements in the ad layout. Defaults to 1 if not set.
@property (nonatomic) NSInteger placementCount;
/// The sequence number of the ad. Defaults to 0 if not set.
@property (nonatomic) NSInteger sequence;
/// An array of <code>NativeAsset</code> objects representing the assets required for the native ad request.
@property (nonatomic, copy) NSArray<ADVIEW_NativeAsset *> * _Nullable assets;
/// Indicates whether the supply source/impression supports returning an <code>assetsurl</code> instead of an asset object.
/// Defaults to 0 if not set.
@property (nonatomic) NSInteger asseturlsupport;
/// Indicates whether the supply source/impression supports returning a <code>dco</code> URL instead of an asset object.
/// Defaults to 0 if not set.
@property (nonatomic) NSInteger durlsupport;
/// An array of <code>NativeEventTracker</code> objects specifying the event tracking settings for the native ad.
@property (nonatomic, copy) NSArray<ADVIEW_NativeEventTracker *> * _Nullable eventtrackers;
/// Indicates whether the native ad supports a buyer-specific privacy notice. Defaults to 0 if not set.
@property (nonatomic) NSInteger privacy;
/// A placeholder for custom JSON agreed to by the parties to support flexibility beyond the standard specification.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// The configuration ID for the ad unit.
@property (nonatomic, copy) NSString * _Nonnull configId;
/// Initializes a <code>NativeRequest</code> with a specified configuration ID.
/// Default event trackers (Impression, ViewableImpression50, ViewableImpression100; Image method) are applied automatically.
/// \param configId The configuration ID for the ad unit.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId OBJC_DESIGNATED_INITIALIZER;
/// Initializes a <code>NativeRequest</code> with a specified configuration ID, assets, and event trackers.
/// \param configId The configuration ID for the ad unit.
///
/// \param assets An optional array of <code>NativeAsset</code> objects.
///
/// \param eventTrackers An optional array of <code>NativeEventTracker</code> objects. When <code>nil</code>, default event trackers are used.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId assets:(NSArray<ADVIEW_NativeAsset *> * _Nullable)assets eventTrackers:(NSArray<ADVIEW_NativeEventTracker *> * _Nullable)eventTrackers;
/// Adds an array of native assets to the request. If assets already exist, they will be appended.
/// \param assets An array of <code>NativeAsset</code> objects to add.
///
- (void)addNativeAssets:(NSArray<ADVIEW_NativeAsset *> * _Nonnull)assets;
/// Adds an array of native event trackers to the request. If event trackers already exist, they will be appended.
/// \param eventTrackers An array of <code>NativeEventTracker</code> objects to add.
///
- (void)addNativeEventTracker:(NSArray<ADVIEW_NativeEventTracker *> * _Nonnull)eventTrackers;
/// Retrieves the native request object as a JSON dictionary.
///
/// returns:
/// A dictionary representation of the native request object, or <code>nil</code> if an error occurs.
- (NSDictionary * _Nullable)getNativeRequestObject SWIFT_WARN_UNUSED_RESULT;
@end

@class ADVIEW_PrebidRequest;

/// Multiformat ad unit. Built for original API.
SWIFT_CLASS_NAMED("AdViewPrebidAdUnit")
@interface ADVIEW_PrebidAdUnit : NSObject
/// The ad slot identifier for the  ad unit.
@property (nonatomic, copy) NSString * _Nullable pbAdSlot;
/// Initializes a new <code>AdViewAdUnit</code> with the given configuration ID.
/// \param configId The configuration ID for the ad unit.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId OBJC_DESIGNATED_INITIALIZER;
/// Makes bid request for the specified ad object and request config. Setups targeting keywords into the adObject.
/// \param adObject The ad object to fetch demand for.
///
/// \param request The <code>AdViewRequest</code> containing the demand request parameters.
///
/// \param completion A closure to be called with the <code>BidInfo</code> result.
///
- (void)fetchDemandWithAdObject:(id _Nonnull)adObject request:(ADVIEW_PrebidRequest * _Nonnull)request completion:(void (^ _Nonnull)(ADVIEW_BidInfo * _Nonnull))completion;
/// Makes bid request for the specified request config.
/// \param request The <code>AdViewRequest</code> containing the demand request parameters.
///
/// \param completion A closure to be called with the <code>BidInfo</code> result.
///
- (void)fetchDemandWithRequest:(ADVIEW_PrebidRequest * _Nonnull)request completion:(void (^ _Nonnull)(ADVIEW_BidInfo * _Nonnull))completion;
/// Sets the view in which AdViewSDK will start tracking an impression and activates the impression tracker.
/// \param adView The ad view that contains ad creative(f.e. GAMBannerView). This object will be used later for tracking <code>burl</code>.
///
- (void)activatePrebidAdViewImpressionTrackerWithAdView:(UIView * _Nonnull)adView;
/// Activates interstitial impression tracker.
- (void)activatePrebidInterstitialImpressionTracker;
/// Activates AdViewSDK’s SKAdNetwork StoreKit ads flow for the provided ad view.
/// Note: Ensure this method is called within the Google Mobile Ads ad received method
/// (e.g., in the GADBannerViewDelegate’s bannerViewDidReceiveAd or similar callbacks).
/// \param adView The ad view that contains ad creative(f.e. GAMBannerView).
///
- (void)activatePrebidBannerSKAdNetworkStoreKitAdsFlowWithAdView:(UIView * _Nonnull)adView;
/// Activates AdViewSDK’s SKAdNetwork StoreKit ads flow.
/// Note: Ensure this method is called before presenting interstitials.
- (void)activatePrebidInterstitialSKAdNetworkStoreKitAdsFlow;
/// This method allows to set the auto refresh period for the demand
/// \param time refresh time interval
///
- (void)setAutoRefreshMillisWithTime:(double)time;
/// This method stops the auto refresh of demand
- (void)stopAutoRefresh;
/// This method resumes the auto refresh of demand
- (void)resumeAutoRefresh;
/// Attempts to display an <code>SKOverlay</code> over interstitial if a valid configuration is available.
- (void)activateSKOverlayIfAvailable;
/// Dismisses the SKOverlay if presented
- (void)dismissSKOverlayIfAvailable;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class ADVIEW_Api;

SWIFT_CLASS_NAMED("AdViewPrebidConstants")
@interface ADVIEW_PrebidConstants : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<ADVIEW_Api *> * _Nonnull supportedRenderingBannerAPISignals;)
+ (NSArray<ADVIEW_Api *> * _Nonnull)supportedRenderingBannerAPISignals SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull companionHTMLTemplate;)
+ (NSString * _Nonnull)companionHTMLTemplate SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ADVIEW_VERSION;)
+ (NSString * _Nonnull)ADVIEW_VERSION SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SDK_NAME;)
+ (NSString * _Nonnull)SDK_NAME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull DOMAIN_KEY;)
+ (NSString * _Nonnull)DOMAIN_KEY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PBM_TRANSACTION_STATE_KEY;)
+ (NSString * _Nonnull)PBM_TRANSACTION_STATE_KEY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PBM_TRACKING_URL_TEMPLATE;)
+ (NSString * _Nonnull)PBM_TRACKING_URL_TEMPLATE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PBM_ORIGINAL_ADUNIT_KEY;)
+ (NSString * _Nonnull)PBM_ORIGINAL_ADUNIT_KEY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PBM_PRECACHE_CONFIGURATION_KEY;)
+ (NSString * _Nonnull)PBM_PRECACHE_CONFIGURATION_KEY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull FETCH_DEMAND_RESULT_KEY;)
+ (NSString * _Nonnull)FETCH_DEMAND_RESULT_KEY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval AD_PREFETCH_TIME;)
+ (NSTimeInterval)AD_PREFETCH_TIME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger LOCATION_SOURCE_GPS;)
+ (NSInteger)LOCATION_SOURCE_GPS SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger LOCATION_SOURCE_IPAddress;)
+ (NSInteger)LOCATION_SOURCE_IPAddress SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger LOCATION_SOURCE_USER_REGISTRATION;)
+ (NSInteger)LOCATION_SOURCE_USER_REGISTRATION SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSNumber * _Nonnull BUTTON_AREA_DEFAULT;)
+ (NSNumber * _Nonnull)BUTTON_AREA_DEFAULT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSNumber * _Nonnull SKIP_DELAY_DEFAULT;)
+ (NSNumber * _Nonnull)SKIP_DELAY_DEFAULT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSNumber * _Nonnull BUTTON_CONSTRAINT;)
+ (NSNumber * _Nonnull)BUTTON_CONSTRAINT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull APP_STORE_URL_SCHEME;)
+ (NSString * _Nonnull)APP_STORE_URL_SCHEME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull OPEN_RTB_SCHEME;)
+ (NSString * _Nonnull)OPEN_RTB_SCHEME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval AUTO_REFRESH_DELAY_DEFAULT;)
+ (NSTimeInterval)AUTO_REFRESH_DELAY_DEFAULT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval AUTO_REFRESH_DELAY_MIN;)
+ (NSTimeInterval)AUTO_REFRESH_DELAY_MIN SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval AUTO_REFRESH_DELAY_MAX;)
+ (NSTimeInterval)AUTO_REFRESH_DELAY_MAX SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval VAST_LOADER_TIMEOUT;)
+ (NSTimeInterval)VAST_LOADER_TIMEOUT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval AD_CLICKED_ALLOWED_INTERVAL;)
+ (NSTimeInterval)AD_CLICKED_ALLOWED_INTERVAL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval CONNECTION_TIMEOUT_DEFAULT;)
+ (NSTimeInterval)CONNECTION_TIMEOUT_DEFAULT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval CLOSE_DELAY_MIN;)
+ (NSTimeInterval)CLOSE_DELAY_MIN SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval CLOSE_DELAY_MAX;)
+ (NSTimeInterval)CLOSE_DELAY_MAX SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval FIRE_AND_FORGET_TIMEOUT;)
+ (NSTimeInterval)FIRE_AND_FORGET_TIMEOUT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger VIDEO_TIMESCALE;)
+ (NSInteger)VIDEO_TIMESCALE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) double DISTANCE_FILTER;)
+ (double)DISTANCE_FILTER SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SERVER_ENDPOINTS_STATUS;)
+ (NSString * _Nonnull)SERVER_ENDPOINTS_STATUS SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_CLOSE_BUTTON_IDENTIFIER;)
+ (NSString * _Nonnull)ACCESSIBILITY_CLOSE_BUTTON_IDENTIFIER SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_CLOSE_BUTTON_LABEL;)
+ (NSString * _Nonnull)ACCESSIBILITY_CLOSE_BUTTON_LABEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_CLOSE_BUTTON_CLICK_THROUGH_BROWSER_IDENTIFIER;)
+ (NSString * _Nonnull)ACCESSIBILITY_CLOSE_BUTTON_CLICK_THROUGH_BROWSER_IDENTIFIER SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_CLOSE_BUTTON_CLICK_THROUGH_BROWSER_LABEL;)
+ (NSString * _Nonnull)ACCESSIBILITY_CLOSE_BUTTON_CLICK_THROUGH_BROWSER_LABEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_WEB_VIEW_LABEL;)
+ (NSString * _Nonnull)ACCESSIBILITY_WEB_VIEW_LABEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_VIDEO_AD_VIEW;)
+ (NSString * _Nonnull)ACCESSIBILITY_VIDEO_AD_VIEW SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACCESSIBILITY_BANNER_VIEW;)
+ (NSString * _Nonnull)ACCESSIBILITY_BANNER_VIEW SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRACKING_PATTERN_RI;)
+ (NSString * _Nonnull)TRACKING_PATTERN_RI SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRACKING_PATTERN_RC;)
+ (NSString * _Nonnull)TRACKING_PATTERN_RC SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRACKING_PATTERN_RDF;)
+ (NSString * _Nonnull)TRACKING_PATTERN_RDF SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRACKING_PATTERN_RR;)
+ (NSString * _Nonnull)TRACKING_PATTERN_RR SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRACKING_PATTERN_BO;)
+ (NSString * _Nonnull)TRACKING_PATTERN_BO SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull SUPPORTED_VIDEO_MIME_TYPES;)
+ (NSArray<NSString *> * _Nonnull)SUPPORTED_VIDEO_MIME_TYPES SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull URL_SCHEMES_FOR_APP_STORE_AND_ITUNES;)
+ (NSArray<NSString *> * _Nonnull)URL_SCHEMES_FOR_APP_STORE_AND_ITUNES SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull URL_SCHEMES_NOT_SUPPORTED_ON_SIMULATOR;)
+ (NSArray<NSString *> * _Nonnull)URL_SCHEMES_NOT_SUPPORTED_ON_SIMULATOR SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull URL_SCHEMES_NOT_SUPPORTED_ON_CLICKTHROUGH_BROWSER;)
+ (NSArray<NSString *> * _Nonnull)URL_SCHEMES_NOT_SUPPORTED_ON_CLICKTHROUGH_BROWSER SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_PROTOCOL("_TtP9AdViewSDK25AdViewPrebidEventDelegate_")
@protocol AdViewPrebidEventDelegate
/// Notifies the delegate when an AdView bid request has finished.
/// This method is called on a global background thread.
/// \param requestData The AdView Server request data that was sent.
///
/// \param responseData The AdView Server response data that was received.
///
- (void)prebidBidRequestDidFinishWithRequestData:(NSData * _Nullable)requestData responseData:(NSData * _Nullable)responseData;
@end


SWIFT_CLASS_NAMED("AdViewPrebidImagesRepository")
@interface ADVIEW_PrebidImagesRepository : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull muteDisabled;)
+ (NSString * _Nonnull)muteDisabled SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull muteEnabled;)
+ (NSString * _Nonnull)muteEnabled SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull closeButton;)
+ (NSString * _Nonnull)closeButton SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull skipButton;)
+ (NSString * _Nonnull)skipButton SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("AdViewPrebidJSLibrary")
@interface ADVIEW_PrebidJSLibrary : NSObject
@property (nonatomic, copy) NSString * _Nullable downloadURLString;
@property (nonatomic, copy) NSString * _Nonnull name;
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name downloadURLString:(NSString * _Nullable)downloadURLString OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("AdViewPrebidJSLibraryManager")
@interface ADVIEW_PrebidJSLibraryManager : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PrebidJSLibraryManager * _Nonnull shared;)
+ (ADVIEW_PrebidJSLibraryManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (void)downloadLibraries;
- (NSString * _Nullable)getMRAIDLibrary SWIFT_WARN_UNUSED_RESULT;
- (NSString * _Nullable)getOMSDKLibrary SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// A protocol defining methods for logging messages at various levels.
/// Implement this protocol to handle logging in a customizable way.
SWIFT_PROTOCOL_NAMED("AdViewPrebidLogger")
@protocol ADVIEW_PrebidLogger
/// Logs an error message.
/// \param object The object or message to log.
///
/// \param filename The name of the file where the log was generated.
///
/// \param line The line number where the log was generated.
///
/// \param function The function name where the log was generated.
///
- (void)error:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Logs an informational message.
/// \param object The object or message to log.
///
/// \param filename The name of the file where the log was generated.
///
/// \param line The line number where the log was generated.
///
/// \param function The function name where the log was generated.
///
- (void)info:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Logs a debug message.
/// \param object The object or message to log.
///
/// \param filename The name of the file where the log was generated.
///
/// \param line The line number where the log was generated.
///
/// \param function The function name where the log was generated.
///
- (void)debug:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Logs a verbose message, typically used for detailed or low-level information.
/// \param object The object or message to log.
///
/// \param filename The name of the file where the log was generated.
///
/// \param line The line number where the log was generated.
///
/// \param function The function name where the log was generated.
///
- (void)verbose:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Logs a warning message.
/// \param object The object or message to log.
///
/// \param filename The name of the file where the log was generated.
///
/// \param line The line number where the log was generated.
///
/// \param function The function name where the log was generated.
///
- (void)warn:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Logs a severe error message, indicating a critical issue.
/// \param object The object or message to log.
///
/// \param filename The name of the file where the log was generated.
///
/// \param line The line number where the log was generated.
///
/// \param function The function name where the log was generated.
///
- (void)severe:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Logs the current location in the code.
/// \param filename The name of the file where this method was called.
///
/// \param line The line number where this method was called.
///
/// \param function The function name where this method was called.
///
- (void)whereAmIWithFilename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
@end


/// This protocol is used to load and display the ad content in a view.
SWIFT_PROTOCOL_NAMED("AdViewPrebidMobileDisplayViewProtocol")
@protocol ADVIEW_PrebidMobileDisplayViewProtocol
/// Loads the ad content into the display view.
/// important:
/// This method is expected to call the <code>loadingDelegate</code> once the
/// ad is successfully loaded or if any error occurred.
- (void)loadAd;
@end

@protocol ADVIEWPluginEventDelegate;

/// Global singleton responsible to store plugin renderer instances
SWIFT_CLASS_NAMED("AdViewPrebidMobilePluginRegister")
@interface ADVIEW_PrebidMobilePluginRegister : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PrebidMobilePluginRegister * _Nonnull shared;)
+ (ADVIEW_PrebidMobilePluginRegister * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
/// Default AdViewSDK renderer
@property (nonatomic, readonly, strong) id <AdViewPrebidMobilePluginRenderer> _Nonnull sdkRenderer;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// Register plugin as renderer
- (void)registerPlugin:(id <AdViewPrebidMobilePluginRenderer> _Nonnull)renderer;
- (void)unregisterPlugin:(id <AdViewPrebidMobilePluginRenderer> _Nonnull)renderer;
/// Contains plugin
- (BOOL)containsPlugin:(id <AdViewPrebidMobilePluginRenderer> _Nonnull)renderer SWIFT_WARN_UNUSED_RESULT;
/// Register event delegate
- (void)registerEventDelegate:(id <ADVIEWPluginEventDelegate> _Nonnull)pluginEventDelegate adUnitConfigFingerprint:(NSString * _Nonnull)adUnitConfigFingerprint;
/// Unregister event delegate
- (void)unregisterEventDelegate:(id <ADVIEWPluginEventDelegate> _Nonnull)pluginEventDelegate adUnitConfigFingerprint:(NSString * _Nonnull)adUnitConfigFingerprint;
/// Returns the registered renderer according to the preferred renderer name in the bid response.
/// If no preferred renderer is found, it returns AdViewPrebidRenderer to perform default behavior.
/// Once bid is win we want to resolve the best PluginRenderer candidate to render the ad.
- (id <AdViewPrebidMobilePluginRenderer> _Nonnull)getPluginForPreferredRendererWithBid:(Bid * _Nonnull)bid SWIFT_WARN_UNUSED_RESULT;
- (NSArray<id <AdViewPrebidMobilePluginRenderer>> * _Nonnull)getAllPlugins SWIFT_WARN_UNUSED_RESULT;
- (NSArray<NSDictionary<NSString *, id> *> * _Nonnull)getAllPluginsJSONRepresentation SWIFT_WARN_UNUSED_RESULT;
@end

@protocol DisplayViewLoadingDelegate;
@protocol DisplayViewInteractionDelegate;
@protocol InterstitialControllerLoadingDelegate;
@protocol InterstitialControllerInteractionDelegate;

/// A protocol for the plugin renderer, defining the basic interface that any renderer should implement.
/// This protocol provides the ability to retrieve plugin details, support rendering formats, and manage event delegates and
/// methods for creating custom banner view and insterstitial controller.
SWIFT_PROTOCOL("_TtP9AdViewSDK32AdViewPrebidMobilePluginRenderer_")
@protocol AdViewPrebidMobilePluginRenderer
/// The name of the plugin renderer. This is used to identify the plugin.
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
/// The version of the plugin renderer.
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
/// Custom data to be included in the ORTB request.
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable data;
@optional
/// Register a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events.
- (void)registerEventDelegateWithPluginEventDelegate:(id <ADVIEWPluginEventDelegate> _Nonnull)pluginEventDelegate adUnitConfigFingerprint:(NSString * _Nonnull)adUnitConfigFingerprint;
/// Unregister a listener related to a specific ad unit config fingerprint in order to dispatch specific ad events.
- (void)unregisterEventDelegateWithPluginEventDelegate:(id <ADVIEWPluginEventDelegate> _Nonnull)pluginEventDelegate adUnitConfigFingerprint:(NSString * _Nonnull)adUnitConfigFingerprint;
@required
/// Creates and returns an ad view conforming to <code>PrebidMobileDisplayViewManagerProtocol</code> for a given bid response.
/// Returns nil in the case of an internal error or if no renderer is provided.
/// \param frame The frame specifying the initial size and position of the ad view.
///
/// \param bid The <code>Bid</code> object containing the bid response used for rendering the ad.
///
/// \param adConfiguration The <code>AdUnitConfig</code> instance providing configuration details for the ad unit.
///
/// \param loadingDelegate The delegate conforming to <code>DisplayViewLoadingDelegate</code> for handling ad loading events.
///
/// \param interactionDelegate The  delegate conforming to <code>DisplayViewInteractionDelegate</code> for handling ad interaction events.
///
- (UIView <ADVIEW_PrebidMobileDisplayViewProtocol> * _Nullable)createBannerViewWith:(CGRect)frame bid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration loadingDelegate:(id <DisplayViewLoadingDelegate> _Nonnull)loadingDelegate interactionDelegate:(id <DisplayViewInteractionDelegate> _Nonnull)interactionDelegate SWIFT_WARN_UNUSED_RESULT;
/// Creates and returns an implementation of <code>PrebidMobileInterstitialControllerProtocol</code> for a given bid response.
/// Returns nil in the case of an internal error or if no renderer is provided.
/// \param bid The <code>Bid</code> object containing the bid response used for rendering the interstitial ad.
///
/// \param adConfiguration The <code>AdUnitConfig</code> instance providing configuration details for the ad unit.
///
/// \param loadingDelegate The delegate for handling interstitial ad loading events.
///
/// \param interactionDelegate The delegate for handling user interactions with the interstitial ad.
///
- (id <AdViewMobileInterstitialControllerProtocol> _Nullable)createInterstitialControllerWithBid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration loadingDelegate:(id <InterstitialControllerLoadingDelegate> _Nonnull)loadingDelegate interactionDelegate:(id <InterstitialControllerInteractionDelegate> _Nonnull)interactionDelegate SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC9AdViewSDK20AdViewPrebidRenderer")
@interface AdViewPrebidRenderer : NSObject <AdViewPrebidMobilePluginRenderer>
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
@property (nonatomic, readonly, copy) NSString * _Nonnull version;
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable data;
- (UIView <ADVIEW_PrebidMobileDisplayViewProtocol> * _Nullable)createBannerViewWith:(CGRect)frame bid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration loadingDelegate:(id <DisplayViewLoadingDelegate> _Nonnull)loadingDelegate interactionDelegate:(id <DisplayViewInteractionDelegate> _Nonnull)interactionDelegate SWIFT_WARN_UNUSED_RESULT;
- (id <AdViewMobileInterstitialControllerProtocol> _Nullable)createInterstitialControllerWithBid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration loadingDelegate:(id <InterstitialControllerLoadingDelegate> _Nonnull)loadingDelegate interactionDelegate:(id <InterstitialControllerInteractionDelegate> _Nonnull)interactionDelegate SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class ADVIEW_NativeParameters;

/// Class that contains properties and methods to configure AdView request.
SWIFT_CLASS_NAMED("AdViewPrebidRequest")
@interface ADVIEW_PrebidRequest : NSObject
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
/// A flag that determines whether SKOverlay should be supported for interstitials
@property (nonatomic) BOOL supportSKOverlayForInterstitial;
/// Initializes a new <code>AdViewRequest</code> with the given parameters.
/// \param bannerParameters The banner parameters for the ad request.
///
/// \param videoParameters The video parameters for the ad request.
///
/// \param nativeParameters The native parameters for the ad request.
///
/// \param isInterstitial Indicates if the request is for an interstitial ad.
///
/// \param isRewarded Indicates if the request is for a rewarded ad.
///
- (nonnull instancetype)initWithBannerParameters:(ADVIEW_BannerParameters * _Nullable)bannerParameters videoParameters:(ADVIEW_VideoParameters * _Nullable)videoParameters nativeParameters:(ADVIEW_NativeParameters * _Nullable)nativeParameters isInterstitial:(BOOL)isInterstitial isRewarded:(BOOL)isRewarded OBJC_DESIGNATED_INITIALIZER;
/// Sets the GPID for the ad request.
/// \param gpid The GPID to set.
///
- (void)setGPID:(NSString * _Nullable)gpid;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The  impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class ADVIEW_UserAgentService;
@class ADVIEW_PrebidServerResponse;

SWIFT_PROTOCOL_NAMED("AdViewPrebidServerConnectionProtocol")
@protocol ADVIEW_PrebidServerConnectionProtocol
@property (nonatomic, readonly, strong) ADVIEW_UserAgentService * _Nonnull userAgentService;
- (void)fireAndForget:(NSString * _Nullable)resourceURL;
- (void)head:(NSString * _Nullable)resourceURL timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)get:(NSString * _Nullable)resourceURL timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)post:(NSString * _Nullable)resourceURL data:(NSData * _Nullable)data timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)post:(NSString * _Nullable)resourceURL contentType:(NSString * _Nullable)contentType data:(NSData * _Nullable)data timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)download:(NSString * _Nullable)resourceURL callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
@end

@class NSURLProtocol;

SWIFT_CLASS_NAMED("AdViewPrebidServerConnection")
@interface ADVIEW_PrebidServerConnection : NSObject <ADVIEW_PrebidServerConnectionProtocol, NSURLSessionDelegate>
@property (nonatomic, readonly, strong) ADVIEW_UserAgentService * _Nonnull userAgentService;
@property (nonatomic, copy) NSArray<SWIFT_METATYPE(NSURLProtocol)> * _Nonnull protocolClasses;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PrebidServerConnection * _Nonnull shared;)
+ (ADVIEW_PrebidServerConnection * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull userAgentHeaderKey;)
+ (NSString * _Nonnull)userAgentHeaderKey SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull contentTypeKey;)
+ (NSString * _Nonnull)contentTypeKey SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull contentTypeVal;)
+ (NSString * _Nonnull)contentTypeVal SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull internalIDKey;)
+ (NSString * _Nonnull)internalIDKey SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull isPBMRequestKey;)
+ (NSString * _Nonnull)isPBMRequestKey SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithUserAgentService:(ADVIEW_UserAgentService * _Nonnull)userAgentService;
- (void)fireAndForget:(NSString * _Nullable)resourceURL;
- (void)head:(NSString * _Nullable)resourceURL timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)get:(NSString * _Nullable)resourceURL timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)post:(NSString * _Nullable)resourceURL data:(NSData * _Nullable)data timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)post:(NSString * _Nullable)resourceURL contentType:(NSString * _Nullable)contentType data:(NSData * _Nullable)data timeout:(NSTimeInterval)timeout callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (void)download:(NSString * _Nullable)resourceURL callback:(void (^ _Nonnull)(ADVIEW_PrebidServerResponse * _Nonnull))callback;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


@class ADVIEW_ServerEvent;

SWIFT_CLASS_NAMED("AdViewPrebidServerEventTracker")
@interface ADVIEW_PrebidServerEventTracker : NSObject <ADVIEW_EventTrackerProtocol>
@property (nonatomic, readonly, copy) NSArray<ADVIEW_ServerEvent *> * _Nonnull serverEvents;
- (nonnull instancetype)initWithServerEvents:(NSArray<ADVIEW_ServerEvent *> * _Nonnull)serverEvents OBJC_DESIGNATED_INITIALIZER;
- (void)trackEvent:(enum ADVIEW_TrackingEvent)event;
- (void)trackVideoAdLoaded:(ADVIEW_VideoVerificationParameters * _Nonnull)parameters;
- (void)trackStartVideoWithDuration:(NSTimeInterval)duration volume:(double)volume;
- (void)trackVolumeChanged:(double)playerVolume deviceVolume:(double)deviceVolume;
- (void)addServerEvents:(NSArray<ADVIEW_ServerEvent *> * _Nonnull)serverEvents;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("AdViewPrebidServerResponse")
@interface ADVIEW_PrebidServerResponse : NSObject
@property (nonatomic, readonly) BOOL isOKStatusCode;
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable jsonDict;
@property (nonatomic, copy) NSData * _Nullable rawData;
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable requestHeaders;
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nullable responseHeaders;
@property (nonatomic, copy) NSString * _Nullable requestURL;
@property (nonatomic) NSError * _Nullable error;
@property (nonatomic) NSInteger statusCode;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("AdViewReward")
@interface ADVIEW_Reward : NSObject
@property (nonatomic, copy) NSString * _Nullable type;
@property (nonatomic, strong) NSNumber * _Nullable count;
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents an rewarded ad unit for original type of integration.
SWIFT_CLASS_NAMED("AdViewRewardedVideoAdUnit")
@interface ADVIEW_RewardedVideoAdUnit : ADVIEW_AdUnit <ADVIEW_VideoBasedAdUnitProtocol>
/// Property for video parameters.
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// A flag that determines whether SKOverlay should be supported
@property (nonatomic) BOOL supportSKOverlay;
/// Initializes a <code>RewardedVideoAdUnit</code> with the given configuration ID.
/// \param configId The configuration ID for the ad unit.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId OBJC_DESIGNATED_INITIALIZER;
/// Initializes a <code>RewardedVideoAdUnit</code> with the given configuration ID and minimum size percentages.
/// \param configId The configuration ID for the ad unit.
///
/// \param minWidthPerc The minimum width percentage for the ad unit.
///
/// \param minHeightPerc The minimum height percentage for the ad unit.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId minWidthPerc:(NSInteger)minWidthPerc minHeightPerc:(NSInteger)minHeightPerc;
/// Attempts to display an <code>SKOverlay</code> if a valid configuration is available.
- (void)activateSKOverlayIfAvailable;
/// Dismisses the SKOverlay if presented
- (void)dismissSKOverlayIfAvailable;
@end


/// <code>AdViewUtils</code> provides utility methods for working with ad views, including finding creative sizes.
SWIFT_CLASS_NAMED("AdViewUtils")
@interface ADVIEW_AdViewUtils : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// Finds the creative size for a given ad view by searching for the <code>hb_size</code> attribute in the ad’s HTML content.
/// \param adView The ad view from which to extract the creative size.
///
/// \param success Closure called with the <code>CGSize</code> of the ad creative if found successfully.
///
/// \param failure Closure called with an <code>Error</code> if the size could not be determined.
///
+ (void)findPrebidCreativeSize:(UIView * _Nonnull)adView success:(void (^ _Nonnull)(CGSize))success failure:(void (^ _Nonnull)(NSError * _Nonnull))failure;
@end


SWIFT_CLASS_NAMED("ArbitraryORTBService")
@interface ADVIEW_ArbitraryORTBService : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+ (NSDictionary<NSString *, id> * _Nonnull)mergeWithSdkORTB:(NSDictionary<NSString *, id> * _Nonnull)sdkORTB impORTB:(NSString * _Nullable)impORTB globalAdUnitORTB:(NSString * _Nullable)globalAdUnitORTB globalORTB:(NSString * _Nullable)globalORTB SWIFT_WARN_UNUSED_RESULT;
@end



SWIFT_CLASS_NAMED("AutoRefreshManager")
@interface ADVIEW_AutoRefreshManager : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// Timer that stops in background and resumes in foreground. Fires callback on timer completion.
/// Can execute only one task at a time.
SWIFT_CLASS_NAMED("BackgroundAwareTimer")
@interface ADVIEW_BackgroundAwareTimer : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)startTimerWith:(NSTimeInterval)interval completion:(void (^ _Nonnull)(void))completion;
- (void)invalidateTimer;
@end


SWIFT_PROTOCOL_NAMED("BannerEventLoadingDelegate")
@protocol ADVIEW_BannerEventLoadingDelegate <NSObject>
- (void)prebidDidWin;
- (void)adServerDidWin:(UIView * _Nonnull)view adSize:(CGSize)adSize;
- (void)failedWithError:(NSError * _Nullable)error;
@end


/// A protocol that defines methods for receiving loading events related to ad display views.
/// This protocol is used to notify the delegate when an ad has successfully loaded or if an error occurs during loading.
SWIFT_PROTOCOL("_TtP9AdViewSDK26DisplayViewLoadingDelegate_")
@protocol DisplayViewLoadingDelegate <NSObject>
/// Notifies that the ad has successfully loaded in the display view.
/// \param displayView The <code>UIView</code> instance in which the ad has been loaded.
///
- (void)displayViewDidLoadAd:(UIView * _Nonnull)displayView;
/// Notifies that an error occurred during the ad loading process.
/// \param displayView The <code>UIView</code> instance where the ad was intended to load.
///
/// \param error An <code>Error</code> instance describing the issue that occurred during the ad loading.
///
- (void)displayView:(UIView * _Nonnull)displayView didFailWithError:(NSError * _Nonnull)error;
@end


SWIFT_CLASS_NAMED("BannerAdLoader")
@interface ADVIEW_BannerAdLoader : NSObject <ADVIEW_AdLoaderProtocol, ADVIEW_BannerEventLoadingDelegate, DisplayViewLoadingDelegate>
@property (nonatomic, weak) id <ADVIEW_AdLoaderFlowDelegate> _Nullable flowDelegate;
@property (nonatomic, readonly, strong) id <ADVIEW_PrimaryAdRequesterProtocol> _Nullable primaryAdRequester;
- (void)createPrebidAdWithBid:(Bid * _Nonnull)bid adUnitConfig:(AdUnitConfig * _Nonnull)adUnitConfig adObjectSaver:(void (^ _Nonnull)(id _Nonnull))adObjectSaver loadMethodInvoker:(void (^ _Nonnull)(void (^ _Nonnull)(void)))loadMethodInvoker;
- (void)reportSuccessWithAdObject:(id _Nonnull)adObject adSize:(NSValue * _Nullable)adSize;
- (void)displayViewDidLoadAd:(UIView * _Nonnull)displayView;
- (void)displayView:(UIView * _Nonnull)displayView didFailWithError:(NSError * _Nonnull)error;
- (void)prebidDidWin;
- (void)adServerDidWin:(UIView * _Nonnull)view adSize:(CGSize)adSize;
- (void)failedWithError:(NSError * _Nullable)error;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@protocol ADVIEW_BannerEventHandler;

SWIFT_PROTOCOL_NAMED("BannerAdLoaderDelegate")
@protocol ADVIEW_BannerAdLoaderDelegate <NSObject>
@property (nonatomic, readonly, strong) id <ADVIEW_BannerEventHandler> _Nullable eventHandler;
- (void)bannerAdLoader:(ADVIEW_BannerAdLoader * _Nonnull)bannerAdLoader loadedAdView:(UIView * _Nonnull)adView adSize:(CGSize)adSize;
@end


@class BidResponse;

SWIFT_PROTOCOL_NAMED("PrimaryAdRequesterProtocol")
@protocol ADVIEW_PrimaryAdRequesterProtocol <NSObject>
/// @abstract PBM SDK calls this method when it has valid bid/s to pass to the ad server.
/// @discussion Note that, if the PBM SDK does not have valid bids, <code>requestAdWithBidResponse:</code> will be called with a <code>nil</code> bid value.
/// @param bidResponse bid response object having useful information that can be passed to the ad server SDK
- (void)requestAdWithBidResponse:(BidResponse * _Nullable)bidResponse;
@end

@protocol ADVIEW_BannerEventInteractionDelegate;

/// A protocol for handling events related to banner ads in the PBM SDK.
/// This protocol defines methods and properties for managing events associated with banner ads, including loading events, user interactions, and ad sizes. Implementing this protocol allows for custom handling of these events within the PBM SDK.
SWIFT_PROTOCOL_NAMED("BannerEventHandler")
@protocol ADVIEW_BannerEventHandler <ADVIEW_PrimaryAdRequesterProtocol>
/// Delegate for custom event handler to inform the PBM SDK about the events related to the ad server communication.
@property (nonatomic, weak) id <ADVIEW_BannerEventLoadingDelegate> _Nullable loadingDelegate;
/// Delegate for custom event handler to inform the PBM SDK about the events related to the user’s interaction with the ad.
@property (nonatomic, weak) id <ADVIEW_BannerEventInteractionDelegate> _Nullable interactionDelegate;
/// The array of the CGRect entries for each valid ad sizes.
/// The first size is treated as a frame for related ad unit.
@property (nonatomic, readonly, copy) NSArray<NSValue *> * _Nonnull adSizes;
- (void)trackImpression;
@end


SWIFT_CLASS("_TtC9AdViewSDK28BannerEventHandlerStandalone")
@interface BannerEventHandlerStandalone : NSObject <ADVIEW_BannerEventHandler>
@property (nonatomic, weak) id <ADVIEW_BannerEventLoadingDelegate> _Nullable loadingDelegate;
@property (nonatomic, weak) id <ADVIEW_BannerEventInteractionDelegate> _Nullable interactionDelegate;
@property (nonatomic, copy) NSArray<NSValue *> * _Nonnull adSizes;
- (void)requestAdWithBidResponse:(BidResponse * _Nullable)bidResponse;
- (void)trackImpression;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("BannerEventInteractionDelegate")
@protocol ADVIEW_BannerEventInteractionDelegate <NSObject>
- (void)willPresentModal;
- (void)didDismissModal;
- (void)willLeaveApp;
@property (nonatomic, readonly, strong) UIViewController * _Nullable viewControllerForPresentingModal;
@end



/// Describes an <a href="https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf">OpenRTB</a> banner object
SWIFT_CLASS_NAMED("BannerParameters")
@interface ADVIEW_BannerParameters : NSObject
/// List of supported API frameworks for this impression. If an API is not explicitly listed, it is assumed not to be supported.
@property (nonatomic, copy) NSArray<ADVIEW_Api *> * _Nullable api;
/// Ad sizes of the ad
@property (nonatomic, copy) NSArray<NSValue *> * _Nullable adSizes;
/// Helper for <code>api</code> values
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nullable rawAPI;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// A protocol that defines methods for handling user interactions and lifecycle events related to ad display views.
SWIFT_PROTOCOL("_TtP9AdViewSDK30DisplayViewInteractionDelegate_")
@protocol DisplayViewInteractionDelegate <NSObject>
/// Tracks an impression for the specified display view.
/// \param forDisplayView The <code>UIView</code> instance associated with the ad impression.
///
- (void)trackImpressionForDisplayView:(UIView * _Nonnull)forDisplayView;
/// Notifies that the user has left the app after interacting with the ad.
/// \param displayView The <code>UIView</code> instance associated with the ad interaction.
///
- (void)didLeaveAppFrom:(UIView * _Nonnull)displayView;
/// Notifies that a modal view is about to be presented from the specified display view.
/// \param displayView The <code>UIView</code> instance associated with the modal presentation.
///
- (void)willPresentModalFrom:(UIView * _Nonnull)displayView;
/// Notifies the delegate that a modal view has been dismissed.
/// \param displayView The <code>UIView</code> instance associated with the dismissed modal.
///
- (void)didDismissModalFrom:(UIView * _Nonnull)displayView;
/// Requests the <code>UIViewController</code> to be used for presenting modals from the specified display view.
/// \param fromDisplayView The <code>UIView</code> instance from which the modal is to be presented.
///
- (UIViewController * _Nullable)viewControllerForModalPresentationFromDisplayView:(UIView * _Nonnull)fromDisplayView SWIFT_WARN_UNUSED_RESULT;
@end

@protocol ADVIEW_BannerViewDelegate;
@protocol ADVIEW_BannerViewVideoPlaybackDelegate;
@class NSCoder;

/// The view that will display the particular banner ad. Built for rendering type of integration.
SWIFT_CLASS_NAMED("BannerView")
@interface ADVIEW_BannerView : UIView <ADVIEW_BannerEventInteractionDelegate, DisplayViewInteractionDelegate>
/// The ad unit configuration.
@property (nonatomic, readonly, strong) AdUnitConfig * _Nonnull adUnitConfig;
/// The event handler for banner view events.
@property (nonatomic, readonly, strong) id <ADVIEW_BannerEventHandler> _Nullable eventHandler;
/// Banner-specific parameters.
@property (nonatomic, readonly, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// Video-specific parameters.
@property (nonatomic, readonly, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// The last bid response received.
@property (nonatomic, readonly, strong) BidResponse * _Nullable lastBidResponse;
/// ID of Stored Impression on the AdView server
@property (nonatomic, readonly, copy) NSString * _Nonnull configID;
/// The interval for refreshing the ad.
@property (nonatomic) NSTimeInterval refreshInterval;
/// Additional sizes for the ad.
@property (nonatomic, copy) NSArray<NSValue *> * _Nullable additionalSizes;
/// The ad format (e.g., banner, video).
@property (nonatomic, strong) ADVIEW_AdFormat * _Nonnull adFormat;
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
@property (nonatomic, weak) id <ADVIEW_BannerViewDelegate> _Nullable delegate;
@property (nonatomic, weak) id <ADVIEW_BannerViewVideoPlaybackDelegate> _Nullable videoPlaybackDelegate;
/// Initializes a new <code>BannerView</code>.
/// \param frame The frame rectangle for the view.
///
/// \param configID The configuration ID for the ad unit.
///
/// \param adSize The size of the ad.
///
/// \param eventHandler The event handler for the banner view.
///
- (nonnull instancetype)initWithFrame:(CGRect)frame configID:(NSString * _Nonnull)configID adSize:(CGSize)adSize eventHandler:(id <ADVIEW_BannerEventHandler> _Nonnull)eventHandler OBJC_DESIGNATED_INITIALIZER;
/// Convenience initializer for creating a <code>BannerView</code> with a configuration ID and event handler.
/// \param configID The configuration ID for the ad unit.
///
/// \param eventHandler The event handler for the banner view.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID eventHandler:(id <ADVIEW_BannerEventHandler> _Nonnull)eventHandler;
/// Convenience initializer for creating a <code>BannerView</code> with a frame, configuration ID, and ad size.
/// \param frame The frame rectangle for the view.
///
/// \param configID The configuration ID for the ad unit.
///
/// \param adSize The size of the ad.
///
- (nonnull instancetype)initWithFrame:(CGRect)frame configID:(NSString * _Nonnull)configID adSize:(CGSize)adSize;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
@property (nonatomic, getter=isHidden) BOOL hidden;
@property (nonatomic) CGFloat alpha;
/// Loads the ad for the banner view.
- (void)loadAd;
/// Sets the stored auction response.
/// \param storedAuction The stored auction response string.
///
- (void)setStoredAuctionResponseWithStoredAuction:(NSString * _Nonnull)storedAuction;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The  impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Stops the auto-refresh of the ad.
- (void)stopRefresh;
/// Subscribe to plugin renderer events
- (void)setPluginEventDelegate:(id <ADVIEWPluginEventDelegate> _Nonnull)pluginEventDelegate;
- (void)trackImpressionForDisplayView:(UIView * _Nonnull)forDisplayView;
- (UIViewController * _Nullable)viewControllerForModalPresentationFromDisplayView:(UIView * _Nonnull)fromDisplayView SWIFT_WARN_UNUSED_RESULT;
- (void)didLeaveAppFrom:(UIView * _Nonnull)displayView;
- (void)willPresentModalFrom:(UIView * _Nonnull)displayView;
- (void)didDismissModalFrom:(UIView * _Nonnull)displayView;
- (void)willPresentModal;
- (void)didDismissModal;
- (void)willLeaveApp;
@property (nonatomic, readonly, strong) UIViewController * _Nullable viewControllerForPresentingModal;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end


SWIFT_PROTOCOL_NAMED("DisplayViewVideoPlaybackDelegate")
@protocol ADVIEW_DisplayViewVideoPlaybackDelegate <NSObject>
- (void)videoPlaybackDidPause;
- (void)videoPlaybackDidResume;
- (void)videoPlaybackWasMuted;
- (void)videoPlaybackWasUnmuted;
- (void)videoPlaybackDidComplete;
@end


@interface ADVIEW_BannerView (SWIFT_EXTENSION(AdViewSDK)) <ADVIEW_DisplayViewVideoPlaybackDelegate>
- (void)videoPlaybackDidPause;
- (void)videoPlaybackDidResume;
- (void)videoPlaybackWasMuted;
- (void)videoPlaybackWasUnmuted;
- (void)videoPlaybackDidComplete;
@end


@interface ADVIEW_BannerView (SWIFT_EXTENSION(AdViewSDK)) <ADVIEW_AdLoadFlowControllerDelegate, ADVIEW_BannerAdLoaderDelegate>
- (void)adLoadFlowController:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController failedWithError:(NSError * _Nullable)error;
- (void)adLoadFlowControllerWillSendBidRequest:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController;
- (void)adLoadFlowControllerWillRequestPrimaryAd:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController;
- (BOOL)adLoadFlowControllerShouldContinue:(ADVIEW_AdLoadFlowController * _Nonnull)adLoadFlowController SWIFT_WARN_UNUSED_RESULT;
- (void)bannerAdLoader:(ADVIEW_BannerAdLoader * _Nonnull)bannerAdLoader loadedAdView:(UIView * _Nonnull)adView adSize:(CGSize)adSize;
@end


/// A protocol for handling events related to banner ads in the PBM SDK.
/// This protocol defines methods and properties for managing events associated with banner ads, including loading events, user interactions, and ad sizes. Implementing this protocol allows for custom handling of these events within the PBM SDK.
SWIFT_PROTOCOL_NAMED("BannerViewDelegate")
@protocol ADVIEW_BannerViewDelegate <NSObject>
/// Asks the delegate for a view controller instance to use for presenting modal views
/// as a result of user interaction on an ad. Usual implementation may simply return self,
/// if it is view controller class.
- (UIViewController * _Nullable)bannerViewPresentationController SWIFT_WARN_UNUSED_RESULT;
@optional
/// Notifies the delegate that an ad has been successfully loaded and rendered.
/// \param bannerView The BannerView instance sending the message.
///
- (void)bannerView:(ADVIEW_BannerView * _Nonnull)bannerView didReceiveAdWithAdSize:(CGSize)adSize;
/// Called when the rendering creative reports it has displayed (<code>DisplayView.adDidDisplay</code>), immediately before SDK impression handling (<code>trackImpression</code>).
/// This is <em>not</em> a separate MRC viewability certification; it mirrors the internal “ad did display” moment.
- (void)bannerViewAdDidDisplay:(ADVIEW_BannerView * _Nonnull)bannerView;
/// Notifies the delegate of an error encountered while loading or rendering an ad.
/// \param bannerView The BannerView instance sending the message.
///
/// \param error The error encountered while attempting to receive or render the
///
- (void)bannerView:(ADVIEW_BannerView * _Nonnull)bannerView didFailToReceiveAdWith:(NSError * _Nonnull)error;
/// Notifies the delegate whenever current app goes in the background due to user click.
/// \param bannerView The BannerView instance sending the message.
///
- (void)bannerViewWillLeaveApplication:(ADVIEW_BannerView * _Nonnull)bannerView;
/// Notifies delegate that the banner view will launch a modal
/// on top of the current view controller, as a result of user interaction.
/// \param bannerView The BannerView instance sending the message. 
///
- (void)bannerViewWillPresentModal:(ADVIEW_BannerView * _Nonnull)bannerView;
/// Notifies delegate that the banner view has dismissed the modal on top of
/// the current view controller.
/// \param bannerView The BannerView instance sending the message.
///
- (void)bannerViewDidDismissModal:(ADVIEW_BannerView * _Nonnull)bannerView;
@end


/// A protocol for handling events related to banner video playback events.
SWIFT_PROTOCOL_NAMED("BannerViewVideoPlaybackDelegate")
@protocol ADVIEW_BannerViewVideoPlaybackDelegate <NSObject>
/// Notifies the delegate that banner video ad has been paused.
- (void)videoPlaybackDidPause:(ADVIEW_BannerView * _Nonnull)banner;
/// Notifies the delegate that banner video ad has been resumed.
- (void)videoPlaybackDidResume:(ADVIEW_BannerView * _Nonnull)banner;
/// Notifies the delegate that banner video ad has been muted.
- (void)videoPlaybackWasMuted:(ADVIEW_BannerView * _Nonnull)banner;
/// Notifies the delegate that banner video ad has been unmuted.
- (void)videoPlaybackWasUnmuted:(ADVIEW_BannerView * _Nonnull)banner;
/// Notifies the delegate that banner video ad has completed.
- (void)videoPlaybackDidComplete:(ADVIEW_BannerView * _Nonnull)banner;
@end

@class ADVIEW_ORTBBidExtSkadn;
@class ORTBAdConfiguration;
@class ORTBRewardedConfiguration;
@class ORTBExtPrebidEvents;

SWIFT_CLASS("_TtC9AdViewSDK3Bid")
@interface Bid : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull KEY_RENDERER_NAME;)
+ (NSString * _Nonnull)KEY_RENDERER_NAME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull KEY_RENDERER_VERSION;)
+ (NSString * _Nonnull)KEY_RENDERER_VERSION SWIFT_WARN_UNUSED_RESULT;
/// Bid price expressed as CPM although the actual transaction is for a unit impression only.
/// Note that while the type indicates float, integer math is highly recommended
/// when handling currencies (e.g., BigDecimal in Java).
@property (nonatomic, readonly) float price;
/// OpenRTB <code>bid.id</code>（买方生成的 bid 标识，用于去重/展示后是否复用同一物料等）。
@property (nonatomic, readonly, copy) NSString * _Nullable bidId;
/// Billing notice URL called by the exchange when a winning bid
/// becomes billable based on exchange-specific business policy
/// (e.g., typically delivered, viewed, etc.).
@property (nonatomic, readonly, copy) NSString * _Nullable burl;
/// Win notice URL called by the exchange if the bid wins (not necessarily indicative of a delivered,
/// viewed, or billable ad); optional means of serving ad markup.
/// Substitution macros (Section 4.4) may be included in both the URL and optionally returned markup.
@property (nonatomic, readonly, copy) NSString * _Nullable nurl;
/// Optional means of conveying ad markup in case the bid wins; supersedes the win notice
/// if markup is included in both.
/// Substitution macros (Section 4.4) may be included.
@property (nonatomic, readonly, copy) NSString * _Nullable adm;
/// Ad size
@property (nonatomic, readonly) CGSize size;
/// Targeting information that needs to be passed to the ad server SDK.
@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSString *> * _Nullable targetingInfo;
/// Targeting information that needs to be passed to the ad server SDK.
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable meta;
/// SKAdNetwork parameters about an App Store product.
/// Used in the StoreKit
@property (nonatomic, readonly, strong) ADVIEW_ORTBBidExtSkadn * _Nullable skadn;
/// ad format
@property (nonatomic, readonly, strong) ADVIEW_AdFormat * _Nullable adFormat;
/// video ad configuration
@property (nonatomic, readonly, strong) ORTBAdConfiguration * _Nullable videoAdConfiguration;
/// Preffered plugin renderer name
@property (nonatomic, readonly, copy) NSString * _Nullable pluginRendererName;
/// Preffered plugin renderer version
@property (nonatomic, readonly, copy) NSString * _Nullable pluginRendererVersion;
@property (nonatomic, readonly, strong) ORTBRewardedConfiguration * _Nullable rewardedConfig;
/// Returns YES if this bid is intented for display.
@property (nonatomic, readonly) BOOL isWinning;
@property (nonatomic, readonly, strong) ORTBExtPrebidEvents * _Nullable events;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end



@interface Bid (SWIFT_EXTENSION(AdViewSDK))
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull impressionTrackingURLs;
@end


/// Contains information about bid.
SWIFT_CLASS_NAMED("BidInfo")
@interface ADVIEW_BidInfo : NSObject
/// Key to get AdView win event from <code>events</code>
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull EVENT_WIN;)
+ (NSString * _Nonnull)EVENT_WIN SWIFT_WARN_UNUSED_RESULT;
/// Key to get AdView imp event from <code>events</code>
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull EVENT_IMP;)
+ (NSString * _Nonnull)EVENT_IMP SWIFT_WARN_UNUSED_RESULT;
/// The result code of the bid request
@property (nonatomic, readonly) enum ADVIEW_ResultCode resultCode;
/// Targeting keywords associated with the bid
@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSString *> * _Nullable targetingKeywords;
/// The cache ID for native ads
@property (nonatomic, readonly, copy) NSString * _Nullable nativeAdCacheId;
/// Events related to the bid
@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSString *> * _Nonnull events;
/// The winning bid, when fetch demand succeeded and a bid was returned.
@property (nonatomic, readonly, strong) Bid * _Nullable winningBid;
/// Retrieves the expiration time of the bid as an <code>NSNumber</code>.
- (NSNumber * _Nullable)getExp SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_PROTOCOL_NAMED("BidRequesterProtocol")
@protocol ADVIEW_BidRequesterProtocol
- (void)requestBidsWithCompletion:(void (^ _Nonnull)(BidResponse * _Nullable, NSError * _Nullable))completion;
@end

@class ADVIEW_Targeting;

SWIFT_PROTOCOL_NAMED("BidRequester")
@protocol ADVIEW_BidRequester <ADVIEW_BidRequesterProtocol>
- (nonnull instancetype)initWithConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection sdkConfiguration:(AdView * _Nonnull)sdkConfiguration targeting:(ADVIEW_Targeting * _Nonnull)targeting adUnitConfiguration:(AdUnitConfig * _Nonnull)adUnitConfiguration;
@end


@class ORTBBidResponseExt;

SWIFT_CLASS("_TtC9AdViewSDK11BidResponse")
@interface BidResponse : NSObject
@property (nonatomic, copy) NSString * _Nullable adUnitId;
@property (nonatomic, readonly, copy) NSArray<Bid *> * _Nullable allBids;
@property (nonatomic, readonly, strong) Bid * _Nullable winningBid;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSString *> * _Nullable targetingInfo;
@property (nonatomic, readonly, strong) NSNumber * _Nullable tmaxrequest;
@property (nonatomic, readonly, strong) ORTBBidResponseExt * _Nullable ext;
- (nonnull instancetype)initWithAdUnitId:(NSString * _Nullable)adUnitId targetingInfo:(NSDictionary<NSString *, NSString *> * _Nullable)targetingInfo;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary;
- (void)setTargetingInfoWith:(NSDictionary<NSString *, NSString *> * _Nonnull)newValue;
- (void)addTargetingInfoValueWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end




SWIFT_CLASS_NAMED("CacheManager")
@interface ADVIEW_CacheManager : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSTimeInterval cacheManagerExpireInterval;)
+ (NSTimeInterval)cacheManagerExpireInterval SWIFT_WARN_UNUSED_RESULT;
/// The class is created as a singleton object & used
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CacheManager * _Nonnull shared;)
+ (ADVIEW_CacheManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
/// The initializer that needs to be created only once
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (NSString * _Nullable)saveWithContent:(NSString * _Nonnull)content expireInterval:(NSTimeInterval)expireInterval SWIFT_WARN_UNUSED_RESULT;
- (BOOL)isValidWithCacheId:(NSString * _Nonnull)cacheId SWIFT_WARN_UNUSED_RESULT;
- (NSString * _Nullable)getWithCacheId:(NSString * _Nonnull)cacheId SWIFT_WARN_UNUSED_RESULT;
@end

typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_ClickbrowserType, "ClickbrowserType", open) {
  ADVIEW_ClickbrowserTypeEmbedded = 0,
  ADVIEW_ClickbrowserTypeNative = 1,
};


SWIFT_CLASS_NAMED("SingleContainerInt")
@interface ADVIEW_SingleContainerInt : NSObject
@property (nonatomic, readonly) NSInteger value;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) NSUInteger hash;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// Native context subtype asset.
SWIFT_CLASS_NAMED("ContextSubType")
@interface ADVIEW_ContextSubType : ADVIEW_SingleContainerInt
/// Represents a general context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull General;)
+ (ADVIEW_ContextSubType * _Nonnull)General SWIFT_WARN_UNUSED_RESULT;
/// Represents an article context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull Article;)
+ (ADVIEW_ContextSubType * _Nonnull)Article SWIFT_WARN_UNUSED_RESULT;
/// Represents a video context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull Video;)
+ (ADVIEW_ContextSubType * _Nonnull)Video SWIFT_WARN_UNUSED_RESULT;
/// Represents an audio context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull Audio;)
+ (ADVIEW_ContextSubType * _Nonnull)Audio SWIFT_WARN_UNUSED_RESULT;
/// Represents an image context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull Image;)
+ (ADVIEW_ContextSubType * _Nonnull)Image SWIFT_WARN_UNUSED_RESULT;
/// Represents a user-generated content context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull UserGenerated;)
+ (ADVIEW_ContextSubType * _Nonnull)UserGenerated SWIFT_WARN_UNUSED_RESULT;
/// Represents a social media context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull Social;)
+ (ADVIEW_ContextSubType * _Nonnull)Social SWIFT_WARN_UNUSED_RESULT;
/// Represents an email context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull email;)
+ (ADVIEW_ContextSubType * _Nonnull)email SWIFT_WARN_UNUSED_RESULT;
/// Represents a chat or instant messaging context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull chatIM;)
+ (ADVIEW_ContextSubType * _Nonnull)chatIM SWIFT_WARN_UNUSED_RESULT;
/// Represents a product selling context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull SellingProduct;)
+ (ADVIEW_ContextSubType * _Nonnull)SellingProduct SWIFT_WARN_UNUSED_RESULT;
/// Represents an App Store context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull AppStore;)
+ (ADVIEW_ContextSubType * _Nonnull)AppStore SWIFT_WARN_UNUSED_RESULT;
/// Represents a review site context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull ReviewSite;)
+ (ADVIEW_ContextSubType * _Nonnull)ReviewSite SWIFT_WARN_UNUSED_RESULT;
/// Represents a custom context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextSubType * _Nonnull Custom;)
+ (ADVIEW_ContextSubType * _Nonnull)Custom SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// Native context type asset.
SWIFT_CLASS_NAMED("ContextType")
@interface ADVIEW_ContextType : ADVIEW_SingleContainerInt
/// Represents a content context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextType * _Nonnull Content;)
+ (ADVIEW_ContextType * _Nonnull)Content SWIFT_WARN_UNUSED_RESULT;
/// Represents a social media context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextType * _Nonnull Social;)
+ (ADVIEW_ContextType * _Nonnull)Social SWIFT_WARN_UNUSED_RESULT;
/// Represents a product context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextType * _Nonnull Product;)
+ (ADVIEW_ContextType * _Nonnull)Product SWIFT_WARN_UNUSED_RESULT;
/// Represents a custom context type.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ContextType * _Nonnull Custom;)
+ (ADVIEW_ContextType * _Nonnull)Custom SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("CreativeModel")
@interface ADVIEW_CreativeModel : NSObject
@property (nonatomic, strong) ADVIEW_AdConfiguration * _Nullable adConfiguration;
@property (nonatomic, strong) ADVIEW_AdModelEventTracker * _Nullable eventTracker;
@property (nonatomic, strong) NSNumber * _Nullable displayDurationInSeconds;
@property (nonatomic, strong) NSNumber * _Nullable skipOffset;
@property (nonatomic) NSInteger width;
@property (nonatomic) NSInteger height;
@property (nonatomic, copy) NSString * _Nullable html;
@property (nonatomic, copy) NSString * _Nullable targetURL;
@property (nonatomic, copy) NSString * _Nullable videoFileURL;
@property (nonatomic, copy) NSString * _Nullable revenue;
@property (nonatomic, strong) ADVIEW_VideoVerificationParameters * _Nullable verificationParameters;
@property (nonatomic, copy) NSDictionary<NSString *, NSArray<NSString *> *> * _Nonnull trackingURLs;
@property (nonatomic, copy) NSString * _Nullable adTrackingTemplateURL;
@property (nonatomic, strong) ADVIEW_AdDetails * _Nullable adDetails;
@property (nonatomic, copy) NSString * _Nullable clickThroughURL;
@property (nonatomic) BOOL isCompanionAd;
@property (nonatomic) BOOL hasCompanionAd;
@property (nonatomic) BOOL userHasEarnedReward;
@property (nonatomic) BOOL userPostRewardEventSent;
@property (nonatomic, strong) NSNumber * _Nullable rewardTime;
@property (nonatomic, strong) NSNumber * _Nullable postRewardTime;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithAdConfiguration:(ADVIEW_AdConfiguration * _Nonnull)adConfiguration OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("CreativeResolutionDelegate")
@protocol ADVIEW_CreativeResolutionDelegate
- (void)creativeReady:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)creativeFailed:(NSError * _Nonnull)error;
@end



SWIFT_PROTOCOL_NAMED("CreativeViewabilityTracker")
@protocol ADVIEW_CreativeViewabilityTracker <NSObject>
- (nonnull instancetype)initWithView:(UIView * _Nonnull)view pollingTimeInterval:(NSTimeInterval)pollingTimeInterval onExposureChange:(void (^ _Nonnull)(id <ADVIEW_CreativeViewabilityTracker> _Nonnull, id <ADVIEW_ViewExposure> _Nonnull))onExposureChange;
- (nonnull instancetype)initWithCreative:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)start;
- (void)stop;
/// Checks the current exposure.
/// The onExposureChange will be called either exposure changed or isForce is true
- (void)checkExposureWithForce:(BOOL)force;
@end


SWIFT_CLASS("_TtC9AdViewSDK18CustomModelObjects")
@interface CustomModelObjects : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Facade and orchestrator for the third-party id (deh) module.
/// The module is disabled by default (§1). It only works once the integrator
/// enables it and uploads a plaintext email/phone (hashed inside the SDK).
/// All resolve timing, renewal, hash comparison, opt-out reporting and eids
/// injection happen internally.
SWIFT_CLASS_NAMED("DEHManager")
@interface ADVIEW_DEHManager : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_DEHManager * _Nonnull shared;)
+ (ADVIEW_DEHManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// Enables/disables the module (corresponds to the <code>enabledeh</code> config).
- (void)setEnabled:(BOOL)enabled;
@property (nonatomic, readonly) BOOL isEnabled;
/// Uploads plaintext identity (§2). SDK normalizes and SHA-256-hashes before resolve.
/// Either argument may be <code>nil</code>; at least one non-empty value is required to resolve.
- (void)setIdentityWithEmail:(NSString * _Nullable)email phone:(NSString * _Nullable)phone;
/// Current cached id for the ad layer to read (§5.1). Never triggers network.
@property (nonatomic, readonly, copy) NSString * _Nullable currentId;
@end

/// Enum representing different types of native data assets.
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_DataAsset, "DataAsset", open) {
  ADVIEW_DataAssetSponsored = 1,
  ADVIEW_DataAssetDescription = 2,
  ADVIEW_DataAssetRating = 3,
  ADVIEW_DataAssetLikes = 4,
  ADVIEW_DataAssetDownloads = 5,
  ADVIEW_DataAssetPrice = 6,
  ADVIEW_DataAssetSaleprice = 7,
  ADVIEW_DataAssetPhone = 8,
  ADVIEW_DataAssetAddress = 9,
  ADVIEW_DataAssetDescription2 = 10,
  ADVIEW_DataAssetDisplayurl = 11,
  ADVIEW_DataAssetCtatext = 12,
/// Custom type for user-defined data assets
  ADVIEW_DataAssetCustom = 13,
};

@class NSDate;

SWIFT_CLASS_NAMED("DateFormatService")
@interface ADVIEW_DateFormatService : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_DateFormatService * _Nonnull shared;)
+ (ADVIEW_DateFormatService * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (NSDate * _Nullable)formatISO8601For:(NSString * _Nullable)strDate SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_PROTOCOL_NAMED("PluginEventDelegate")
@protocol ADVIEWPluginEventDelegate <NSObject>
- (NSString * _Nonnull)getPluginName SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS_NAMED("DefaultPluginEventDelegate")
@interface ADVIEWDefaultPluginEventDelegate : NSObject <ADVIEWPluginEventDelegate>
- (NSString * _Nonnull)getPluginName SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("DeferredModalState")
@protocol ADVIEW_DeferredModalState
@property (nonatomic, readonly, strong) id <ADVIEW_ModalState> _Nonnull modalState;
- (nonnull instancetype)initWithModalState:(id <ADVIEW_ModalState> _Nonnull)modalState fromRootViewController:(UIViewController * _Nonnull)fromRootViewController animated:(BOOL)animated shouldReplace:(BOOL)shouldReplace preparationBlock:(void (^ _Nonnull)(void (^ _Nonnull)(BOOL)))preparationBlock onWillBePushed:(void (^ _Nullable)(void))onWillBePushed onPushStarted:(void (^ _Nullable)(void (^ _Nonnull)(void)))onPushStarted onPushCompleted:(void (^ _Nullable)(void))onPushCompleted onPushCancelled:(void (^ _Nullable)(void))onPushCancelled;
- (void)prepareAndPushWithModalManager:(ADVIEW_ModalManager * _Nonnull)modalManager discardBlock:(void (^ _Nonnull)(void))discardBlock;
@end


SWIFT_CLASS_NAMED("DemandResponseInfo")
@interface ADVIEW_DemandResponseInfo : NSObject
@property (nonatomic, readonly) enum ADVIEW_ResultCode fetchDemandResult;
@property (nonatomic, readonly, strong) Bid * _Nullable bid;
- (nonnull instancetype)initWithFetchDemandResult:(enum ADVIEW_ResultCode)fetchDemandResult bid:(Bid * _Nullable)bid configId:(NSString * _Nullable)configId winNotifierBlock:(void (^ _Nonnull)(Bid * _Nonnull, void (^ _Nonnull)(NSString * _Nullable)))winNotifierBlock bidResponse:(BidResponse * _Nullable)bidResponse OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class NSLocale;

SWIFT_CLASS_NAMED("DeviceAccessManager")
@interface ADVIEW_DeviceAccessManager : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull deviceMake;
@property (nonatomic, readonly, copy) NSString * _Nonnull deviceModel;
@property (nonatomic, readonly, copy) NSString * _Nonnull identifierForVendor;
@property (nonatomic, readonly, copy) NSString * _Nonnull deviceOS;
@property (nonatomic, readonly, copy) NSString * _Nonnull OSVersion;
@property (nonatomic, readonly, copy) NSString * _Nullable platformString;
/// OpenRTB device.devicetype (AdCOM Device Types).
/// iPhone -> 4 (Phone), iPad -> 5 (Tablet), Apple TV -> 3 (Connected TV).
@property (nonatomic, readonly, strong) NSNumber * _Nonnull deviceType;
@property (nonatomic, readonly, copy) NSString * _Nullable userLangaugeCode;
@property (nonatomic, readonly, copy) NSLocale * _Nonnull locale;
@property (nonatomic, weak) UIViewController * _Nullable rootViewController;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER SWIFT_UNAVAILABLE_MSG("Use initWithRootViewController or initWithRootViewController(_:locale:) instead.");
- (nonnull instancetype)initWithRootViewController:(UIViewController * _Nullable)rootViewController OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithRootViewController:(UIViewController * _Nullable)rootViewController locale:(NSLocale * _Nonnull)locale OBJC_DESIGNATED_INITIALIZER;
- (NSString * _Nonnull)advertisingIdentifier SWIFT_WARN_UNUSED_RESULT;
- (BOOL)advertisingTrackingEnabled SWIFT_WARN_UNUSED_RESULT;
- (NSUInteger)appTrackingTransparencyStatus SWIFT_WARN_UNUSED_RESULT;
- (CGSize)screenSize SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_PROTOCOL_NAMED("ModalManagerDelegate")
@protocol ADVIEW_ModalManagerDelegate
- (void)modalManagerWillPresentModal;
- (void)modalManagerDidDismissModal;
@end


SWIFT_CLASS_NAMED("DisplayView")
@interface ADVIEW_DisplayView : UIView <ADVIEW_AdViewManagerDelegate, ADVIEW_PrebidMobileDisplayViewProtocol, ADVIEW_ModalManagerDelegate>
@property (nonatomic, weak) id <DisplayViewLoadingDelegate> _Nullable loadingDelegate;
@property (nonatomic, weak) id <DisplayViewInteractionDelegate> _Nullable interactionDelegate;
@property (nonatomic, readonly) BOOL isCreativeOpened;
@property (nonatomic, strong) ADVIEW_InterstitialDisplayProperties * _Nonnull interstitialDisplayProperties;
- (nonnull instancetype)initWithFrame:(CGRect)frame bid:(Bid * _Nonnull)bid configId:(NSString * _Nonnull)configId;
- (nonnull instancetype)initWithFrame:(CGRect)frame bid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, getter=isHidden) BOOL hidden;
@property (nonatomic) CGFloat alpha;
- (void)layoutSubviews;
- (void)didMoveToWindow;
- (void)loadAd;
- (UIViewController * _Nullable)viewControllerForModalPresentation SWIFT_WARN_UNUSED_RESULT;
- (void)adLoaded:(ADVIEW_AdDetails * _Nonnull)adDetails;
- (void)failedToLoad:(NSError * _Nonnull)error;
- (void)adDidComplete;
- (void)adDidDisplay;
- (void)adWasClicked;
- (void)adViewWasClicked;
- (void)adDidExpand;
- (void)adDidCollapse;
- (void)adDidLeaveApp;
- (void)adClickthroughDidClose;
- (void)adDidClose;
@property (nonatomic, readonly, strong) UIView * _Nonnull displayView;
- (void)modalManagerWillPresentModal;
- (void)modalManagerDidDismissModal;
/// When a parent (e.g. <code>BannerView</code>) toggles <code>isHidden</code>/<code>alpha</code>, UIKit does not change the child’s stored <code>isHidden</code>; callers forward visibility changes via this hook.
- (void)reevaluatePrebidHiddenEventIfNeeded;
- (void)videoAdWasMuted;
- (void)videoAdWasUnmuted;
- (void)videoAdDidFinish;
- (void)videoAdDidPause;
- (void)videoAdDidResume;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end




/// Hosts a <code>DisplayView</code> for AdMob / AppLovin MAX mediation. Forwards <code>isHidden</code> / <code>alpha</code> changes so <code>DisplayView</code> can fire Prebid hidden events when the mediation container is toggled.
SWIFT_CLASS_NAMED("DisplayViewMediationSlotContainer")
@interface ADVIEW_DisplayViewMediationSlotContainer : UIView
@property (nonatomic, readonly, strong) ADVIEW_DisplayView * _Nonnull embeddedDisplayView;
- (nonnull instancetype)initWithDisplayView:(ADVIEW_DisplayView * _Nonnull)displayView OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, getter=isHidden) BOOL hidden;
@property (nonatomic) CGFloat alpha;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end



/// This class is a proxy container for event trackers.
/// You can add (and remove) any quantity of trackers.
/// Each tracker must correspond to EventTrackerProtocol the EventTracker Protocol.
/// EventManager implements EventTrackerProtocol.
/// It broadcasts protocol calls to the all registered trackers.
SWIFT_CLASS_NAMED("EventManager")
@interface ADVIEW_EventManager : NSObject <ADVIEW_EventTrackerProtocol>
- (void)registerTracker:(id <ADVIEW_EventTrackerProtocol> _Nonnull)tracker;
- (void)unregisterTracker:(id <ADVIEW_EventTrackerProtocol> _Nonnull)tracker;
- (void)unregisterAllTrackers;
- (void)trackEvent:(enum ADVIEW_TrackingEvent)event;
- (void)trackVideoAdLoaded:(ADVIEW_VideoVerificationParameters * _Nonnull)parameters;
- (void)trackStartVideoWithDuration:(NSTimeInterval)duration volume:(double)volume;
- (void)trackVolumeChanged:(double)playerVolume deviceVolume:(double)deviceVolume;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end



/// Native event tracking type.
SWIFT_CLASS_NAMED("EventTracking")
@interface ADVIEW_EventTracking : ADVIEW_SingleContainerInt
/// Represents image-based event tracking.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventTracking * _Nonnull Image;)
+ (ADVIEW_EventTracking * _Nonnull)Image SWIFT_WARN_UNUSED_RESULT;
/// Represents JavaScript-based event tracking.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventTracking * _Nonnull js;)
+ (ADVIEW_EventTracking * _Nonnull)js SWIFT_WARN_UNUSED_RESULT;
/// Represents a custom event tracking method.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventTracking * _Nonnull Custom;)
+ (ADVIEW_EventTracking * _Nonnull)Custom SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// Class representing different event types.
SWIFT_CLASS_NAMED("EventType")
@interface ADVIEW_EventType : ADVIEW_SingleContainerInt
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventType * _Nonnull Impression;)
+ (ADVIEW_EventType * _Nonnull)Impression SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventType * _Nonnull ViewableImpression50;)
+ (ADVIEW_EventType * _Nonnull)ViewableImpression50 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventType * _Nonnull ViewableImpression100;)
+ (ADVIEW_EventType * _Nonnull)ViewableImpression100 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventType * _Nonnull ViewableVideoImpression50;)
+ (ADVIEW_EventType * _Nonnull)ViewableVideoImpression50 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_EventType * _Nonnull Custom;)
+ (ADVIEW_EventType * _Nonnull)Custom SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end

@class ADVIEW_UserUniqueID;

/// Defines the User Id Object from an External Thrid Party Source
/// https://github.com/InteractiveAdvertisingBureau/openrtb/blob/main/extensions/2.x_official_extensions/eids.md
SWIFT_CLASS_NAMED("ExternalUserId")
@interface ADVIEW_ExternalUserId : NSObject
/// The source of the external user ID.
@property (nonatomic, copy) NSString * _Nonnull source;
/// Array of extended ID UID objects from the given source.
@property (nonatomic, copy) NSArray<ADVIEW_UserUniqueID *> * _Nonnull uids;
/// Additional attributes related to the external user ID, represented as an optional dictionary.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a new <code>ExternalUserId</code> object.
/// \param source The source of the external user ID (e.g., a third-party provider).
///
/// \param uids A list of <code>UserUniqueID</code> objects representing the user’s unique identifiers.
///
/// \param ext Optional dictionary for additional attributes related to the external user ID. Default is <code>nil</code>.
///
- (nonnull instancetype)initWithSource:(NSString * _Nonnull)source uids:(NSArray<ADVIEW_UserUniqueID *> * _Nonnull)uids ext:(NSDictionary<NSString *, id> * _Nullable)ext OBJC_DESIGNATED_INITIALIZER;
/// Converts the <code>ExternalUserId</code> instance to a JSON dictionary.
- (NSDictionary<NSString *, id> * _Nonnull)toJSONDictionary SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@protocol ADVIEW_WinNotifier;
@protocol ADVIEW_TransactionFactory;
@protocol ADVIEW_OMSDKVersionProvider;

SWIFT_CLASS_NAMED("Factory")
@interface ADVIEW_Factory : NSObject
+ (id <ADVIEW_BidRequester> _Nonnull)createBidRequesterWithConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection sdkConfiguration:(AdView * _Nonnull)sdkConfiguration targeting:(ADVIEW_Targeting * _Nonnull)targeting adUnitConfiguration:(AdUnitConfig * _Nonnull)adUnitConfiguration SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_WinNotifier> _Nonnull WinNotifierType;)
+ (Class <ADVIEW_WinNotifier> _Nonnull)WinNotifierType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_WinNotifier> _Nonnull)createWinNotifier SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_AdViewManager> _Nonnull AdViewManagerType;)
+ (Class <ADVIEW_AdViewManager> _Nonnull)AdViewManagerType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_AdViewManager> _Nonnull)createAdViewManagerWithConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection modalManagerDelegate:(id <ADVIEW_ModalManagerDelegate> _Nullable)modalManagerDelegate SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_Transaction> _Nonnull TransactionType;)
+ (Class <ADVIEW_Transaction> _Nonnull)TransactionType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_Transaction> _Nonnull)createTransactionWithServerConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)serverConnection adConfiguration:(ADVIEW_AdConfiguration * _Nonnull)adConfiguration models:(NSArray<ADVIEW_CreativeModel *> * _Nonnull)models SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_ViewExposure> _Nonnull ViewExposureType;)
+ (Class <ADVIEW_ViewExposure> _Nonnull)ViewExposureType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_ViewExposure> _Nonnull)createViewExposureWithExposureFactor:(float)exposureFactor visibleRectangle:(CGRect)visibleRectangle occlusionRectangles:(NSArray<NSValue *> * _Nullable)occlusionRectangles SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_ModalState> _Nonnull ModalStateType;)
+ (Class <ADVIEW_ModalState> _Nonnull)ModalStateType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_ModalState> _Nonnull)createModalStateWithView:(UIView * _Nonnull)view adConfiguration:(ADVIEW_AdConfiguration * _Nullable)adConfiguration displayProperties:(ADVIEW_InterstitialDisplayProperties * _Nullable)displayProperties onStatePopFinished:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))onStatePopFinished onStateHasLeftApp:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))onStateHasLeftApp nextOnStatePopFinished:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))nextOnStatePopFinished nextOnStateHasLeftApp:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))nextOnStateHasLeftApp onModalPushedBlock:(void (^ _Nullable)(void))onModalPushedBlock SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_CreativeViewabilityTracker> _Nonnull CreativeViewabilityTrackerType;)
+ (Class <ADVIEW_CreativeViewabilityTracker> _Nonnull)CreativeViewabilityTrackerType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_CreativeViewabilityTracker> _Nonnull)createCreativeViewabilityTrackerWithView:(UIView * _Nonnull)view pollingTimeInterval:(NSTimeInterval)pollingTimeInterval onExposureChange:(void (^ _Nonnull)(id <ADVIEW_CreativeViewabilityTracker> _Nonnull, id <ADVIEW_ViewExposure> _Nonnull))onExposureChange SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_CreativeViewabilityTracker> _Nonnull)createCreativeViewabilityTrackerWithCreative:(id <ADVIEW_AbstractCreative> _Nonnull)creative SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_TransactionFactory> _Nonnull TransactionFactoryType;)
+ (Class <ADVIEW_TransactionFactory> _Nonnull)TransactionFactoryType SWIFT_WARN_UNUSED_RESULT;
+ (id <ADVIEW_TransactionFactory> _Nonnull)createTransactionFactoryWithBid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration connection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection callback:(void (^ _Nonnull)(id <ADVIEW_Transaction> _Nullable, NSError * _Nullable))callback SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class <ADVIEW_OMSDKVersionProvider> _Nonnull OMSDKVersionProviderType;)
+ (Class <ADVIEW_OMSDKVersionProvider> _Nonnull)OMSDKVersionProviderType SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSURLAuthenticationChallenge;
@class NSURLCredential;

SWIFT_CLASS("_TtC9AdViewSDK9Functions")
@interface Functions : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+ (void)checkCertificateChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler;
@end


SWIFT_CLASS_NAMED("HiddenWebViewManager")
@interface ADVIEW_HiddenWebViewManager : NSObject
- (nonnull instancetype)initWithFrame:(CGRect)frame landingPageString:(NSURL * _Nonnull)landingPageString OBJC_DESIGNATED_INITIALIZER;
- (void)openHiddenWebView;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// A singleton class that manages the AdView server URL, including a custom URL.
SWIFT_CLASS_NAMED("Host")
@interface ADVIEW_Host : NSObject
/// The class is created as a singleton object & used
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Host * _Nonnull shared;)
+ (ADVIEW_Host * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (BOOL)setHostURL:(NSString * _Nullable)urlString nonTrackingURLString:(NSString * _Nullable)nonTrackingURLString error:(NSError * _Nullable * _Nullable)error;
- (NSString * _Nullable)getHostURLAndReturnError:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
/// This function verifies if the AdView server URL is in the url format
- (BOOL)verifyUrlWithUrlString:(NSString * _Nullable)urlString SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS_NAMED("IMAAdSlotSize")
@interface ADVIEW_IMAAdSlotSize : ADVIEW_SingleContainerInt
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_IMAAdSlotSize * _Nonnull Size400x300;)
+ (ADVIEW_IMAAdSlotSize * _Nonnull)Size400x300 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_IMAAdSlotSize * _Nonnull Size640x480;)
+ (ADVIEW_IMAAdSlotSize * _Nonnull)Size640x480 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_IMAAdSlotSize * _Nonnull Size320x480;)
+ (ADVIEW_IMAAdSlotSize * _Nonnull)Size320x480 SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("IMAUtils")
@interface ADVIEW_IMAUtils : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_IMAUtils * _Nonnull shared;)
+ (ADVIEW_IMAUtils * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (NSString * _Nullable)generateInstreamUriForGAMWithAdUnitID:(NSString * _Nonnull)adUnitID adSlotSizes:(NSArray<ADVIEW_IMAAdSlotSize *> * _Nonnull)adSlotSizes customKeywords:(NSDictionary<NSString *, NSString *> * _Nullable)customKeywords error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
@end


/// Native image asset type.
SWIFT_CLASS_NAMED("ImageAsset")
@interface ADVIEW_ImageAsset : ADVIEW_SingleContainerInt
/// Represents an icon image asset.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ImageAsset * _Nonnull Icon;)
+ (ADVIEW_ImageAsset * _Nonnull)Icon SWIFT_WARN_UNUSED_RESULT;
/// Represents the main image asset.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ImageAsset * _Nonnull Main;)
+ (ADVIEW_ImageAsset * _Nonnull)Main SWIFT_WARN_UNUSED_RESULT;
/// Represents a custom image asset.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ImageAsset * _Nonnull Custom;)
+ (ADVIEW_ImageAsset * _Nonnull)Custom SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("InterstitialAd")
@protocol ADVIEW_InterstitialAd <ADVIEW_PrimaryAdRequesterProtocol>
/// @abstract Return whether an interstitial is ready for display
@property (nonatomic, readonly) BOOL isReady;
/// @abstract PBM SDK calls this method to show the interstitial ad from the ad server SDK
/// @param controller view controller to be used for presenting the interstitial ad
- (void)showFromViewController:(UIViewController * _Nullable)viewController;
@optional
/// @abstract Called by PBM SDK to notify primary ad server.
- (void)trackImpression;
@end

@class ADVIEW_InterstitialRenderingAdUnit;

/// Protocol for interaction with the InterstitialAdUnit .
/// All messages will be invoked on the main thread.
SWIFT_PROTOCOL_NAMED("InterstitialAdUnitDelegate")
@protocol ADVIEW_InterstitialAdUnitDelegate <NSObject>
@optional
/// Called when an ad is loaded and ready for display
- (void)interstitialDidReceiveAd:(ADVIEW_InterstitialRenderingAdUnit * _Nonnull)interstitial;
/// Called when the load process fails to produce a viable ad
- (void)interstitial:(ADVIEW_InterstitialRenderingAdUnit * _Nonnull)interstitial didFailToReceiveAdWithError:(NSError * _Nullable)error;
/// Called when the interstitial view will be launched,  as a result of show() method.
- (void)interstitialWillPresentAd:(ADVIEW_InterstitialRenderingAdUnit * _Nonnull)interstitial;
/// Called when the interstitial is dismissed by the user
- (void)interstitialDidDismissAd:(ADVIEW_InterstitialRenderingAdUnit * _Nonnull)interstitial;
/// Called when an ad causes the sdk to leave the app
- (void)interstitialWillLeaveApplication:(ADVIEW_InterstitialRenderingAdUnit * _Nonnull)interstitial;
/// Called when user clicked the ad
- (void)interstitialDidClickAd:(ADVIEW_InterstitialRenderingAdUnit * _Nonnull)interstitial;
@end


SWIFT_CLASS_NAMED("InterstitialController")
@interface ADVIEW_InterstitialController : NSObject <AdViewMobileInterstitialControllerProtocol>
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// Sets an ad unit as a rewarded
@property (nonatomic) BOOL isRewarded;
@property (nonatomic, strong) ADVIEW_VideoControlsConfiguration * _Nonnull videoControlsConfig;
@property (nonatomic, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
@property (nonatomic, weak) id <InterstitialControllerLoadingDelegate> _Nullable loadingDelegate;
@property (nonatomic, weak) id <InterstitialControllerInteractionDelegate> _Nullable interactionDelegate;
- (nonnull instancetype)initWithBid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithBid:(Bid * _Nonnull)bid configId:(NSString * _Nonnull)configId;
- (void)loadAd;
- (void)show;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (void)reportFailureWithError:(NSError * _Nullable)error;
@end


@interface ADVIEW_InterstitialController (SWIFT_EXTENSION(AdViewSDK)) <ADVIEW_AdViewManagerDelegate>
- (UIViewController * _Nullable)viewControllerForModalPresentation SWIFT_WARN_UNUSED_RESULT;
- (void)adLoaded:(ADVIEW_AdDetails * _Nonnull)pbmAdDetails;
- (void)failedToLoad:(NSError * _Nonnull)error;
- (void)adDidComplete;
- (void)adDidDisplay;
- (void)adWasClicked;
- (void)adViewWasClicked;
- (void)adDidLeaveApp;
- (void)adDidClose;
- (void)adDidSendRewardedEvent;
@property (nonatomic, readonly, strong) ADVIEW_InterstitialDisplayProperties * _Nonnull interstitialDisplayProperties;
- (void)adClickthroughDidClose;
- (void)adDidExpand;
- (void)adDidCollapse;
@end


/// A protocol that defines methods for handling user interactions and lifecycle events related to interstitial ads.
SWIFT_PROTOCOL("_TtP9AdViewSDK41InterstitialControllerInteractionDelegate_")
@protocol InterstitialControllerInteractionDelegate <NSObject>
/// Tracks an impression for the specified interstitial ad controller.
/// \param forInterstitialController The interstitial ad controller associated with the impression.
///
- (void)trackImpressionForInterstitialController:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)forInterstitialController;
/// Notifies that the interstitial ad was clicked by the user.
/// \param interstitialController The interstitial ad controller associated with the click.
///
- (void)interstitialControllerDidClickAd:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController;
/// Notifies the delegate that the interstitial ad has been closed by the user.
/// \param interstitialController The interstitial ad controller that was closed.
///
- (void)interstitialControllerDidCloseAd:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController;
/// Notifies the delegate that the user has left the app after interacting with the interstitial ad.
/// \param interstitialController The interstitial ad controller that was displayed when the user left the app.
///
- (void)interstitialControllerDidLeaveApp:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController;
/// Notifies the delegate that the interstitial ad has been displayed to the user.
/// \param interstitialController The interstitial ad controller that displayed the ad.
///
- (void)interstitialControllerDidDisplay:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController;
/// Notifies the delegate that the interstitial ad has completed its presentation.
/// \param interstitialController The interstitial ad controller associated with the completed ad.
///
- (void)interstitialControllerDidComplete:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController;
/// Requests the <code>UIViewController</code> to be used for presenting modals from the interstitial ad controller.
/// \param fromInterstitialController The interstitial ad controller requesting the view controller.
///
- (UIViewController * _Nullable)viewControllerForModalPresentationFromInterstitialController:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)fromInterstitialController SWIFT_WARN_UNUSED_RESULT;
@optional
/// Notifies the delegate when a reward is granted to the user after interacting with a rewarded interstitial ad.
/// \param interstitialController The instance of the interstitial ad controller responsible for managing the ad.
///
/// \param reward An object containing details about the reward, such as the type and amount.
///
- (void)trackUserReward:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController :(ADVIEW_Reward * _Nonnull)reward;
@end


/// A protocol that defines methods for receiving loading events related to interstitial ad controllers.
SWIFT_PROTOCOL("_TtP9AdViewSDK37InterstitialControllerLoadingDelegate_")
@protocol InterstitialControllerLoadingDelegate <NSObject>
/// Notifies the delegate that the interstitial ad has successfully loaded.
/// \param interstitialController The interstitial ad controller that successfully loaded the ad.
///
- (void)interstitialControllerDidLoadAd:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController;
/// Notifies the delegate that an error occurred during the interstitial ad loading process.
/// \param interstitialController The interstitial ad controller that attempted to load the ad.
///
/// \param error An <code>Error</code> instance describing the issue that occurred during the ad loading.
///
- (void)interstitialController:(id <AdViewMobileInterstitialControllerProtocol> _Nonnull)interstitialController didFailWithError:(NSError * _Nonnull)error;
@end

@class UIColor;

SWIFT_CLASS_NAMED("InterstitialDisplayProperties")
@interface ADVIEW_InterstitialDisplayProperties : NSObject
@property (nonatomic) NSTimeInterval closeDelay;
@property (nonatomic) NSTimeInterval closeDelayLeft;
@property (nonatomic) CGRect contentFrame;
@property (nonatomic, strong) UIColor * _Nonnull contentViewColor;
@property (nonatomic) enum ADVIEW_InterstitialLayout interstitialLayout;
@property (nonatomic, readonly) BOOL rotationEnabled;
- (void)setButtonImageHidden;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (UIImage * _Nullable)getCloseButtonImage SWIFT_WARN_UNUSED_RESULT;
- (id _Nonnull)copy SWIFT_WARN_UNUSED_RESULT;
@end

@protocol ADVIEW_InterstitialEventLoadingDelegate;
@protocol ADVIEW_InterstitialEventInteractionDelegate;

SWIFT_PROTOCOL_NAMED("InterstitialEventHandlerProtocol")
@protocol ADVIEW_InterstitialEventHandlerProtocol <ADVIEW_InterstitialAd>
/// Delegate for custom event handler to inform the PBM SDK about the events related to the ad server communication.
@property (nonatomic, weak) id <ADVIEW_InterstitialEventLoadingDelegate> _Nullable loadingDelegate;
/// Delegate for custom event handler to inform the PBM SDK about the events related to the user’s interaction with the ad.
@property (nonatomic, weak) id <ADVIEW_InterstitialEventInteractionDelegate> _Nullable interactionDelegate;
@end


SWIFT_CLASS("_TtC9AdViewSDK34InterstitialEventHandlerStandalone")
@interface InterstitialEventHandlerStandalone : NSObject <ADVIEW_InterstitialEventHandlerProtocol>
@property (nonatomic, weak) id <ADVIEW_InterstitialEventLoadingDelegate> _Nullable loadingDelegate;
@property (nonatomic, weak) id <ADVIEW_InterstitialEventInteractionDelegate> _Nullable interactionDelegate;
@property (nonatomic, readonly) BOOL isReady;
- (void)showFromViewController:(UIViewController * _Nullable)controller;
- (void)requestAdWithBidResponse:(BidResponse * _Nullable)bidResponse;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("InterstitialEventInteractionDelegate")
@protocol ADVIEW_InterstitialEventInteractionDelegate <NSObject>
/// Call this when the ad server SDK is about to present a modal
- (void)willPresentAd;
/// Call this when the ad server SDK dissmisses a modal
- (void)didDismissAd;
/// Call this when the ad server SDK informs about app leave event as a result of user interaction.
- (void)willLeaveApp;
/// Call this when the ad server SDK informs about click event as a result of user interaction.
- (void)didClickAd;
@end


SWIFT_PROTOCOL_NAMED("InterstitialEventLoadingDelegate")
@protocol ADVIEW_InterstitialEventLoadingDelegate <NSObject>
- (void)prebidDidWin;
- (void)adServerDidWin;
- (void)failedWithError:(NSError * _Nullable)error;
@end

/// Determines the type of interstitial layout
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_InterstitialLayout, "InterstitialLayout", open) {
  ADVIEW_InterstitialLayoutUndefined = 0,
  ADVIEW_InterstitialLayoutPortrait = 1,
  ADVIEW_InterstitialLayoutLandscape = 2,
  ADVIEW_InterstitialLayoutAspectRatio = 3,
};


/// Represents an interstitial ad unit. Built for rendering type of integration.
SWIFT_CLASS_NAMED("InterstitialRenderingAdUnit")
@interface ADVIEW_InterstitialRenderingAdUnit : NSObject
/// A delegate for handling interactions with the ad unit.
@property (nonatomic, weak) id <ADVIEW_InterstitialAdUnitDelegate> _Nullable delegate;
/// A Boolean value indicating whether the ad unit is ready to be displayed.
@property (nonatomic, readonly) BOOL isReady;
/// The set of ad formats supported by this ad unit.
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
/// The banner parameters used for configuring ad unit.
@property (nonatomic, readonly, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// The video parameters used for configuring ad unit.
@property (nonatomic, readonly, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// A flag that determines whether SKOverlay should be supported
@property (nonatomic) BOOL supportSKOverlay;
/// The area of the close button in the video controls as a percentage.
@property (nonatomic) double closeButtonArea;
/// The position of the close button in the video controls.
@property (nonatomic) enum ADVIEW_Position closeButtonPosition;
/// The area of the skip button in the video controls, specified as a percentage of the screen width.
@property (nonatomic) double skipButtonArea;
/// The position of the skip button in the video controls.
@property (nonatomic) enum ADVIEW_Position skipButtonPosition;
/// The delay before the skip button appears, in seconds.
@property (nonatomic) double skipDelay;
/// A Boolean value indicating whether the video controls are muted.
@property (nonatomic) BOOL isMuted;
/// A Boolean value indicating whether the sound button is visible in the video controls.
@property (nonatomic) BOOL isSoundButtonVisible;
/// Initializes a new <code>BaseInterstitialAdUnit</code> with the specified configuration ID.
/// \param configID The unique identifier for the ad unit configuration.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID;
/// Initializes a new <code>InterstitialRenderingAdUnit</code> with the specified configuration ID and minimum size percentage.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param minSizePercentage The minimum size percentage for the ad unit.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID minSizePercentage:(CGSize)minSizePercentage;
/// Initializes a new <code>InterstitialRenderingAdUnit</code> with the specified configuration ID and event handler.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param eventHandler An object for handling ad events.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID eventHandler:(id _Nullable)eventHandler;
/// Initializes a new <code>InterstitialRenderingAdUnit</code> with the specified configuration ID, minimum size percentage, and event handler.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param minSizePercentage The minimum size percentage for the ad unit.
///
/// \param eventHandler An object for handling ad events.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID minSizePercentage:(CGSize)minSizePercentage eventHandler:(id _Nonnull)eventHandler;
/// Loads a new ad.
- (void)loadAd;
/// Shows the ad from a specified view controller.
/// note:
/// This method must be called on the main thread.
/// \param controller The view controller from which the ad will be presented.
///
- (void)showFrom:(UIViewController * _Nonnull)controller;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("LocationManager")
@interface ADVIEW_LocationManager : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LocationManager * _Nonnull shared;)
+ (ADVIEW_LocationManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic) BOOL locationUpdatesEnabled;
@property (nonatomic, readonly) CLLocationCoordinate2D coordinates;
@property (nonatomic, readonly) BOOL coordinatesAreValid;
@property (nonatomic, readonly) CLLocationAccuracy horizontalAccuracy;
@property (nonatomic, readonly, copy) NSDate * _Nullable timestamp;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class CLLocationManager;
@class CLLocation;

@interface ADVIEW_LocationManager (SWIFT_EXTENSION(AdViewSDK)) <CLLocationManagerDelegate>
- (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray<CLLocation *> * _Nonnull)locations;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didFailWithError:(NSError * _Nonnull)error;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status;
@end


/// This class serves as the central point for all logging operations within the SDK.
/// It allows for categorized logging based on severity levels (e.g., error, warning, debug) and offers options for both console and file-based logging.
/// It also provides the ability to set third-party logger.
SWIFT_CLASS_NAMED("Log")
@interface ADVIEW_Log : NSObject
/// The current logging level. Only messages at this level or higher will be logged.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) ADVIEW_LogLevel * _Nonnull logLevel;)
+ (ADVIEW_LogLevel * _Nonnull)logLevel SWIFT_WARN_UNUSED_RESULT;
+ (void)setLogLevel:(ADVIEW_LogLevel * _Nonnull)value;
/// Indicates whether logs should also be saved to a file.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL logToFile;)
+ (BOOL)logToFile SWIFT_WARN_UNUSED_RESULT;
+ (void)setLogToFile:(BOOL)value;
/// Sets a custom logger to handle log messages.
+ (void)setCustomLogger:(id <ADVIEW_PrebidLogger> _Nonnull)logger;
+ (void)error:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
+ (void)info:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
+ (void)debug:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
+ (void)verbose:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
+ (void)warn:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
+ (void)severe:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
+ (void)whereAmIWithFilename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
/// Writes a log message to the log file asynchronously.
/// \param message The log message to be written to the file.
///
+ (void)serialWriteToLog:(NSString * _Nonnull)message;
/// Reads the contents of the log file as a single string.
+ (NSString * _Nullable)getLogFileAsString SWIFT_WARN_UNUSED_RESULT;
/// Clears the contents of the log file.
+ (void)clearLogFile;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("LogLevel")
@interface ADVIEW_LogLevel : NSObject
@property (nonatomic) NSInteger rawValue;
@property (nonatomic, copy) NSString * _Nonnull stringValue;
- (nonnull instancetype)initWithStringValue:(NSString * _Nonnull)stringValue rawValue:(NSInteger)rawValue;
- (nonnull instancetype)initWithRawValue:(NSInteger)rawValue OBJC_DESIGNATED_INITIALIZER;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LogLevel * _Nonnull debug;)
+ (ADVIEW_LogLevel * _Nonnull)debug SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LogLevel * _Nonnull verbose;)
+ (ADVIEW_LogLevel * _Nonnull)verbose SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LogLevel * _Nonnull info;)
+ (ADVIEW_LogLevel * _Nonnull)info SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LogLevel * _Nonnull warn;)
+ (ADVIEW_LogLevel * _Nonnull)warn SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LogLevel * _Nonnull error;)
+ (ADVIEW_LogLevel * _Nonnull)error SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_LogLevel * _Nonnull severe;)
+ (ADVIEW_LogLevel * _Nonnull)severe SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("MRAIDState")
@interface ADVIEW_MRAIDState : NSObject
@property (nonatomic, copy) NSString * _Nonnull rawValue;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MRAIDState * _Nonnull notEnabled;)
+ (ADVIEW_MRAIDState * _Nonnull)notEnabled SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MRAIDState * _Nonnull defaultState;)
+ (ADVIEW_MRAIDState * _Nonnull)defaultState SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MRAIDState * _Nonnull expanded;)
+ (ADVIEW_MRAIDState * _Nonnull)expanded SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MRAIDState * _Nonnull hidden;)
+ (ADVIEW_MRAIDState * _Nonnull)hidden SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MRAIDState * _Nonnull loading;)
+ (ADVIEW_MRAIDState * _Nonnull)loading SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MRAIDState * _Nonnull resized;)
+ (ADVIEW_MRAIDState * _Nonnull)resized SWIFT_WARN_UNUSED_RESULT;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@property (nonatomic, readonly, copy) NSString * _Nonnull debugDescription;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// 全局 mediation auction 节流：任意一次 adview auction 请求（App fetchDemand 或 Adapter tryRegistryFetchOrFail）都会更新「上次请求时间」。
/// Adapter 在 tryRegistryFetchOrFail 前检查「距上次任意 auction 请求 ≥ minInterval」才允许再发，避免 App 刚请求完几秒内 Adapter 又发一次。
SWIFT_CLASS_NAMED("MediationAuctionThrottle")
@interface ADVIEW_MediationAuctionThrottle : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MediationAuctionThrottle * _Nonnull shared;)
+ (ADVIEW_MediationAuctionThrottle * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// 在即将发起 adview auction 网络请求时调用（App fetchDemand 与 Adapter fetchDemandForAdapterRefresh 均由 MediationBannerAdUnit 在 requestBids 前统一调用）
- (void)markRequestTime;
/// 距「允许再发 auction」还需等待的秒数；从未发过请求时返回 0。
- (NSTimeInterval)secondsUntilEligibleWithMinInterval:(NSTimeInterval)minInterval SWIFT_WARN_UNUSED_RESULT;
@end


/// This class is responsible for making bid request and providing the winning bid and targeting keywords to mediating SDKs.
/// This class is a part of Mediation API.
SWIFT_CLASS_NAMED("MediationBannerAdUnit")
@interface ADVIEW_MediationBannerAdUnit : NSObject
/// Property that performs certain utilty work for the <code>MediationBannerAdUnit</code>
@property (nonatomic, readonly, strong) id <AdViewMediationDelegate> _Nonnull mediationDelegate;
/// The configuration ID for an ad unit (adview stored request / config ID).
@property (nonatomic, readonly, copy) NSString * _Nonnull configID;
/// The ad format for the ad unit.
@property (nonatomic, strong) ADVIEW_AdFormat * _Nonnull adFormat;
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
/// Parameters for configuring banner ads.
@property (nonatomic, readonly, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// Parameters for configuring video ads.
@property (nonatomic, readonly, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// The refresh interval for the ad.
@property (nonatomic) NSTimeInterval refreshInterval;
/// Additional sizes for the ad unit.
@property (nonatomic, copy) NSArray<NSValue *> * _Nullable additionalSizes;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The  impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Initializes a new mediation banner ad unit with the specified configuration ID, size, and mediation delegate.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param size The size of the ad.
///
/// \param mediationDelegate The delegate for handling mediation.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID size:(CGSize)size mediationDelegate:(id <AdViewMediationDelegate> _Nonnull)mediationDelegate OBJC_DESIGNATED_INITIALIZER;
/// Makes bid request and setups mediation parameters.
/// \param completion The completion handler to call when the demand fetch is complete.
///
- (void)fetchDemandWithCompletion:(void (^ _Nullable)(enum ADVIEW_ResultCode))completion;
/// Stops the auto-refresh for the ad unit.
- (void)stopRefresh;
/// 拉取新 bid 并直接返回给调用方，不触发正常 load completion 或 refresh timer
/// 直接发起请求（不再优先检查缓存），成功后仍写入缓存供 displayViewDidLoadAd 预取等使用
- (void)fetchDemandForAdapterRefreshWithCompletion:(void (^ _Nonnull)(enum ADVIEW_ResultCode, NSDictionary<NSString *, id> * _Nullable))completion;
/// Handles the event when the ad object fails to load an ad.
/// \param adObject The ad object that failed to load the ad.
///
/// \param error The error that occurred during the ad load.
///
- (void)adObjectDidFailToLoadAdWithAdObject:(UIView * _Nonnull)adObject with:(NSError * _Nonnull)error;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// 按 configId 注册并查找 MediationBannerAdUnit，用于 Adapter 驱动刷新场景。
/// 当 AdMob/MAX 自身刷新时，Adapter 可通过 configId 找到对应 ad unit 并调用 fetchDemandForAdapterRefresh。
/// 使用弱引用存储，开发者只需释放 ad unit（如 VC 置 nil），无需主动 unregister，查找时自动清理已释放条目。
SWIFT_CLASS_NAMED("MediationBannerAdUnitRegistry")
@interface ADVIEW_MediationBannerAdUnitRegistry : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_MediationBannerAdUnitRegistry * _Nonnull shared;)
+ (ADVIEW_MediationBannerAdUnitRegistry * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (void)saveRegistryFetchBidSnapshotWithConfigId:(NSString * _Nonnull)configId values:(NSDictionary<NSString *, id> * _Nonnull)values;
- (NSDictionary<NSString *, id> * _Nullable)peekRegistryFetchBidSnapshotWithConfigId:(NSString * _Nonnull)configId SWIFT_WARN_UNUSED_RESULT;
- (void)removeRegistryFetchBidSnapshotWithConfigId:(NSString * _Nonnull)configId;
- (void)recordBannerAdapterBidExpiryAnchorWithConfigId:(NSString * _Nonnull)configId at:(NSDate * _Nonnull)date;
- (NSDate * _Nullable)peekBannerAdapterBidExpiryAnchorWithConfigId:(NSString * _Nonnull)configId SWIFT_WARN_UNUSED_RESULT;
- (void)removeBannerAdapterBidExpiryAnchorWithConfigId:(NSString * _Nonnull)configId;
/// 清理「锚点时间」已超过 interval 的快照与锚点（与 Adapter 全局 cleanup 配合）；<code>exceptConfigId</code> 跳过。
- (void)pruneExpiredBannerAdapterBidSnapshotsWithNow:(NSDate * _Nonnull)now interval:(NSTimeInterval)interval exceptConfigId:(NSString * _Nullable)exceptConfigId;
/// 根据 configId 查找已注册的 MediationBannerAdUnit；若已释放则自动清理并返回 nil。
- (ADVIEW_MediationBannerAdUnit * _Nullable)adUnitForConfigId:(NSString * _Nonnull)configId SWIFT_WARN_UNUSED_RESULT;
/// 注册 ad unit（在创建 MediationBannerAdUnit 后调用）；使用弱引用，ad unit 释放后无需 unregister。
- (void)register:(ADVIEW_MediationBannerAdUnit * _Nonnull)adUnit;
/// 可选：主动注销（与弱引用兼容，显式 unregister 仍会立即移除）；不调用也可，释放 ad unit 后查找会自动返回 nil。
/// 注意：deinit 中会调用本方法，async block 内不得引用 adUnit，否则 block 执行时 adUnit 已释放会导致 EXC_BAD_ACCESS；仅用 configId 移除条目。
- (void)unregister:(ADVIEW_MediationBannerAdUnit * _Nonnull)adUnit;
/// 当 fetchDemand 返回无 bid 时由 MediationBannerAdUnit 调用，标记该 configId「最近一次 auction 无广告」。
- (void)markLastAuctionNoBidWithConfigId:(NSString * _Nonnull)configId;
/// 当 fetchDemand 返回有 bid 时由 MediationBannerAdUnit 调用，清除该 configId 的「最近一次 auction 无广告」标记，后续 loadBanner 可展示新 bid。
- (void)clearLastAuctionNoBidWithConfigId:(NSString * _Nonnull)configId;
/// Adapter 在 loadBanner 时调用：若该 configId 当前处于「最近一次 auction 无广告」状态则返回 true（应视为本次无广告、回调失败）；否则返回 false。不消费标记，直到下次 auction 有 bid 时由 clearLastAuctionNoBid 清除，这样同一次无 bid 后的多次 loadBanner 都会正确按无广告处理。
- (BOOL)lastAuctionHadNoBidWithConfigId:(NSString * _Nonnull)configId SWIFT_WARN_UNUSED_RESULT;
/// App 侧 <code>fetchDemand</code> 成功并 <code>setUpAdObject</code> 后调用：展示成功后的 <code>prefetchBidIfNeeded</code> 可在距上次拍价不足 10s 时仍发起一次预取。
- (void)markPostShowPrefetchThrottleBypassEligibleWithConfigId:(NSString * _Nonnull)configId;
/// 任意 Adapter 发起的 <code>fetchDemandForAdapterRefresh</code> 开始时调用，清除未消费的 bypass，避免旧标记影响后续 tryRegistry / 预取判断。
- (void)clearPostShowPrefetchThrottleBypassWithConfigId:(NSString * _Nonnull)configId;
/// 当全局节流仍不允许拍价时，若存在 App 展示后预取 bypass 则移除并返回 true（允许本次预取）；否则 false。
- (BOOL)consumePostShowPrefetchThrottleBypassIfEligibleWithConfigId:(NSString * _Nonnull)configId SWIFT_WARN_UNUSED_RESULT;
@end


/// Base class for interstitial ads in Mediation API.
SWIFT_CLASS_NAMED("MediationBaseInterstitialAdUnit")
@interface ADVIEW_MediationBaseInterstitialAdUnit : NSObject
/// Parameters for configuring banner ads.
@property (nonatomic, readonly, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// Parameters for configuring video ads.
@property (nonatomic, readonly, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
/// Indicates whether the video ad is muted.
@property (nonatomic) BOOL isMuted;
/// Indicates whether the sound button is visible in the video ad.
@property (nonatomic) BOOL isSoundButtonVisible;
/// The area for the close button in the video ad.
@property (nonatomic) double closeButtonArea;
/// The position of the close button in the video ad.
@property (nonatomic) enum ADVIEW_Position closeButtonPosition;
/// The configuration ID for the ad unit.
@property (nonatomic, readonly, copy) NSString * _Nonnull configId;
/// Makes bid request and setups mediation parameters.
/// \param completion A closure called with the result code indicating the outcome of the demand fetch.
///
- (void)fetchDemandWithCompletion:(void (^ _Nullable)(enum ADVIEW_ResultCode))completion;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The  impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("MediationBidInfoWrapper")
@interface ADVIEW_MediationBidInfoWrapper : NSObject
@property (nonatomic, copy) NSString * _Nullable keywords;
@property (nonatomic, copy) NSDictionary * _Nullable localExtras;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// This class is responsible for making bid request and providing the winning bid and targeting keywords to mediating SDKs.
/// This class is a part of Mediation API.
SWIFT_CLASS_NAMED("MediationInterstitialAdUnit")
@interface ADVIEW_MediationInterstitialAdUnit : ADVIEW_MediationBaseInterstitialAdUnit
/// The ad format for the ad unit.
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// Additional sizes for the ad unit.
@property (nonatomic, copy) NSArray<NSValue *> * _Nullable additionalSizes;
/// The area for the skip button in the video ad.
@property (nonatomic) double skipButtonArea;
/// The position of the skip button in the video ad.
@property (nonatomic) enum ADVIEW_Position skipButtonPosition;
/// The delay before the skip button appears in the video ad.
@property (nonatomic) double skipDelay;
/// Convenience initializer for the mediation interstitial ad unit.
/// \param configId The unique identifier for the ad unit configuration.
///
/// \param mediationDelegate The delegate for handling mediation.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId mediationDelegate:(id <AdViewMediationDelegate> _Nonnull)mediationDelegate;
/// The configuration ID for the ad unit.
@property (nonatomic, readonly, copy) NSString * _Nonnull configId;
@end


/// This class is responsible for making bid request and providing the winning bid and targeting keywords to mediating SDKs.
/// This class is a part of Mediation API.
SWIFT_CLASS_NAMED("MediationNativeAdUnit")
@interface ADVIEW_MediationNativeAdUnit : NSObject
/// The native ad unit that makes native request.
@property (nonatomic, strong) ADVIEW_NativeRequest * _Nonnull nativeAdUnit;
/// Initializes a new instance of the <code>MediationNativeAdUnit</code> with the specified configuration ID and mediation delegate.
/// \param configId The configuration ID for the ad unit.
///
/// \param mediationDelegate The delegate for mediation-related tasks.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId mediationDelegate:(id <AdViewMediationDelegate> _Nonnull)mediationDelegate OBJC_DESIGNATED_INITIALIZER;
/// Adds event trackers to the native ad unit.
/// \param eventTrackers An array of <code>NativeEventTracker</code> objects to add.
///
- (void)addEventTracker:(NSArray<ADVIEW_NativeEventTracker *> * _Nonnull)eventTrackers;
/// Adds native assets to the native ad unit.
/// \param assets An array of <code>NativeAsset</code> objects to add.
///
- (void)addNativeAssets:(NSArray<ADVIEW_NativeAsset *> * _Nonnull)assets;
/// Sets the context type for the native ad unit.
/// \param contextType The context type to set.
///
- (void)setContextType:(ADVIEW_ContextType * _Nonnull)contextType;
/// Sets the placement type for the native ad unit.
/// \param placementType The placement type to set.
///
- (void)setPlacementType:(ADVIEW_PlacementType * _Nonnull)placementType;
/// Sets the placement count for the native ad unit.
/// \param placementCount The placement count to set.
///
- (void)setPlacementCount:(NSInteger)placementCount;
/// Sets the context subtype for the native ad unit.
/// \param contextSubType The context subtype to set.
///
- (void)setContextSubType:(ADVIEW_ContextSubType * _Nonnull)contextSubType;
/// Sets the sequence for the native ad unit.
/// \param sequence The sequence to set.
///
- (void)setSequence:(NSInteger)sequence;
/// Sets the asset URL support for the native ad unit.
/// \param assetURLSupport The asset URL support value to set.
///
- (void)setAssetURLSupport:(NSInteger)assetURLSupport;
/// Sets the DURL support for the native ad unit.
/// \param dURLSupport The DURL support value to set.
///
- (void)setDURLSupport:(NSInteger)dURLSupport;
/// Sets the privacy value for the native ad unit.
/// \param privacy The privacy value to set.
///
- (void)setPrivacy:(NSInteger)privacy;
/// Sets the extended data for the native ad unit.
/// \param ext A dictionary containing the extended data to set.
///
- (void)setExt:(NSDictionary<NSString *, id> * _Nonnull)ext;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The  impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Makes bid request for the native ad unit and setups mediation parameters.
/// \param completion The completion handler to call with the result code.
///
- (void)fetchDemandWithCompletion:(void (^ _Nullable)(enum ADVIEW_ResultCode))completion;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("MediationNativeUtils")
@interface ADVIEW_MediationNativeUtils : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// This class is responsible for making bid request and providing the winning bid and targeting keywords to mediating SDKs.
/// This class is a part of Mediation API.
SWIFT_CLASS_NAMED("MediationRewardedAdUnit")
@interface ADVIEW_MediationRewardedAdUnit : ADVIEW_MediationBaseInterstitialAdUnit
/// Initializes a new instance of the <code>MediationRewardedAdUnit</code> with the specified configuration ID and mediation delegate.
/// \param configId The configuration ID for the ad unit.
///
/// \param mediationDelegate The delegate for mediation-related tasks.
///
- (nonnull instancetype)initWithConfigId:(NSString * _Nonnull)configId mediationDelegate:(id <AdViewMediationDelegate> _Nonnull)mediationDelegate OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("MediationUtils")
@interface ADVIEW_MediationUtils : NSObject
+ (BOOL)isServerParameterInTargetingInfo:(NSString * _Nonnull)serverParameter :(NSArray<NSString *> * _Nonnull)targetingInfo SWIFT_WARN_UNUSED_RESULT;
+ (BOOL)isServerParameterInTargetingInfoDict:(NSString * _Nonnull)serverParameter :(NSDictionary<NSString *, NSString *> * _Nonnull)targetingInfoDictionary SWIFT_WARN_UNUSED_RESULT;
+ (BOOL)isServerParameterDictInTargetingInfoDict:(NSDictionary<NSString *, NSString *> * _Nonnull)serverParametersDictionary :(NSDictionary<NSString *, NSString *> * _Nonnull)targetingInfoDictionary SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class ADVIEW_ModalViewController;

SWIFT_PROTOCOL_NAMED("ModalViewControllerDelegate")
@protocol ADVIEW_ModalViewControllerDelegate
- (void)modalViewControllerCloseButtonTapped:(ADVIEW_ModalViewController * _Nonnull)modalViewController;
- (void)modalViewControllerDidLeaveApp;
@end


SWIFT_CLASS_NAMED("ModalManager")
@interface ADVIEW_ModalManager : NSObject <ADVIEW_ModalViewControllerDelegate>
@property (nonatomic, strong) ADVIEW_ModalViewController * _Nullable modalViewController;
- (nonnull instancetype)initWithDelegate:(id <ADVIEW_ModalManagerDelegate> _Nullable)delegate OBJC_DESIGNATED_INITIALIZER;
- (void)forceOrientation:(UIInterfaceOrientation)orientation;
- (void (^ _Nullable)(void))pushModal:(id <ADVIEW_ModalState> _Nonnull)state fromRootViewController:(UIViewController * _Nonnull)fromRootViewController animated:(BOOL)animated shouldReplace:(BOOL)shouldReplace completionHandler:(void (^ _Nullable)(void))completionHandler SWIFT_WARN_UNUSED_RESULT;
- (void)creativeDisplayCompleted:(id <ADVIEW_AbstractCreative> _Nonnull)creative;
- (void)modalViewControllerCloseButtonTapped:(ADVIEW_ModalViewController * _Nonnull)modalViewController;
- (void)modalViewControllerDidLeaveApp;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end



SWIFT_CLASS_NAMED("ModalPresentationController")
@interface ADVIEW_ModalPresentationController : UIPresentationController
@property (nonatomic) CGRect frameOfPresentedView;
- (void)presentationTransitionWillBegin;
- (void)containerViewWillLayoutSubviews;
@property (nonatomic, readonly) CGRect frameOfPresentedViewInContainerView;
- (nonnull instancetype)initWithPresentedViewController:(UIViewController * _Nonnull)presentedViewController presentingViewController:(UIViewController * _Nullable)presentingViewController OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("ModalState")
@protocol ADVIEW_ModalState
@property (nonatomic, readonly, strong) ADVIEW_AdConfiguration * _Nullable adConfiguration;
@property (nonatomic, readonly, strong) ADVIEW_InterstitialDisplayProperties * _Nullable displayProperties;
@property (nonatomic, readonly, strong) UIView * _Nullable view;
@property (nonatomic, strong) ADVIEW_MRAIDState * _Nonnull mraidState;
@property (nonatomic, readonly, copy) void (^ _Nullable onStatePopFinished)(id <ADVIEW_ModalState> _Nullable);
@property (nonatomic, readonly, copy) void (^ _Nullable onStateHasLeftApp)(id <ADVIEW_ModalState> _Nullable);
@property (nonatomic, readonly, copy) void (^ _Nullable nextOnStatePopFinished)(id <ADVIEW_ModalState> _Nullable);
@property (nonatomic, readonly, copy) void (^ _Nullable nextOnStateHasLeftApp)(id <ADVIEW_ModalState> _Nullable);
@property (nonatomic, copy) void (^ _Nullable onModalPushedBlock)(void);
@property (nonatomic, readonly) BOOL isRotationEnabled;
- (nonnull instancetype)initWithView:(UIView * _Nonnull)view adConfiguration:(ADVIEW_AdConfiguration * _Nullable)adConfiguration displayProperties:(ADVIEW_InterstitialDisplayProperties * _Nullable)displayProperties onStatePopFinished:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))onStatePopFinished onStateHasLeftApp:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))onStateHasLeftApp nextOnStatePopFinished:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))nextOnStatePopFinished nextOnStateHasLeftApp:(void (^ _Nullable)(id <ADVIEW_ModalState> _Nullable))nextOnStateHasLeftApp onModalPushedBlock:(void (^ _Nullable)(void))onModalPushedBlock;
@end

@class NSBundle;
@protocol ADVIEW_OMSession;

SWIFT_CLASS_NAMED("ModalViewController")
@interface ADVIEW_ModalViewController : UIViewController
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
- (void)viewDidLoad;
- (void)viewWillAppear:(BOOL)animated;
- (void)viewWillDisappear:(BOOL)animated;
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
@property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
@property (nonatomic, readonly) BOOL shouldAutorotate;
- (void)addFriendlyObstructionsToMeasurementSession:(id <ADVIEW_OMSession> _Nullable)session;
@end



@interface NSString (SWIFT_EXTENSION(AdViewSDK))
@property (nonatomic, readonly, strong) UIImage * _Nullable base64DecodedImage;
@end

@class ADVIEW_NativeAdMarkup;
@protocol ADVIEW_NativeAdEventDelegate;
@class ADVIEW_NativeTitle;
@class ADVIEW_NativeData;
@class ADVIEW_NativeImage;
@class ADVIEW_NativeEventTrackerResponse;
enum ADVIEW_NativeDataAssetType : NSInteger;
enum ADVIEW_NativeImageAssetType : NSInteger;

/// Represents a native ad and handles its various properties and functionalities.
SWIFT_CLASS_NAMED("NativeAd")
@interface ADVIEW_NativeAd : NSObject
/// The native ad markup containing the ad assets.
@property (nonatomic, strong) ADVIEW_NativeAdMarkup * _Nullable nativeAdMarkup;
/// The delegate to receive native ad events.
@property (nonatomic, weak) id <ADVIEW_NativeAdEventDelegate> _Nullable delegate;
/// Returns an array of titles from the native ad markup.
@property (nonatomic, readonly, copy) NSArray<ADVIEW_NativeTitle *> * _Nonnull titles;
/// Returns an array of data objects from the native ad markup.
@property (nonatomic, readonly, copy) NSArray<ADVIEW_NativeData *> * _Nonnull dataObjects;
/// Returns an array of images from the native ad markup.
@property (nonatomic, readonly, copy) NSArray<ADVIEW_NativeImage *> * _Nonnull images;
/// Returns an array of event trackers from the native ad markup.
@property (nonatomic, readonly, copy) NSArray<ADVIEW_NativeEventTrackerResponse *> * _Nullable eventTrackers;
@property (nonatomic, copy) NSString * _Nullable privacyUrl;
/// Returns an array of data objects filtered by the specified data type.
- (NSArray<ADVIEW_NativeData *> * _Nonnull)dataObjectsOf:(enum ADVIEW_NativeDataAssetType)dataType SWIFT_WARN_UNUSED_RESULT;
/// Returns an array of images filtered by the specified image type.
- (NSArray<ADVIEW_NativeImage *> * _Nonnull)imagesOf:(enum ADVIEW_NativeImageAssetType)imageType SWIFT_WARN_UNUSED_RESULT;
/// Returns the first title text from the native ad markup.
@property (nonatomic, readonly, copy) NSString * _Nullable title;
/// Returns the URL of the main image from the native ad markup.
@property (nonatomic, readonly, copy) NSString * _Nullable imageUrl;
/// Returns the URL of the icon image from the native ad markup.
@property (nonatomic, readonly, copy) NSString * _Nullable iconUrl;
/// Returns the sponsored by text from the native ad markup.
@property (nonatomic, readonly, copy) NSString * _Nullable sponsoredBy;
/// Returns the description text from the native ad markup.
@property (nonatomic, readonly, copy) NSString * _Nullable text;
/// Returns the call-to-action text from the native ad markup.
@property (nonatomic, readonly, copy) NSString * _Nullable callToAction;
/// Returns landing URL of the clickable link.
@property (nonatomic, readonly, copy) NSString * _Nullable clickURL;
/// Creates a <code>NativeAd</code> instance from the given cache ID.
/// \param cacheId The cache ID to retrieve the bid response.
///
///
/// returns:
/// A <code>NativeAd</code> instance if successful, otherwise <code>nil</code>.
+ (ADVIEW_NativeAd * _Nullable)createWithCacheId:(NSString * _Nonnull)cacheId SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// Stops viewability / hide / removeview tracking and detaches click handlers. Call when the native container is removed (e.g. view controller pop) if the instance may outlive the view.
- (void)unregisterView;
/// Registers a view for tracking viewability and click events.
/// \param view The view to register.
///
/// \param clickableViews An array of views that should be clickable.
///
///
/// returns:
/// <code>true</code> if the view was successfully registered, otherwise <code>false</code>.
- (BOOL)registerViewWithView:(UIView * _Nullable)view clickableViews:(NSArray<UIView *> * _Nullable)clickableViews;
@end

@class ADVIEW_NativeMarkupRequestObject;

/// Represents the configuration for a native ad, including markup and version information.
SWIFT_CLASS_NAMED("NativeAdConfiguration")
@interface ADVIEW_NativeAdConfiguration : NSObject
/// Version of the Native Markup version in use.
@property (nonatomic, copy) NSString * _Nonnull version;
/// The object containing the request details for the native markup.
@property (nonatomic, strong) ADVIEW_NativeMarkupRequestObject * _Nonnull markupRequestObject;
/// Initializes a new instance of <code>NativeAdMarkup</code> with default values.
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("NativeAdDelegate")
@protocol ADVIEW_NativeAdDelegate
/// A successful AdView Native ad is returned
/// <ul>
///   <li>
///     Parameter:  A successful AdView Native ad is returned
///   </li>
/// </ul>
- (void)nativeAdLoadedWithAd:(ADVIEW_NativeAd * _Nonnull)ad;
/// AdView Native was not found in the server returned response,
/// Please display the ad as regular ways
- (void)nativeAdNotFound;
/// AdView Native ad was returned, however, the bid is not valid for displaying
/// Should be treated as on ad load failed
- (void)nativeAdNotValid;
@end


/// A protocol for handling events related to native ads.
/// This protocol defines optional methods that can be implemented to handle various events associated with native ads, such as expiration, clicks, and impressions. Implementing this protocol allows for custom handling of these events within the native ad lifecycle.
SWIFT_PROTOCOL_NAMED("NativeAdEventDelegate")
@protocol ADVIEW_NativeAdEventDelegate
@optional
/// Sent when the native ad is expired.
- (void)adDidExpireWithAd:(ADVIEW_NativeAd * _Nonnull)ad;
/// Sent when the native view is clicked by the user.
- (void)adWasClickedWithAd:(ADVIEW_NativeAd * _Nonnull)ad;
/// Sent when  an impression is recorded for an native ad
- (void)adDidLogImpressionWithAd:(ADVIEW_NativeAd * _Nonnull)ad;
@end

@class ADVIEW_NativeAdMarkupAsset;
@class ADVIEW_NativeLink;

/// Represents the markup for a native ad, including assets, tracking URLs, and other metadata.
SWIFT_CLASS_NAMED("NativeAdMarkup")
@interface ADVIEW_NativeAdMarkup : NSObject
/// Version of the Native Markup version in use.
@property (nonatomic, copy) NSString * _Nullable version;
/// List of native ad’s assets.
/// Required if no assetsurl.
/// Recommended as fallback even if assetsurl is provided.
@property (nonatomic, copy) NSArray<ADVIEW_NativeAdMarkupAsset *> * _Nullable assets;
/// URL of an alternate source for the assets object.
/// The expected response is a JSON object mirroring the assets object in the bid response,
/// subject to certain requirements as specified in the individual objects.
/// Where present, overrides the asset object in the response.
@property (nonatomic, copy) NSString * _Nullable assetsurl;
/// URL where a dynamic creative specification may be found for populating this ad, per the Dynamic Content Ads Specification.
/// Note this is a beta option as the interpretation of the Dynamic Content Ads Specification and how to assign those elements
/// into a native ad is outside the scope of this spec and must be agreed offline between the parties
/// or as may be specified in a future revision of the Dynamic Content Ads spec.
/// Where present, overrides the asset object in the response.
@property (nonatomic, copy) NSString * _Nullable dcourl;
/// Destination Link.
/// This is default link object for the ad.
/// Individual assets can also have a link object which applies if the asset is activated(clicked).
/// If the asset doesn’t have a link object, the parent link object applies.
/// See LinkObject Definition
@property (nonatomic, strong) ADVIEW_NativeLink * _Nullable link;
/// Array of impression tracking URLs, expected to return a 1x1 image or 204 response - typically only passed when using 3rd party trackers.
/// To be deprecated - replaced with eventtrackers.
@property (nonatomic, copy) NSArray<NSString *> * _Nullable imptrackers;
/// Optional JavaScript impression tracker.
/// This is a valid HTML, Javascript is already wrapped in <script> tags.
/// It should be executed at impression time where it can be supported.
/// To be deprecated - replaced with eventtrackers.
@property (nonatomic, copy) NSString * _Nullable jstracker;
/// Array of tracking objects to run with the ad, in response to the declared supported methods in the request.
/// Replaces imptrackers and jstracker, to be deprecated.
@property (nonatomic, copy) NSArray<ADVIEW_NativeEventTrackerResponse *> * _Nullable eventtrackers;
/// If support was indicated in the request, URL of a page informing the user about the buyer’s targeting activity.
@property (nonatomic, copy) NSString * _Nullable privacy;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a new instance of <code>NativeAdMarkup</code> from a JSON string.
/// \param jsonString A JSON string representing the native ad markup.
///
- (nullable instancetype)initWithJsonString:(NSString * _Nullable)jsonString;
/// Initializes a new instance of <code>NativeAdMarkup</code> from a JSON dictionary.
/// \param jsonDictionary A dictionary representing the native ad markup.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
/// Initializes a new instance of <code>NativeAdMarkup</code> with default values.
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents an asset in the native ad markup, which can be a title, image, data, or link.
SWIFT_CLASS_NAMED("NativeAdMarkupAsset")
@interface ADVIEW_NativeAdMarkupAsset : NSObject
/// Title object for title assets.
/// See TitleObject definition.
@property (nonatomic, strong) ADVIEW_NativeTitle * _Nullable title;
/// Image object for image assets.
/// See ImageObject definition.
@property (nonatomic, strong) ADVIEW_NativeImage * _Nullable img;
/// Data object for ratings, prices etc.
@property (nonatomic, strong) ADVIEW_NativeData * _Nullable data;
/// Link object for call to actions.
/// The link object applies if the asset item is activated (clicked).
/// If there is no link object on the asset, the parent link object on the bid response applies.
@property (nonatomic, strong) ADVIEW_NativeLink * _Nullable link;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support
/// flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a new instance of <code>NativeAdMarkupAsset</code> from a JSON dictionary.
/// \param jsonDictionary A dictionary representing the asset in the native ad markup.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
/// Initializes a new instance of <code>NativeAdMarkupAsset</code> with default values.
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents a generic native ad asset which could be a title, image, or data.
SWIFT_CLASS_NAMED("NativeAsset")
@interface ADVIEW_NativeAsset : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// Represents a data asset in a native ad.
SWIFT_CLASS_NAMED("NativeAssetData")
@interface ADVIEW_NativeAssetData : ADVIEW_NativeAsset
/// Additional custom properties for the data asset.
@property (nonatomic, strong) id _Nullable ext;
/// Initializes a new instance of <code>NativeAssetData</code>.
/// \param type The type of the data asset.
///
/// \param required A boolean indicating whether the asset is required.
///
- (nonnull instancetype)initWithType:(enum ADVIEW_DataAsset)type required:(BOOL)required OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithIsRequired:(BOOL)isRequired SWIFT_UNAVAILABLE;
@end


/// Represents an image asset in a native ad.
SWIFT_CLASS_NAMED("NativeAssetImage")
@interface ADVIEW_NativeAssetImage : ADVIEW_NativeAsset
/// The type of the image asset.
@property (nonatomic, strong) ADVIEW_ImageAsset * _Nullable type;
/// The MIME types supported for the image asset.
@property (nonatomic, copy) NSArray<NSString *> * _Nullable mimes;
/// Additional custom properties for the image asset.
@property (nonatomic, strong) id _Nullable ext;
/// Initializes a new instance of <code>NativeAssetImage</code>.
/// \param minimumWidth The minimum width of the image.
///
/// \param minimumHeight The minimum height of the image.
///
/// \param required A boolean indicating whether the asset is required.
///
- (nonnull instancetype)initWithMinimumWidth:(NSInteger)minimumWidth minimumHeight:(NSInteger)minimumHeight required:(BOOL)required;
/// Initializes a new instance of <code>NativeAssetImage</code>.
/// \param isRequired A boolean indicating whether the asset is required.
///
- (nonnull instancetype)initWithIsRequired:(BOOL)isRequired OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents a title asset in a native ad.
SWIFT_CLASS_NAMED("NativeAssetTitle")
@interface ADVIEW_NativeAssetTitle : ADVIEW_NativeAsset
/// Additional custom properties for the title asset.
@property (nonatomic, strong) id _Nullable ext;
/// Initializes a new instance of <code>NativeAssetTitle</code>.
/// \param length The maximum length of the title.
///
/// \param required A boolean indicating whether the asset is required.
///
- (nonnull instancetype)initWithLength:(NSInteger)length required:(BOOL)required OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithIsRequired:(BOOL)isRequired SWIFT_UNAVAILABLE;
@end


/// Class representing native data elements in the ad markup.
SWIFT_CLASS_NAMED("NativeData")
@interface ADVIEW_NativeData : NSObject
/// The formatted string of data to be displayed.
/// Can contain a formatted value such as “5 stars” or “$10” or “3.4 stars out of 5”.
@property (nonatomic, copy) NSString * _Nullable value;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support
/// flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a new <code>NativeData</code> object with the provided JSON dictionary.
/// \param jsonDictionary A dictionary containing the JSON data to initialize the object.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

/// Enum representing various types of native data assets that can be used in ads.
/// Each case represents a different type of data that can be provided in a native ad response.
/// Values are defined according to the type of data they represent, such as descriptive text, ratings, or pricing information.
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_NativeDataAssetType, "NativeDataAssetType", open) {
  ADVIEW_NativeDataAssetTypeUndefined = 0,
/// Sponsored By message where response should contain the brand name of the sponsor.
  ADVIEW_NativeDataAssetTypeSponsored = 1,
/// Descriptive text associated with the product or service being advertised. Longer length of text in response may be truncated or ellipsed by the exchange.
  ADVIEW_NativeDataAssetTypeDesc = 2,
/// Rating of the product being offered to the user. For example an app’s rating in an app store from 0-5.
  ADVIEW_NativeDataAssetTypeRating = 3,
/// Number of social ratings or “likes” of the product being offered to the user.
  ADVIEW_NativeDataAssetTypeLikes = 4,
/// Number downloads/installs of this product
  ADVIEW_NativeDataAssetTypeDownloads = 5,
/// Price for product / app / in-app purchase. Value should include currency symbol in localised format.
  ADVIEW_NativeDataAssetTypePrice = 6,
/// Sale price that can be used together with price to indicate a discounted price compared to a regular price. Value should include currency symbol in localised format.
  ADVIEW_NativeDataAssetTypeSalePrice = 7,
/// Phone number
  ADVIEW_NativeDataAssetTypePhone = 8,
/// Address
  ADVIEW_NativeDataAssetTypeAddress = 9,
/// Additional descriptive text associated text with the product or service being advertised
  ADVIEW_NativeDataAssetTypeDesc2 = 10,
/// Display URL for the text ad. To be used when sponsoring entity doesn’t own the content. IE sponsored by BRAND on SITE (where SITE is transmitted in this field).
  ADVIEW_NativeDataAssetTypeDisplayURL = 11,
/// CTA description - descriptive text describing a ‘call to action’ button for the destination URL.
  ADVIEW_NativeDataAssetTypeCtaText = 12,
/// Reserved for Exchange specific usage numbered above 500
  ADVIEW_NativeDataAssetTypeCustom = 500,
};


/// Class representing an event tracker for native ads.
SWIFT_CLASS_NAMED("NativeEventTracker")
@interface ADVIEW_NativeEventTracker : NSObject
/// Initializes a new <code>NativeEventTracker</code> instance.
/// \param event The event type to track.
///
/// \param methods The methods used for tracking the event.
///
- (nonnull instancetype)initWithEvent:(ADVIEW_EventType * _Nonnull)event methods:(NSArray<ADVIEW_EventTracking *> * _Nonnull)methods OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// Class representing a response for a native event tracker.
SWIFT_CLASS_NAMED("NativeEventTrackerResponse")
@interface ADVIEW_NativeEventTrackerResponse : NSObject
/// The URL of the image or js.
/// Required for image or js, optional for custom.
@property (nonatomic, copy) NSString * _Nullable url;
/// To be agreed individually with the exchange, an array of key:value objects for custom tracking,
/// for example the account number of the DSP with a tracking company. IE {“accountnumber”:”123”}.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable customdata;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a <code>NativeEventTrackerResponse</code> object from a JSON dictionary.
/// \param jsonDictionary A dictionary containing the JSON data to initialize the object.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
/// Initializes with default values
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Class representing an image asset in a native ad.
SWIFT_CLASS_NAMED("NativeImage")
@interface ADVIEW_NativeImage : NSObject
/// URL of the image asset.
@property (nonatomic, copy) NSString * _Nullable url;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support
/// flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a <code>NativeImage</code> object from a JSON dictionary.
/// \param jsonDictionary A dictionary containing the JSON data to initialize the object.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
/// Initializes with default values
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

/// Enum representing various types of native image assets used in ads.
/// Each case corresponds to a different type of image asset that can be used in native ads.
/// Values are defined according to the role or importance of the image in the ad.
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_NativeImageAssetType, "NativeImageAssetType", open) {
/// Represents an icon image, which is typically a small image used as a visual representation of the product or service.
  ADVIEW_NativeImageAssetTypeIcon = 1,
/// Represents the main image of the ad, which is usually the primary visual element and central to the ad’s presentation.
  ADVIEW_NativeImageAssetTypeMain = 3,
/// Reserved for exchange-specific usage.
  ADVIEW_NativeImageAssetTypeCustom = 500,
};


/// Class representing a  link in a native ad.
SWIFT_CLASS_NAMED("NativeLink")
@interface ADVIEW_NativeLink : NSObject
/// Landing URL of the clickable link.
@property (nonatomic, copy) NSString * _Nullable url;
/// List of third-party tracker URLs to be fired on click of the URL.
@property (nonatomic, copy) NSArray<NSString *> * _Nullable clicktrackers;
/// Fallback URL for deeplink.
/// To be used if the URL given in url is not supported by the device.
@property (nonatomic, copy) NSString * _Nullable fallback;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a <code>NativeLink</code> object from a JSON dictionary.
/// \param jsonDictionary A dictionary containing the JSON data to initialize the object.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
/// Initializes with default values
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents a request object for native markup, including details about the ad’s context, placement, and supported features.
SWIFT_CLASS_NAMED("NativeMarkupRequestObject")
@interface ADVIEW_NativeMarkupRequestObject : NSObject <NSCopying>
/// [Recommended]
/// [Integer]
/// The context in which the ad appears.
/// See NativeContextType
@property (nonatomic, strong) ADVIEW_ContextType * _Nullable context;
/// [Integer]
/// A more detailed context in which the ad appears.
/// See NativeContextSubtype
@property (nonatomic, strong) ADVIEW_ContextSubType * _Nullable contextsubtype;
/// [Recommended]
/// [Integer]
/// The design/format/layout of the ad unit being offered.
/// See NativePlacementType
@property (nonatomic, strong) ADVIEW_PlacementType * _Nullable plcmttype;
/// [Integer]
/// The number of identical placements in this Layout. Refer Section 8.1 Multiplacement Bid Requests for further detail.
@property (nonatomic) NSInteger plcmtcnt;
/// [Integer]
/// 0 for the first ad, 1 for the second ad, and so on.
/// Note this would generally NOT be used in combination with plcmtcnt -
/// either you are auctioning multiple identical placements (in which case plcmtcnt>1, seq=0)
/// or you are holding separate auctions for distinct items in the feed (in which case plcmtcnt=1, seq=>=1)
@property (nonatomic) NSInteger seq;
/// [Required]
/// An array of Asset Objects. Any objects bid response must comply with the array of elements expressed in the bid request.
@property (nonatomic, copy) NSArray<ADVIEW_NativeAsset *> * _Nullable assets;
/// [Integer]
/// Whether the supply source / impression supports returning an assetsurl instead of an asset object. 0 or the absence of the field indicates no such support.
@property (nonatomic) NSInteger aurlsupport;
/// [Integer]
/// Whether the supply source / impression supports returning a dco url instead of an asset object. 0 or the absence of the field indicates no such support.
/// Beta feature.
@property (nonatomic) NSInteger durlsupport;
/// Specifies what type of event objects tracking is supported - see Event Trackers Request Object
@property (nonatomic, copy) NSArray<ADVIEW_NativeEventTracker *> * _Nullable eventtrackers;
/// [Recommended]
/// [Integer]
/// Set to 1 when the native ad supports buyer-specific privacy notice. Set to 0 (or field absent) when the native ad doesn’t support custom privacy links or if support is unknown.
@property (nonatomic) NSInteger privacy;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a <code>NativeMarkupRequestObject</code> with default values.
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
/// Creates a copy of the current <code>NativeMarkupRequestObject</code> instance.
/// \param zone An optional zone for the copy operation.
///
///
/// returns:
/// A copy of the <code>NativeMarkupRequestObject</code> instance.
- (id _Nonnull)copyWithZone:(struct _NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;
/// Converts the <code>NativeMarkupRequestObject</code> instance to a JSON dictionary.
///
/// returns:
/// A dictionary representation of the <code>NativeMarkupRequestObject</code> instance.
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
/// Converts the <code>NativeMarkupRequestObject</code> instance to a JSON string.
///
/// throws:
/// An error if the conversion to JSON string fails.
///
/// returns:
/// A JSON string representation of the <code>NativeMarkupRequestObject</code> instance.
- (NSString * _Nullable)toJsonStringWithError:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
@end


/// Represents parameters for a native ad request, including assets, event trackers, and configuration settings.
SWIFT_CLASS_NAMED("NativeParameters")
@interface ADVIEW_NativeParameters : NSObject
/// An array of <code>NativeAsset</code> objects representing the assets required for the native ad request.
@property (nonatomic, copy) NSArray<ADVIEW_NativeAsset *> * _Nullable assets;
/// An array of <code>NativeEventTracker</code> objects specifying the event tracking settings for the native ad.
@property (nonatomic, copy) NSArray<ADVIEW_NativeEventTracker *> * _Nullable eventtrackers;
/// The version of the native ad specification being used. Defaults to “1.2”.
@property (nonatomic, copy) NSString * _Nonnull version;
/// The context in which the ad appears. See <code>ContextType</code> for possible values.
@property (nonatomic, strong) ADVIEW_ContextType * _Nullable context;
/// A more detailed context in which the ad appears. See <code>ContextSubType</code> for possible values.
@property (nonatomic, strong) ADVIEW_ContextSubType * _Nullable contextSubType;
/// The design/format/layout of the ad unit being offered. See <code>PlacementType</code> for possible values.
@property (nonatomic, strong) ADVIEW_PlacementType * _Nullable placementType;
/// The number of identical placements in the ad layout. Defaults to 1.
@property (nonatomic) NSInteger placementCount;
/// The sequence number of the ad. Defaults to 0.
@property (nonatomic) NSInteger sequence;
/// Indicates whether the supply source/impression supports returning an <code>assetsurl</code> instead of an asset object.
/// Defaults to 0, indicating no support.
@property (nonatomic) NSInteger asseturlsupport;
/// Indicates whether the supply source/impression supports returning a <code>dco</code> URL instead of an asset object.
/// Defaults to 0, indicating no support.
@property (nonatomic) NSInteger durlsupport;
/// Indicates whether the supply source/impression supports returning a <code>dco</code> URL instead of an asset object.
/// Defaults to 0, indicating no support.
@property (nonatomic) NSInteger privacy;
/// A placeholder for custom JSON agreed to by the parties to support flexibility beyond the standard specification.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents the title element in a native ad, including optional text and length.
SWIFT_CLASS_NAMED("NativeTitle")
@interface ADVIEW_NativeTitle : NSObject
/// The text associated with the text element.
@property (nonatomic, copy) NSString * _Nullable text;
/// This object is a placeholder that may contain custom JSON agreed to by the parties to support
/// flexibility beyond the standard defined in this specification
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a <code>NativeTitle</code> object from a JSON dictionary.
/// \param jsonDictionary A dictionary containing the JSON representation of the title.
///
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
/// Initializes a <code>NativeTitle</code> object with default values.
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_NetworkType, "NetworkType", open) {
  ADVIEW_NetworkTypeUnknown = 0,
  ADVIEW_NetworkTypeWifi = 2,
  ADVIEW_NetworkTypeCelluar = 3,
  ADVIEW_NetworkTypeOffline = 4,
};


SWIFT_PROTOCOL_NAMED("OMSDKVersionProvider")
@protocol ADVIEW_OMSDKVersionProvider <NSObject>
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull omSDKVersionString;)
+ (NSString * _Nonnull)omSDKVersionString SWIFT_WARN_UNUSED_RESULT;
@end

enum ADVIEW_OpenMeasurementFriendlyObstructionPurpose : NSUInteger;

SWIFT_PROTOCOL_NAMED("OMSession")
@protocol ADVIEW_OMSession <NSObject>
@property (nonatomic, readonly, strong) id <ADVIEW_EventTrackerProtocol> _Nonnull eventTracker;
- (void)start;
- (void)addFriendlyObstruction:(UIView * _Nonnull)friendlyObstruction purpose:(enum ADVIEW_OpenMeasurementFriendlyObstructionPurpose)purpose;
@end

@class NSError;
@class WKWebView;

SWIFT_PROTOCOL_NAMED("OMSessionWrapper")
@protocol ADVIEW_OMSessionWrapper <NSObject>
- (NSString * _Nullable)injectJSLib:(NSString * _Nonnull)html error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
- (id <ADVIEW_OMSession> _Nullable)initializeWebViewSession:(WKWebView * _Nonnull)webView contentUrl:(NSString * _Nullable)contentUrl SWIFT_WARN_UNUSED_RESULT;
- (id <ADVIEW_OMSession> _Nullable)initializeNativeVideoSession:(UIView * _Nonnull)videoView verificationParameters:(ADVIEW_VideoVerificationParameters * _Nullable)verificationParameters SWIFT_WARN_UNUSED_RESULT;
- (id <ADVIEW_OMSession> _Nullable)initializeNativeDisplaySession:(UIView * _Nonnull)view omidJSUrl:(NSString * _Nonnull)omidJSUrl vendorKey:(NSString * _Nullable)vendorKey parameters:(NSString * _Nullable)parameters SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC9AdViewSDK19ORTBAdConfiguration")
@interface ORTBAdConfiguration : NSObject
@property (nonatomic, strong) NSNumber * _Nullable maxVideoDuration;
@property (nonatomic, strong) NSNumber * _Nullable isMuted;
@property (nonatomic, strong) NSNumber * _Nullable closeButtonArea;
@property (nonatomic, copy) NSString * _Nullable closeButtonPosition;
@property (nonatomic, strong) NSNumber * _Nullable skipButtonArea;
@property (nonatomic, copy) NSString * _Nullable skipButtonPosition;
@property (nonatomic, strong) NSNumber * _Nullable skipDelay;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ADVIEW_ORTBContentProducer;
@class ADVIEW_ORTBContentData;

SWIFT_CLASS_NAMED("ORTBAppContent")
@interface ADVIEW_ORTBAppContent : NSObject
/// ID uniquely identifying the content.
@property (nonatomic, copy) NSString * _Nullable id;
/// Episode number.
@property (nonatomic, strong) NSNumber * _Nullable episode;
/// Content title.
@property (nonatomic, copy) NSString * _Nullable title;
/// Content series.
@property (nonatomic, copy) NSString * _Nullable series;
/// Content season.
@property (nonatomic, copy) NSString * _Nullable season;
/// Artist credited with the content.
@property (nonatomic, copy) NSString * _Nullable artist;
/// Genre that best describes the content.
@property (nonatomic, copy) NSString * _Nullable genre;
/// Album to which the content belongs; typically for audio.
@property (nonatomic, copy) NSString * _Nullable album;
/// International Standard Recording Code conforming to ISO-3901.
@property (nonatomic, copy) NSString * _Nullable isrc;
/// This object defines the producer of the content in which the ad will be shown.
@property (nonatomic, strong) ADVIEW_ORTBContentProducer * _Nullable producer;
/// URL of the content, for buy-side contextualization or review.
@property (nonatomic, copy) NSString * _Nullable url;
/// Array of IAB content categories that describe the content producer.
@property (nonatomic, copy) NSArray<NSString *> * _Nullable cat;
/// Production quality.
@property (nonatomic, strong) NSNumber * _Nullable prodq;
/// Type of content (game, video, text, etc.).
@property (nonatomic, strong) NSNumber * _Nullable context;
/// Content rating.
@property (nonatomic, copy) NSString * _Nullable contentrating;
/// User rating of the content.
@property (nonatomic, copy) NSString * _Nullable userrating;
/// Media rating per IQG guidelines.
@property (nonatomic, strong) NSNumber * _Nullable qagmediarating;
/// Comma separated list of keywords describing the content.
@property (nonatomic, copy) NSString * _Nullable keywords;
/// 0 = not live, 1 = content is live.
@property (nonatomic, strong) NSNumber * _Nullable livestream;
/// 0 = indirect, 1 = direct.
@property (nonatomic, strong) NSNumber * _Nullable sourcerelationship;
/// Length of content in seconds; appropriate for video or audio.
@property (nonatomic, strong) NSNumber * _Nullable len;
/// Content language using ISO-639-1-alpha-2.
@property (nonatomic, copy) NSString * _Nullable language;
/// Indicator of whether or not the content is embeddable (e.g., an embeddable video player), where 0 = no, 1 = yes.
@property (nonatomic, strong) NSNumber * _Nullable embeddable;
/// The data and segment objects together allow additional data about the related object (e.g., user, content) to be specified.
@property (nonatomic, copy) NSArray<ADVIEW_ORTBContentData *> * _Nullable data;
/// Placeholder for exchange-specific extensions to OpenRTB.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull toJsonDictionary;
@end

@class ORTBSkadnFidelity;
@class ORTBBidExtSkadnSKOverlay;

SWIFT_CLASS_NAMED("ORTBBidExtSkadn")
@interface ADVIEW_ORTBBidExtSkadn : NSObject
/// Version of SKAdNetwork desired. Must be 2.0 or above
@property (nonatomic, copy) NSString * _Nullable version;
/// Ad network identifier used in signature
@property (nonatomic, copy) NSString * _Nullable network;
/// Campaign ID compatible with Apple’s spec
@property (nonatomic, strong) NSNumber * _Nullable campaign;
/// A four-digit integer that ad networks define to represent the ad campaign. Used in SKAdNetwork 4.0+,
/// replaces Campaign ID <code>campaign</code>. DSPs must generate signatures in 4.0+ using the Source Identifier.
@property (nonatomic, copy) NSString * _Nullable sourceidentifier;
/// ID of advertiser’s app in Apple’s app store
@property (nonatomic, strong) NSNumber * _Nullable itunesitem;
/// ID of publisher’s app in Apple’s app store
@property (nonatomic, strong) NSNumber * _Nullable sourceapp;
/// Supports multiple fidelity types introduced in SKAdNetwork v2.2
@property (nonatomic, copy) NSArray<ORTBSkadnFidelity *> * _Nullable fidelities;
/// SKOverlay Support
@property (nonatomic, strong) ORTBBidExtSkadnSKOverlay * _Nullable skoverlay;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end


SWIFT_CLASS("_TtC9AdViewSDK24ORTBBidExtSkadnSKOverlay")
@interface ORTBBidExtSkadnSKOverlay : NSObject
/// Delay before presenting SKOverlay in seconds, required for overlay to be shown
@property (nonatomic, strong) NSNumber * _Nullable delay;
/// Delay before presenting SKOverlay on an endcard in seconds, required for overlay to be shown
@property (nonatomic, strong) NSNumber * _Nullable endcarddelay;
/// Whether overlay can be dismissed by user, 0 = no, 1 = yes
@property (nonatomic, strong) NSNumber * _Nullable dismissible;
/// Position of the overlay, 0 = bottom, 1 = bottom raised
@property (nonatomic, strong) NSNumber * _Nullable pos;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ORTBBidResponseExtPrebid;

SWIFT_CLASS("_TtC9AdViewSDK18ORTBBidResponseExt")
@interface ORTBBidResponseExt : NSObject
/// [ (bidder: String) -> (millis: Integer) ]
@property (nonatomic, copy) NSDictionary<NSString *, NSNumber *> * _Nullable responsetimemillis;
/// [Integer]
@property (nonatomic, strong) NSNumber * _Nullable tmaxrequest;
@property (nonatomic, strong) ORTBBidResponseExtPrebid * _Nullable extPrebid;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ORTBExtPrebidPassthrough;

SWIFT_CLASS("_TtC9AdViewSDK24ORTBBidResponseExtPrebid")
@interface ORTBBidResponseExtPrebid : NSObject
@property (nonatomic, copy) NSArray<ORTBExtPrebidPassthrough *> * _Nullable passthrough;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ADVIEW_ORTBContentSegment;

SWIFT_CLASS_NAMED("ORTBContentData")
@interface ADVIEW_ORTBContentData : NSObject
/// Exchange-specific ID for the data provider.
@property (nonatomic, copy) NSString * _Nullable id;
/// Exchange-specific name for the data provider.
@property (nonatomic, copy) NSString * _Nullable name;
/// Segment objects are essentially key-value pairs that convey specific units of data.
@property (nonatomic, copy) NSArray<ADVIEW_ORTBContentSegment *> * _Nullable segment;
/// Placeholder for exchange-specific extensions to OpenRTB.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull toJsonDictionary;
@end


SWIFT_CLASS_NAMED("ORTBContentProducer")
@interface ADVIEW_ORTBContentProducer : NSObject
/// Content producer or originator ID.
@property (nonatomic, copy) NSString * _Nullable id;
/// Content producer or originator name
@property (nonatomic, copy) NSString * _Nullable name;
/// Array of IAB content categories that describe the content producer.
@property (nonatomic, copy) NSArray<NSString *> * _Nullable cat;
/// Highest level domain of the content producer.
@property (nonatomic, copy) NSString * _Nullable domain;
/// Placeholder for exchange-specific extensions to OpenRTB.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull toJsonDictionary;
@end


SWIFT_CLASS_NAMED("ORTBContentSegment")
@interface ADVIEW_ORTBContentSegment : NSObject
/// ID of the data segment specific to the data provider.
@property (nonatomic, copy) NSString * _Nullable id;
/// Name of the data segment specific to the data provider.
@property (nonatomic, copy) NSString * _Nullable name;
/// String representation of the data segment value.
@property (nonatomic, copy) NSString * _Nullable value;
/// Placeholder for exchange-specific extensions to OpenRTB.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull toJsonDictionary;
@end


SWIFT_CLASS("_TtC9AdViewSDK19ORTBExtPrebidEvents")
@interface ORTBExtPrebidEvents : NSObject
@property (nonatomic, copy) NSString * _Nullable win;
@property (nonatomic, copy) NSString * _Nullable imp;
@property (nonatomic, copy) NSString * _Nullable click;
/// Ad content loaded / ready-to-show URL (<code>ext.prebid.events.loaded</code>). Legacy key <code>load</code> is still accepted when decoding.
@property (nonatomic, copy) NSString * _Nullable loaded;
/// Ad hidden in window while still attached (e.g. alpha/hidden) URL (<code>ext.prebid.events.hidden</code>). Legacy key <code>hide</code> is still accepted when decoding.
@property (nonatomic, copy) NSString * _Nullable hidden;
/// View removed from window URL (<code>ext.prebid.events.removeview</code>).
@property (nonatomic, copy) NSString * _Nullable removeview;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ADVIEW_ORTBSDKConfiguration;

SWIFT_CLASS("_TtC9AdViewSDK24ORTBExtPrebidPassthrough")
@interface ORTBExtPrebidPassthrough : NSObject
@property (nonatomic, copy) NSString * _Nullable type;
@property (nonatomic, strong) ORTBAdConfiguration * _Nullable adConfiguration;
@property (nonatomic, strong) ADVIEW_ORTBSDKConfiguration * _Nullable sdkConfiguration;
@property (nonatomic, strong) ORTBRewardedConfiguration * _Nullable rewardedConfiguration;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end


SWIFT_CLASS_NAMED("ORTBMacrosHelper")
@interface ADVIEW_ORTBMacrosHelper : NSObject
- (nonnull instancetype)initWithBid:(Bid * _Nonnull)bid;
- (NSString * _Nullable)replaceMacrosInString:(NSString * _Nullable)sourceString SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("ORTBNative")
@interface ADVIEW_ORTBNative : NSObject
/// [Required]
/// Request payload complying with the Native Ad Specification.
@property (nonatomic, copy) NSString * _Nullable request;
/// [Recommended]
/// Version of the Dynamic Native Ads API to which <code>request</code> complies; highly recommended for efficient parsing.
@property (nonatomic, copy) NSString * _Nullable ver;
/// [Integer Array]
/// List of supported API frameworks for this impression. Refer to List 5.6. If an API is not explicitly listed, it is assumed not to be supported.
@property (nonatomic, copy) NSArray<NSNumber *> * _Nullable api;
/// [Integer Array]
/// Blocked creative attributes. Refer to List 5.3.
@property (nonatomic, copy) NSArray<NSNumber *> * _Nullable battr;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull toJsonDictionary;
@end

typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_ORTBNoBidReasonCode, "ORTBNoBidReasonCode", open) {
  ADVIEW_ORTBNoBidReasonCodeUnknownError = 0,
  ADVIEW_ORTBNoBidReasonCodeTechnicalError = 1,
  ADVIEW_ORTBNoBidReasonCodeInvalidRequest = 2,
  ADVIEW_ORTBNoBidReasonCodeKnownWebSpider = 3,
  ADVIEW_ORTBNoBidReasonCodeSuspectedNonHumanTraffic = 4,
  ADVIEW_ORTBNoBidReasonCodeCloudDataCenterOrProxyIP = 5,
  ADVIEW_ORTBNoBidReasonCodeUnsupportedDevice = 6,
  ADVIEW_ORTBNoBidReasonCodeBlockedPublisherOrSite = 7,
  ADVIEW_ORTBNoBidReasonCodeUnmatchedUser = 8,
  ADVIEW_ORTBNoBidReasonCodeDailyReaderCapMet = 9,
  ADVIEW_ORTBNoBidReasonCodeDailyDomainCapMet = 10,
};


/// Describes the close behavior. How should the SDK manage the ad when it is encountered as viewed
SWIFT_CLASS("_TtC9AdViewSDK17ORTBRewardedClose")
@interface ORTBRewardedClose : NSObject
/// The time interval in seconds passed after the reward event when SDK should close the interstitial
@property (nonatomic, strong) NSNumber * _Nullable postrewardtime;
/// The action that SDK should do.
/// Available options:
/// <ul>
///   <li>
///     autoclose - close the interstitial;
///   </li>
///   <li>
///     closebutton - show the close button.
///   </li>
/// </ul>
@property (nonatomic, copy) NSString * _Nullable action;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ORTBRewardedCompletionBanner;
@class ORTBRewardedCompletionVideo;

/// Describes the condition when the SDK should send a signal to the application that the user has earned the reward.
SWIFT_CLASS("_TtC9AdViewSDK22ORTBRewardedCompletion")
@interface ORTBRewardedCompletion : NSObject
@property (nonatomic, strong) ORTBRewardedCompletionBanner * _Nullable banner;
@property (nonatomic, strong) ORTBRewardedCompletionVideo * _Nullable video;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end


SWIFT_CLASS("_TtC9AdViewSDK28ORTBRewardedCompletionBanner")
@interface ORTBRewardedCompletionBanner : NSObject
/// The period of time that the ad is on the screen and the user earns a reward
@property (nonatomic, strong) NSNumber * _Nullable time;
/// The URL with a custom schema that will be sent by the creative and should be caught by the SDK
@property (nonatomic, copy) NSString * _Nullable event;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ORTBRewardedCompletionVideoEndcard;

SWIFT_CLASS("_TtC9AdViewSDK27ORTBRewardedCompletionVideo")
@interface ORTBRewardedCompletionVideo : NSObject
/// The period of time that the ad is on the screen and the user earns a reward
@property (nonatomic, strong) NSNumber * _Nullable time;
/// The playback part when the user earns a reward
@property (nonatomic, copy) NSString * _Nullable playbackevent;
/// Endcard completion criteria
@property (nonatomic, strong) ORTBRewardedCompletionVideoEndcard * _Nullable endcard;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end


SWIFT_CLASS("_TtC9AdViewSDK34ORTBRewardedCompletionVideoEndcard")
@interface ORTBRewardedCompletionVideoEndcard : NSObject
/// The period of time that the ad is on the screen and the user earns a reward
@property (nonatomic, strong) NSNumber * _Nullable time;
/// The URL with a custom schema that will be sent by the creative and should be caught by the SDK
@property (nonatomic, copy) NSString * _Nullable event;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class ORTBRewardedReward;

SWIFT_CLASS("_TtC9AdViewSDK25ORTBRewardedConfiguration")
@interface ORTBRewardedConfiguration : NSObject
/// Metadata provided by the publisher to describe the reward.
@property (nonatomic, strong) ORTBRewardedReward * _Nullable reward;
/// Describes the condition when the SDK should send a signal to the application that the user has earned the reward.
@property (nonatomic, strong) ORTBRewardedCompletion * _Nullable completion;
/// Describes the close behavior. How should the SDK manage the ad when it is encountered as viewed.
@property (nonatomic, strong) ORTBRewardedClose * _Nullable close;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end


SWIFT_CLASS("_TtC9AdViewSDK18ORTBRewardedReward")
@interface ORTBRewardedReward : NSObject
/// Type of the reward
@property (nonatomic, copy) NSString * _Nullable type;
/// Amount of reward
@property (nonatomic, strong) NSNumber * _Nullable count;
/// For the future extensions
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end


SWIFT_CLASS_NAMED("ORTBSDKConfiguration")
@interface ADVIEW_ORTBSDKConfiguration : NSObject
@property (nonatomic, strong) NSNumber * _Nullable cftBanner;
@property (nonatomic, strong) NSNumber * _Nullable cftPreRender;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

@class NSUUID;

SWIFT_CLASS("_TtC9AdViewSDK17ORTBSkadnFidelity")
@interface ORTBSkadnFidelity : NSObject
/// The fidelity-type of the attribution to track
@property (nonatomic, strong) NSNumber * _Nullable fidelity;
/// SKAdNetwork signature as specified by Apple
@property (nonatomic, copy) NSString * _Nullable signature;
/// An id unique to each ad response. Refer to Apple’s documentation for the proper UUID format requirements
@property (nonatomic, copy) NSUUID * _Nullable nonce;
/// Unix time in millis string used at the time of signature
@property (nonatomic, strong) NSNumber * _Nullable timestamp;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithJsonDictionary:(NSDictionary<NSString *, id> * _Nonnull)jsonDictionary OBJC_DESIGNATED_INITIALIZER;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull jsonDictionary;
@end

typedef SWIFT_ENUM_NAMED(NSUInteger, ADVIEW_OpenMeasurementFriendlyObstructionPurpose, "OpenMeasurementFriendlyObstructionPurpose", open) {
  ADVIEW_OpenMeasurementFriendlyObstructionPurposeWindowLockerBackground = 0,
  ADVIEW_OpenMeasurementFriendlyObstructionPurposeWindowLockerActivityIndicator = 1,
  ADVIEW_OpenMeasurementFriendlyObstructionPurposeModalViewControllerView = 2,
  ADVIEW_OpenMeasurementFriendlyObstructionPurposeModalViewControllerClose = 3,
  ADVIEW_OpenMeasurementFriendlyObstructionPurposeVideoViewLearnMoreButton = 4,
  ADVIEW_OpenMeasurementFriendlyObstructionPurposeVideoViewProgressBar = 5,
  ADVIEW_OpenMeasurementFriendlyObstructionPurposePurposesCount = 6,
};

@class ADVIEW_ErrorType;
enum ADVIEW_ErrorCode : NSInteger;

SWIFT_CLASS_NAMED("PBMError")
@interface ADVIEW_Error : NSError
@property (nonatomic, readonly, copy) NSString * _Nullable message;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
+ (ADVIEW_Error * _Nonnull)errorWithMessage:(NSString * _Nonnull)message type:(ADVIEW_ErrorType * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
+ (ADVIEW_Error * _Nonnull)errorWithDescription:(NSString * _Nonnull)description SWIFT_WARN_UNUSED_RESULT;
+ (ADVIEW_Error * _Nonnull)errorWithDescription:(NSString * _Nonnull)description statusCode:(enum ADVIEW_ErrorCode)statusCode SWIFT_WARN_UNUSED_RESULT;
+ (BOOL)createError:(NSError * _Nullable * _Nullable)error message:(NSString * _Nonnull)message type:(ADVIEW_ErrorType * _Nonnull)type;
+ (BOOL)createError:(NSError * _Nullable * _Nullable)error description:(NSString * _Nonnull)description;
+ (BOOL)createError:(NSError * _Nullable * _Nullable)error description:(NSString * _Nonnull)description statusCode:(enum ADVIEW_ErrorCode)statusCode;
+ (NSError * _Nonnull)requestInProgress SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)prebidInvalidAccountId SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)prebidInvalidConfigId SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)prebidInvalidSize SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)prebidServerURLInvalid:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)serverError:(NSString * _Nonnull)errorBody SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)jsonDictNotFound SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)responseDeserializationFailed SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)blankResponse SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)noWinningBid SWIFT_WARN_UNUSED_RESULT;
+ (NSError * _Nonnull)prebidNoVastTagInMediaData SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithDomain:(NSString * _Nonnull)domain code:(NSInteger)code userInfo:(NSDictionary<NSString *, id> * _Nullable)dict SWIFT_UNAVAILABLE;
@end

typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_ErrorCode, "PBMErrorCode", open) {
  ADVIEW_ErrorCodeGeneralLinear = 400,
  ADVIEW_ErrorCodeFileNotFound = 401,
  ADVIEW_ErrorCodeGeneralNonLinearAds = 500,
  ADVIEW_ErrorCodeGeneral = 700,
  ADVIEW_ErrorCodeUndefined = 900,
};


SWIFT_CLASS_NAMED("PBMErrorType")
@interface ADVIEW_ErrorType : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull rawValue;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ErrorType * _Nonnull invalidRequest;)
+ (ADVIEW_ErrorType * _Nonnull)invalidRequest SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ErrorType * _Nonnull internalError;)
+ (ADVIEW_ErrorType * _Nonnull)internalError SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ErrorType * _Nonnull initError;)
+ (ADVIEW_ErrorType * _Nonnull)initError SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_ErrorType * _Nonnull serverError;)
+ (ADVIEW_ErrorType * _Nonnull)serverError SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS("_TtC9AdViewSDK18PBMORTBNoBidReason")
@interface PBMORTBNoBidReason : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+ (NSString * _Nonnull)noBidReasonFrom:(enum ADVIEW_ORTBNoBidReasonCode)code SWIFT_WARN_UNUSED_RESULT;
@end


@class NSURLQueryItem;

SWIFT_CLASS_NAMED("PathBuilder")
@interface ADVIEW_PathBuilder : NSObject
+ (NSString * _Nullable)buildURLFor:(NSString * _Nonnull)host path:(NSString * _Nonnull)path queryItems:(NSArray<NSURLQueryItem *> * _Nullable)queryItems SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Represents different types of placements for native ads.
SWIFT_CLASS_NAMED("PlacementType")
@interface ADVIEW_PlacementType : ADVIEW_SingleContainerInt
/// Placement type indicating the ad appears within feed content.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlacementType * _Nonnull FeedContent;)
+ (ADVIEW_PlacementType * _Nonnull)FeedContent SWIFT_WARN_UNUSED_RESULT;
/// Placement type indicating the ad appears within atomic content.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlacementType * _Nonnull AtomicContent;)
+ (ADVIEW_PlacementType * _Nonnull)AtomicContent SWIFT_WARN_UNUSED_RESULT;
/// Placement type indicating the ad appears outside of content.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlacementType * _Nonnull OutsideContent;)
+ (ADVIEW_PlacementType * _Nonnull)OutsideContent SWIFT_WARN_UNUSED_RESULT;
/// Placement type indicating the ad appears within a recommendation widget.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlacementType * _Nonnull RecommendationWidget;)
+ (ADVIEW_PlacementType * _Nonnull)RecommendationWidget SWIFT_WARN_UNUSED_RESULT;
/// Placement type for custom placements not predefined in the standard.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlacementType * _Nonnull Custom;)
+ (ADVIEW_PlacementType * _Nonnull)Custom SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// Enum representing various positions on the screen.
/// This enum defines positions that can be used for placing elements within an ad. The positions are typically used to determine where controls or components should be located within the ad’s user interface.
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_Position, "Position", open) {
  ADVIEW_PositionUndefined = -1,
  ADVIEW_PositionTopLeft = 0,
  ADVIEW_PositionTopCenter = 1,
  ADVIEW_PositionTopRight = 2,
  ADVIEW_PositionCenter = 3,
  ADVIEW_PositionBottomLeft = 4,
  ADVIEW_PositionBottomCenter = 5,
  ADVIEW_PositionBottomRight = 6,
  ADVIEW_PositionCustom = 7,
};



SWIFT_CLASS_NAMED("Reachability")
@interface ADVIEW_Reachability : NSObject
/// Shared instance for checking whether the default route is available.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Reachability * _Nonnull shared;)
+ (ADVIEW_Reachability * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) enum ADVIEW_NetworkType currentReachabilityStatus;
/// Returns true is network is reachable otherwise returns false
@property (nonatomic, readonly) BOOL isNetworkReachable;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- (void)stopNotifier;
/// Starts monitoring of the network status.
/// Calls the reachableBlock when network is restored
- (void)onNetworkRestored:(void (^ _Nonnull)(ADVIEW_Reachability * _Nullable))reachableBlock;
@end

/// Enum representing the result codes for various operations within the AdViewSDK.
/// This enum provides a range of result codes indicating different outcomes or errors that may occur during SDK operations. Each case corresponds to a specific result or error, which helps in diagnosing issues and understanding the status of SDK operations.
typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_ResultCode, "ResultCode", open) {
/// The demand fetch request was successful.
  ADVIEW_ResultCodePrebidDemandFetchSuccess = 0,
/// The AdView server was not specified in the request.
  ADVIEW_ResultCodePrebidServerNotSpecified = 1,
/// The account ID provided is not recognized by the AdView server.
  ADVIEW_ResultCodePrebidInvalidAccountId = 2,
/// The config ID provided is not recognized by the AdView server.
  ADVIEW_ResultCodePrebidInvalidConfigId = 3,
/// The size requested is not recognized by the AdView server.
  ADVIEW_ResultCodePrebidInvalidSize = 4,
/// There was a network error during the operation.
  ADVIEW_ResultCodePrebidNetworkError = 5,
/// The AdView server encountered an error while processing the request.
  ADVIEW_ResultCodePrebidServerError = 6,
/// The AdView server did not return any bids.
  ADVIEW_ResultCodePrebidDemandNoBids = 7,
/// The demand request timed out.
  ADVIEW_ResultCodePrebidDemandTimedOut = 8,
/// The URL of the AdView server is invalid.
  ADVIEW_ResultCodePrebidServerURLInvalid = 9,
/// An unknown error occurred within the AdViewSDK.
  ADVIEW_ResultCodePrebidUnknownError = 10,
/// The structure of the response received is invalid.
  ADVIEW_ResultCodePrebidInvalidResponseStructure = 1000,
/// An internal error occurred within the SDK.
  ADVIEW_ResultCodePrebidInternalSDKError = 7000,
/// Incorrect arguments were provided to the SDK.
  ADVIEW_ResultCodePrebidWrongArguments = 7001,
/// No VAST tag was found in the media data.
  ADVIEW_ResultCodePrebidNoVastTagInMediaData = 7002,
/// Misuse of the SDK was detected.
  ADVIEW_ResultCodePrebidSDKMisuse = 8000,
/// SDK misuse due to a previous fetch operation not being completed yet.
  ADVIEW_ResultCodePrebidSDKMisusePreviousFetchNotCompletedYet = 8001,
/// The AdView request does not contain any parameters.
  ADVIEW_ResultCodePrebidInvalidRequest = 8002,
};

@protocol ADVIEW_RewardedAdUnitDelegate;

/// Represents an rewarded ad unit. Built for rendering type of integration.
SWIFT_CLASS_NAMED("RewardedAdUnit")
@interface ADVIEW_RewardedAdUnit : NSObject
/// A delegate for handling interactions with the ad unit.
@property (nonatomic, weak) id <ADVIEW_RewardedAdUnitDelegate> _Nullable delegate;
/// A Boolean value indicating whether the ad unit is ready to be displayed.
@property (nonatomic, readonly) BOOL isReady;
/// The set of ad formats supported by this ad unit.
@property (nonatomic, copy) NSSet<ADVIEW_AdFormat *> * _Nonnull adFormats;
/// The position of the ad on the screen.
@property (nonatomic) enum ADVIEW_AdPosition adPosition;
/// The banner parameters used for configuring ad unit.
@property (nonatomic, readonly, strong) ADVIEW_BannerParameters * _Nonnull bannerParameters;
/// The video parameters used for configuring ad unit.
@property (nonatomic, readonly, strong) ADVIEW_VideoParameters * _Nonnull videoParameters;
/// A flag that determines whether SKOverlay should be supported
@property (nonatomic) BOOL supportSKOverlay;
/// The area of the close button in the video controls as a percentage.
@property (nonatomic) double closeButtonArea;
/// The position of the close button in the video controls.
@property (nonatomic) enum ADVIEW_Position closeButtonPosition;
/// A Boolean value indicating whether the video controls are muted.
@property (nonatomic) BOOL isMuted;
/// A Boolean value indicating whether the sound button is visible in the video controls.
@property (nonatomic) BOOL isSoundButtonVisible;
/// Initializes a new <code>BaseInterstitialAdUnit</code> with the specified configuration ID.
/// \param configID The unique identifier for the ad unit configuration.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID;
/// Initializes a new <code>InterstitialRenderingAdUnit</code> with the specified configuration ID and minimum size percentage.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param minSizePercentage The minimum size percentage for the ad unit.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID minSizePercentage:(CGSize)minSizePercentage;
/// Initializes a new <code>InterstitialRenderingAdUnit</code> with the specified configuration ID and event handler.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param eventHandler An object for handling ad events.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID eventHandler:(id _Nullable)eventHandler;
/// Initializes a new <code>InterstitialRenderingAdUnit</code> with the specified configuration ID, minimum size percentage, and event handler.
/// \param configID The unique identifier for the ad unit configuration.
///
/// \param minSizePercentage The minimum size percentage for the ad unit.
///
/// \param eventHandler An object for handling ad events.
///
- (nonnull instancetype)initWithConfigID:(NSString * _Nonnull)configID minSizePercentage:(CGSize)minSizePercentage eventHandler:(id _Nonnull)eventHandler;
/// Loads a new ad.
- (void)loadAd;
/// Shows the ad from a specified view controller.
/// note:
/// This method must be called on the main thread.
/// \param controller The view controller from which the ad will be presented.
///
- (void)showFrom:(UIViewController * _Nonnull)controller;
/// Sets the impression-level OpenRTB configuration string for the ad unit.
/// \param ortbConfig The impression-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setImpORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the impression-level OpenRTB configuration string.
- (NSString * _Nullable)getImpORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Sets the global OpenRTB configuration string for the ad unit. It takes precedence over <code>Targeting.setGlobalOrtbConfig</code>.
/// \param ortbConfig The global OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// Protocol for interaction with the RewardedAdUnit
/// All messages will be invoked on the main thread.
SWIFT_PROTOCOL_NAMED("RewardedAdUnitDelegate")
@protocol ADVIEW_RewardedAdUnitDelegate <NSObject>
@optional
/// Called when an ad is loaded and ready for display
- (void)rewardedAdDidReceiveAd:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd;
/// Called when user is able to receive a reward from the app
- (void)rewardedAdUserDidEarnReward:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd reward:(ADVIEW_Reward * _Nonnull)reward;
/// Called when the load process fails to produce a viable ad
- (void)rewardedAd:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd didFailToReceiveAdWithError:(NSError * _Nullable)error;
/// Called when the interstitial view will be launched,  as a result of show() method.
- (void)rewardedAdWillPresentAd:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd;
/// Called when the interstial is dismissed by the user
- (void)rewardedAdDidDismissAd:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd;
/// Called when an ad causes the sdk to leave the app
- (void)rewardedAdWillLeaveApplication:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd;
/// Called when user clicked the ad
- (void)rewardedAdDidClickAd:(ADVIEW_RewardedAdUnit * _Nonnull)rewardedAd;
@end


SWIFT_CLASS_NAMED("RewardedConfig")
@interface ADVIEW_RewardedConfig : NSObject
@property (nonatomic, readonly, strong) ADVIEW_Reward * _Nullable reward;
@property (nonatomic, readonly, strong) NSNumber * _Nullable bannerTime;
@property (nonatomic, readonly, copy) NSString * _Nullable bannerEvent;
@property (nonatomic, readonly, strong) NSNumber * _Nullable videoTime;
@property (nonatomic, readonly, copy) NSString * _Nullable videoPlaybackevent;
@property (nonatomic, readonly, strong) NSNumber * _Nullable endcardTime;
@property (nonatomic, readonly, copy) NSString * _Nullable endcardEvent;
@property (nonatomic, readonly, copy) NSString * _Nullable closeAction;
@property (nonatomic, readonly, strong) NSNumber * _Nullable postRewardTime;
/// The timeout duration for rewarded completion, measured in seconds.
@property (nonatomic, readonly, strong) NSNumber * _Nonnull defaultCompletionTime;
/// The playback event when the SDK should send a signal to the application that the user has earned the reward
@property (nonatomic, readonly, copy) NSString * _Nonnull defaultVideoPlaybackEvent;
- (nonnull instancetype)initWithOrtbRewarded:(ORTBRewardedConfiguration * _Nullable)ortbRewarded OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@protocol ADVIEW_RewardedEventInteractionDelegate;

/// A protocol for handling events related to rewarded ads.
/// This protocol extends <code>PBMInterstitialAd</code> and defines properties for delegates that handle events related to the ad server communication and user interactions with rewarded ads. Implementing this protocol allows for custom handling of these events within the rewarded ad lifecycle.
SWIFT_PROTOCOL_NAMED("RewardedEventHandlerProtocol")
@protocol ADVIEW_RewardedEventHandlerProtocol <ADVIEW_InterstitialAd>
/// Delegate for custom event handler to inform the PBM SDK about the events related to the ad server communication.
@property (nonatomic, weak) id <ADVIEW_InterstitialEventLoadingDelegate> _Nullable loadingDelegate;
/// Delegate for custom event handler to inform the PBM SDK about the events related to the user’s interaction with the ad.
@property (nonatomic, weak) id <ADVIEW_RewardedEventInteractionDelegate> _Nullable interactionDelegate;
@end


SWIFT_CLASS("_TtC9AdViewSDK30RewardedEventHandlerStandalone")
@interface RewardedEventHandlerStandalone : NSObject <ADVIEW_RewardedEventHandlerProtocol>
@property (nonatomic, weak) id <ADVIEW_InterstitialEventLoadingDelegate> _Nullable loadingDelegate;
@property (nonatomic, weak) id <ADVIEW_RewardedEventInteractionDelegate> _Nullable interactionDelegate;
@property (nonatomic, readonly) BOOL isReady;
- (void)showFromViewController:(UIViewController * _Nullable)controller;
- (void)requestAdWithBidResponse:(BidResponse * _Nullable)bidResponse;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("RewardedEventInteractionDelegate")
@protocol ADVIEW_RewardedEventInteractionDelegate <ADVIEW_InterstitialEventInteractionDelegate>
/// Call this when the ad server SDK decides the user has earned reward
- (void)userDidEarnReward:(ADVIEW_Reward * _Nullable)reward;
@end


/// Tracks SDK session runtime and cumulative app/SDK launch count for OpenRTB <code>app.ext</code>.
SWIFT_CLASS_NAMED("RuntimeTracker")
@interface ADVIEW_RuntimeTracker : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_RuntimeTracker * _Nonnull shared;)
+ (ADVIEW_RuntimeTracker * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// Call once when the SDK is initialized for the current process.
/// Records session start time and increments persisted launch count at most once per process.
- (void)markInitialized;
/// Seconds since SDK initialization in this process. <code>0</code> if not yet initialized.
@property (nonatomic, readonly) NSInteger runningTimeSeconds;
/// Cumulative SDK / app launch count (persisted).
@property (nonatomic, readonly) NSInteger runningCnt;
@end


/// A logger implementation for AdViewSDK that logs messages to the console.
SWIFT_CLASS("_TtC9AdViewSDK16SDKConsoleLogger")
@interface SDKConsoleLogger : NSObject <ADVIEW_PrebidLogger>
- (void)error:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (void)info:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (void)debug:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (void)verbose:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (void)warn:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (void)severe:(id _Nonnull)object filename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (void)whereAmIWithFilename:(NSString * _Nonnull)filename line:(NSInteger)line function:(NSString * _Nonnull)function;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("SKOverlayManager")
@interface ADVIEW_SKOverlayManager : NSObject
- (nonnull instancetype)initWithViewControllerForPresentation:(UIViewController * _Nonnull)viewControllerForPresentation OBJC_DESIGNATED_INITIALIZER;
- (void)presentSKOverlayWith:(ADVIEW_ORTBBidExtSkadn * _Nonnull)skadnInfo isCompanionAd:(BOOL)isCompanionAd;
- (void)dismissSKOverlay;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("ServerEvent")
@interface ADVIEW_ServerEvent : NSObject
- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url expectedEventType:(enum ADVIEW_TrackingEvent)expectedEventType OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// A class containing constants related to OpenRTB signals.
/// This class provides static constants and values representing different
/// API frameworks, playback methods, protocols, start delays, and video
/// placement types as defined in the OpenRTB specification.
SWIFT_CLASS_NAMED("Signals")
@interface ADVIEW_Signals : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - API Frameworks</h1>
/// \code
/// | Value | Description |
/// |-------|-------------|
/// | 1     | VPAID 1.0   |
/// | 2     | VPAID 2.0   |
/// | 3     | MRAID-1     |
/// | 4     | ORMMA       |
/// | 5     | MRAID-2     |
/// | 6     | MRAID-3     |
/// | 7     | OMID-1      |
///
/// \endcode
SWIFT_CLASS_NAMED("Api")
@interface ADVIEW_Api : ADVIEW_SingleContainerInt
/// VPAID 1.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull VPAID_1;)
+ (ADVIEW_Api * _Nonnull)VPAID_1 SWIFT_WARN_UNUSED_RESULT;
/// VPAID 2.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull VPAID_2;)
+ (ADVIEW_Api * _Nonnull)VPAID_2 SWIFT_WARN_UNUSED_RESULT;
/// MRAID-1
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull MRAID_1;)
+ (ADVIEW_Api * _Nonnull)MRAID_1 SWIFT_WARN_UNUSED_RESULT;
/// ORMMA
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull ORMMA;)
+ (ADVIEW_Api * _Nonnull)ORMMA SWIFT_WARN_UNUSED_RESULT;
/// MRAID-2
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull MRAID_2;)
+ (ADVIEW_Api * _Nonnull)MRAID_2 SWIFT_WARN_UNUSED_RESULT;
/// MRAID-3
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull MRAID_3;)
+ (ADVIEW_Api * _Nonnull)MRAID_3 SWIFT_WARN_UNUSED_RESULT;
/// OMID-1
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Api * _Nonnull OMID_1;)
+ (ADVIEW_Api * _Nonnull)OMID_1 SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - Playback Methods</h1>
/// \code
/// | Value | Description                                              |
/// |-------|----------------------------------------------------------|
/// | 1     | Initiates on Page Load with Sound On                     |
/// | 2     | Initiates on Page Load with Sound Off by Default         |
/// | 3     | Initiates on Click with Sound On                         |
/// | 4     | Initiates on Mouse-Over with Sound On                    |
/// | 5     | Initiates on Entering Viewport with Sound On             |
/// | 6     | Initiates on Entering Viewport with Sound Off by Default |
///
/// \endcode
SWIFT_CLASS_NAMED("PlaybackMethod")
@interface ADVIEW_PlaybackMethod : ADVIEW_SingleContainerInt
/// Initiates on Page Load with Sound On
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlaybackMethod * _Nonnull AutoPlaySoundOn;)
+ (ADVIEW_PlaybackMethod * _Nonnull)AutoPlaySoundOn SWIFT_WARN_UNUSED_RESULT;
/// Initiates on Page Load with Sound Off by Default
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlaybackMethod * _Nonnull AutoPlaySoundOff;)
+ (ADVIEW_PlaybackMethod * _Nonnull)AutoPlaySoundOff SWIFT_WARN_UNUSED_RESULT;
/// Initiates on Click with Sound On
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlaybackMethod * _Nonnull ClickToPlay;)
+ (ADVIEW_PlaybackMethod * _Nonnull)ClickToPlay SWIFT_WARN_UNUSED_RESULT;
/// Initiates on Mouse-Over with Sound On
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlaybackMethod * _Nonnull MouseOver;)
+ (ADVIEW_PlaybackMethod * _Nonnull)MouseOver SWIFT_WARN_UNUSED_RESULT;
/// Initiates on Entering Viewport with Sound On
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlaybackMethod * _Nonnull EnterSoundOn;)
+ (ADVIEW_PlaybackMethod * _Nonnull)EnterSoundOn SWIFT_WARN_UNUSED_RESULT;
/// Initiates on Entering Viewport with Sound Off by Default
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_PlaybackMethod * _Nonnull EnterSoundOff;)
+ (ADVIEW_PlaybackMethod * _Nonnull)EnterSoundOff SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - Protocols</h1>
/// \code
/// | Value | Description       |
/// |-------|-------------------|
/// | 1     | VAST 1.0          |
/// | 2     | VAST 2.0          |
/// | 3     | VAST 3.0          |
/// | 4     | VAST 1.0 Wrapper  |
/// | 5     | VAST 2.0 Wrapper  |
/// | 6     | VAST 3.0 Wrapper  |
/// | 7     | VAST 4.0          |
/// | 8     | VAST 4.0 Wrapper  |
/// | 9     | DAAST 1.0         |
/// | 10    | DAAST 1.0 Wrapper |
///
/// \endcode
SWIFT_CLASS_NAMED("Protocols")
@interface ADVIEW_Protocols : ADVIEW_SingleContainerInt
/// VAST 1.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_1_0;)
+ (ADVIEW_Protocols * _Nonnull)VAST_1_0 SWIFT_WARN_UNUSED_RESULT;
/// VAST 2.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_2_0;)
+ (ADVIEW_Protocols * _Nonnull)VAST_2_0 SWIFT_WARN_UNUSED_RESULT;
/// VAST 3.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_3_0;)
+ (ADVIEW_Protocols * _Nonnull)VAST_3_0 SWIFT_WARN_UNUSED_RESULT;
/// VAST 1.0 Wrapper
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_1_0_Wrapper;)
+ (ADVIEW_Protocols * _Nonnull)VAST_1_0_Wrapper SWIFT_WARN_UNUSED_RESULT;
/// VAST 2.0 Wrapper
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_2_0_Wrapper;)
+ (ADVIEW_Protocols * _Nonnull)VAST_2_0_Wrapper SWIFT_WARN_UNUSED_RESULT;
/// VAST 3.0 Wrapper
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_3_0_Wrapper;)
+ (ADVIEW_Protocols * _Nonnull)VAST_3_0_Wrapper SWIFT_WARN_UNUSED_RESULT;
/// VAST 4.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_4_0;)
+ (ADVIEW_Protocols * _Nonnull)VAST_4_0 SWIFT_WARN_UNUSED_RESULT;
/// VAST 4.0 Wrapper
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull VAST_4_0_Wrapper;)
+ (ADVIEW_Protocols * _Nonnull)VAST_4_0_Wrapper SWIFT_WARN_UNUSED_RESULT;
/// DAAST 1.0
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull DAAST_1_0;)
+ (ADVIEW_Protocols * _Nonnull)DAAST_1_0 SWIFT_WARN_UNUSED_RESULT;
/// DAAST 1.0 Wrapper
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Protocols * _Nonnull DAAST_1_0_WRAPPER;)
+ (ADVIEW_Protocols * _Nonnull)DAAST_1_0_WRAPPER SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - Start Delay</h1>
/// \code
/// | Value | Description                                      |
/// |-------|--------------------------------------------------|
/// | > 0   | Mid-Roll (value indicates start delay in second) |
/// | 0     | Pre-Roll                                         |
/// | -1    | Generic Mid-Roll                                 |
/// | -2    | Generic Post-Roll                                |
///
/// \endcode
SWIFT_CLASS_NAMED("StartDelay")
@interface ADVIEW_StartDelay : ADVIEW_SingleContainerInt
/// Pre-Roll
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_StartDelay * _Nonnull PreRoll;)
+ (ADVIEW_StartDelay * _Nonnull)PreRoll SWIFT_WARN_UNUSED_RESULT;
/// Generic Mid-Roll
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_StartDelay * _Nonnull GenericMidRoll;)
+ (ADVIEW_StartDelay * _Nonnull)GenericMidRoll SWIFT_WARN_UNUSED_RESULT;
/// Generic Post-Roll
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_StartDelay * _Nonnull GenericPostRoll;)
+ (ADVIEW_StartDelay * _Nonnull)GenericPostRoll SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - Video Placement Types</h1>
/// \code
/// | Value | Description                  |
/// |-------|------------------------------|
/// | 1     | In-Stream                    |
/// | 2     | In-Banner                    |
/// | 3     | In-Article                   |
/// | 4     | In-Feed                      |
/// | 5     | Interstitial/Slider/Floating |
///
/// \endcode
SWIFT_CLASS_NAMED("Placement")
@interface ADVIEW_Placement : ADVIEW_SingleContainerInt
/// In-Stream
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull InStream;)
+ (ADVIEW_Placement * _Nonnull)InStream SWIFT_WARN_UNUSED_RESULT;
/// In-Banner
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull InBanner;)
+ (ADVIEW_Placement * _Nonnull)InBanner SWIFT_WARN_UNUSED_RESULT;
/// In-Article
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull InArticle;)
+ (ADVIEW_Placement * _Nonnull)InArticle SWIFT_WARN_UNUSED_RESULT;
/// In-Feed
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull InFeed;)
+ (ADVIEW_Placement * _Nonnull)InFeed SWIFT_WARN_UNUSED_RESULT;
/// Interstitial
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull Interstitial;)
+ (ADVIEW_Placement * _Nonnull)Interstitial SWIFT_WARN_UNUSED_RESULT;
/// Slider
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull Slider;)
+ (ADVIEW_Placement * _Nonnull)Slider SWIFT_WARN_UNUSED_RESULT;
/// Floating
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Placement * _Nonnull Floating;)
+ (ADVIEW_Placement * _Nonnull)Floating SWIFT_WARN_UNUSED_RESULT;
/// Helper function
+ (ADVIEW_Placement * _Nullable)getPlacementByRawValue:(NSInteger)value SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - Updated Video Placement Types</h1>
/// \code
/// | Value | Description                  |
/// |-------|------------------------------|
/// | 1     | Instream                     |
/// | 2     | Accompanying Content         |
/// | 3     | Interstitial                 |
/// | 4     | No Content/Standalone        |
///
/// \endcode
SWIFT_CLASS_NAMED("Plcmnt")
@interface ADVIEW_Plcmnt : ADVIEW_SingleContainerInt
/// Instream
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Plcmnt * _Nonnull Instream;)
+ (ADVIEW_Plcmnt * _Nonnull)Instream SWIFT_WARN_UNUSED_RESULT;
/// AccompanyingContent
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Plcmnt * _Nonnull AccompanyingContent;)
+ (ADVIEW_Plcmnt * _Nonnull)AccompanyingContent SWIFT_WARN_UNUSED_RESULT;
/// Interstitial
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Plcmnt * _Nonnull Interstitial;)
+ (ADVIEW_Plcmnt * _Nonnull)Interstitial SWIFT_WARN_UNUSED_RESULT;
/// NoContent
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Plcmnt * _Nonnull NoContent;)
+ (ADVIEW_Plcmnt * _Nonnull)NoContent SWIFT_WARN_UNUSED_RESULT;
/// Standalone
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Plcmnt * _Nonnull Standalone;)
+ (ADVIEW_Plcmnt * _Nonnull)Standalone SWIFT_WARN_UNUSED_RESULT;
/// Helper function
+ (ADVIEW_Plcmnt * _Nullable)getPlacementByRawValue:(NSInteger)value SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


/// <h1>OpenRTB - Creative Attributes</h1>
/// \code
/// | Value | Description                                                                |
/// |-------|----------------------------------------------------------------------------|
/// | 1     | Audio Ad (Autoplay)                                                        |
/// | 2     | Audio Ad (User Initiated)                                                  |
/// | 3     | Expandable (Automatic)                                                     |
/// | 4     | Expandable (User Initiated - Click)                                        |
/// | 5     | Expandable (User Initiated - Rollover)                                     |
/// | 6     | In-Banner Video Ad (Autoplay)                                              |
/// | 7     | In-Banner Video Ad (User Initiated)                                        |
/// | 8     | Pop (e.g., Over, Under, or Upon Exit)                                      |
/// | 9     | Provocative or Suggestive Imagery                                          |
/// | 10    | Shaky, Flashing, Flickering, Extreme Animation, Smileys                    |
/// | 11    | Surveys                                                                    |
/// | 12    | Text Only                                                                  |
/// | 13    | User Interactive (e.g., Embedded Games)                                    |
/// | 14    | Windows Dialog or Alert Style                                              |
/// | 15    | Has Audio On/Off Button                                                    |
/// | 16    | Ad Provides Skip Button (e.g. VPAID-rendered skip button on pre-roll video)|
/// | 17    | Adobe Flash                                                                |
///
/// \endcode
SWIFT_CLASS_NAMED("CreativeAttribute")
@interface ADVIEW_CreativeAttribute : ADVIEW_SingleContainerInt
/// Audio Ad (Autoplay)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull AudioAd_Autoplay;)
+ (ADVIEW_CreativeAttribute * _Nonnull)AudioAd_Autoplay SWIFT_WARN_UNUSED_RESULT;
/// Audio Ad (User Initiated)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull AudioAd_UserInitiated;)
+ (ADVIEW_CreativeAttribute * _Nonnull)AudioAd_UserInitiated SWIFT_WARN_UNUSED_RESULT;
/// Expandable (Automatic)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Expandable_Automatic;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Expandable_Automatic SWIFT_WARN_UNUSED_RESULT;
/// Expandable (User Initiated - Click)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Expandable_Click;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Expandable_Click SWIFT_WARN_UNUSED_RESULT;
/// Expandable (User Initiated - Rollover)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Expandable_Rollover;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Expandable_Rollover SWIFT_WARN_UNUSED_RESULT;
/// In-Banner Video Ad (Autoplay)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull InBanner_Autoplay;)
+ (ADVIEW_CreativeAttribute * _Nonnull)InBanner_Autoplay SWIFT_WARN_UNUSED_RESULT;
/// In-Banner Video Ad (User Initiated)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull InBanner_UserInitiated;)
+ (ADVIEW_CreativeAttribute * _Nonnull)InBanner_UserInitiated SWIFT_WARN_UNUSED_RESULT;
/// Pop (e.g., Over, Under, or Upon Exit)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Pop;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Pop SWIFT_WARN_UNUSED_RESULT;
/// Provocative
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Provocative;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Provocative SWIFT_WARN_UNUSED_RESULT;
/// Suggestive Imagery
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull SuggestiveImagery;)
+ (ADVIEW_CreativeAttribute * _Nonnull)SuggestiveImagery SWIFT_WARN_UNUSED_RESULT;
/// Shaky
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Shaky;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Shaky SWIFT_WARN_UNUSED_RESULT;
/// Flashing
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Flashing;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Flashing SWIFT_WARN_UNUSED_RESULT;
/// Flickering
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Flickering;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Flickering SWIFT_WARN_UNUSED_RESULT;
/// Extreme Animation
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull ExtremeAnimation;)
+ (ADVIEW_CreativeAttribute * _Nonnull)ExtremeAnimation SWIFT_WARN_UNUSED_RESULT;
/// Smileys
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Smileys;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Smileys SWIFT_WARN_UNUSED_RESULT;
/// Surveys
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull Surveys;)
+ (ADVIEW_CreativeAttribute * _Nonnull)Surveys SWIFT_WARN_UNUSED_RESULT;
/// Text Only
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull TextOnly;)
+ (ADVIEW_CreativeAttribute * _Nonnull)TextOnly SWIFT_WARN_UNUSED_RESULT;
/// User Interactive (e.g., Embedded Games)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull UserInteractive;)
+ (ADVIEW_CreativeAttribute * _Nonnull)UserInteractive SWIFT_WARN_UNUSED_RESULT;
/// Windows Dialog
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull WindowsDialog;)
+ (ADVIEW_CreativeAttribute * _Nonnull)WindowsDialog SWIFT_WARN_UNUSED_RESULT;
/// Alert Style
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull AlertStyle;)
+ (ADVIEW_CreativeAttribute * _Nonnull)AlertStyle SWIFT_WARN_UNUSED_RESULT;
/// Has Audio On/Off Button
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull AudioButton;)
+ (ADVIEW_CreativeAttribute * _Nonnull)AudioButton SWIFT_WARN_UNUSED_RESULT;
/// Ad Provides Skip Button (e.g. VPAID-rendered skip button on pre-roll video)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull SkipButton;)
+ (ADVIEW_CreativeAttribute * _Nonnull)SkipButton SWIFT_WARN_UNUSED_RESULT;
/// Adobe Flash
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_CreativeAttribute * _Nonnull AdobeFlash;)
+ (ADVIEW_CreativeAttribute * _Nonnull)AdobeFlash SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithIntegerLiteral:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
@end


@class SKAdImpression;

SWIFT_CLASS_NAMED("SkadnEventTracker") SWIFT_AVAILABILITY(ios,introduced=14.5)
@interface ADVIEW_SkadnEventTracker : NSObject <ADVIEW_EventTrackerProtocol>
- (nonnull instancetype)initWith:(SKAdImpression * _Nonnull)imp OBJC_DESIGNATED_INITIALIZER;
- (void)trackEvent:(enum ADVIEW_TrackingEvent)event;
- (void)trackVideoAdLoaded:(ADVIEW_VideoVerificationParameters * _Nonnull)parameters;
- (void)trackStartVideoWithDuration:(NSTimeInterval)duration volume:(double)volume;
- (void)trackVolumeChanged:(double)playerVolume deviceVolume:(double)deviceVolume;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


SWIFT_CLASS_NAMED("SkadnParametersManager")
@interface ADVIEW_SkadnParametersManager : NSObject
+ (SKAdImpression * _Nullable)getSkadnImpressionFor:(ADVIEW_ORTBBidExtSkadn * _Nonnull)skadnInfo SWIFT_WARN_UNUSED_RESULT SWIFT_AVAILABILITY(ios,introduced=14.5);
+ (NSDictionary<NSString *, id> * _Nullable)getSkadnProductParametersFor:(ADVIEW_ORTBBidExtSkadn * _Nonnull)skadnInfo SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// A class that manages targeting information for ads.
/// This class provides properties and methods for setting and retrieving
/// user-specific targeting information, such as user ID, and custom
/// data. It also includes details for OMID (Open Measurement Interface Definition)
/// partner and supports managing user identity links and custom extensions.
SWIFT_CLASS_NAMED("Targeting")
@interface ADVIEW_Targeting : NSObject
/// A shared instance of the <code>Targeting</code> class.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) ADVIEW_Targeting * _Nonnull shared;)
+ (ADVIEW_Targeting * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
+ (void)setShared:(ADVIEW_Targeting * _Nonnull)value;
/// The name of the OMID partner.
@property (nonatomic, copy) NSString * _Nullable omidPartnerName;
/// The version of the OMID partner.
@property (nonatomic, copy) NSString * _Nullable omidPartnerVersion;
/// Placeholder for exchange-specific extensions to OpenRTB.
@property (nonatomic, copy) NSDictionary<NSString *, NSObject *> * _Nullable userExt;
/// Objective C analog of subjectToCOPPA
@property (nonatomic, strong) NSNumber * _Nullable coppa;
/// Objective-C API
- (void)setSubjectToGDPR:(NSNumber * _Nullable)newValue;
/// Objective-C API
- (NSNumber * _Nullable)getSubjectToGDPR SWIFT_WARN_UNUSED_RESULT;
/// The consent string for sending the GDPR consent
@property (nonatomic, copy) NSString * _Nullable gdprConsentString;
/// The consent string for purposes consent as per TCFv2.
@property (nonatomic, copy) NSString * _Nullable purposeConsents;
/// Returns whether the user has consented to access device data as an <code>NSNumber</code>.
- (NSNumber * _Nullable)getDeviceAccessConsentObjc SWIFT_WARN_UNUSED_RESULT;
/// Checks if access to device data is allowed.
- (BOOL)isAllowedAccessDeviceData SWIFT_WARN_UNUSED_RESULT;
/// This value forces SDK to choose targeting info of the winning bid
@property (nonatomic) BOOL forceSdkToChooseWinner;
/// Sets the external user IDs (full replacement of caller-provided sources).
/// SDK-managed entries (such as the deh module’s <code>adview.com</code>) are preserved,
/// unless the caller explicitly includes that same source in the new list
/// (which signals intent to take over that entry).
- (void)setExternalUserIds:(NSArray<ADVIEW_ExternalUserId *> * _Nonnull)externalUserIds;
/// Inserts or replaces a single external user id by <code>source</code>, preserving
/// entries from other sources.
- (void)upsertExternalUserId:(ADVIEW_ExternalUserId * _Nonnull)externalUserId;
/// Removes all external user ids matching the provided <code>source</code>.
- (void)removeExternalUserIdsWithSource:(NSString * _Nonnull)source;
/// Retrieves the external user IDs in a dictionary format suitable for use in JSON.
- (NSArray<NSDictionary<NSString *, id> *> * _Nullable)getExternalUserIds SWIFT_WARN_UNUSED_RESULT;
/// When true, the SharedID external user id is added to outgoing auction requests. Defaults to true.
/// App developers are encouraged to consult with their legal team before using this feature.
/// See <code>Targeting.sharedId</code> for details.
@property (nonatomic) BOOL sendSharedId;
/// A randomly generated AdViewSDK-owned first-party identifier
/// Unless reset, SharedID remains consistent throughout the current app session. The same id may also persist
/// indefinitely across multiple app sessions if local storage access is allowed. SharedID values are NOT consistent
/// across different apps on the same device.
/// note:
/// SharedId is sent with auction requests by default. Set <code>Targeting.sendSharedId</code> to false to disable.
@property (nonatomic, readonly, strong) ADVIEW_ExternalUserId * _Nonnull sharedId;
/// Resets and clears out of local storage the existing SharedID value, after which <code>Targeting.sharedId</code> will
/// return a new randomized value.
- (void)resetSharedId;
/// This is the deep-link URL for the app screen that is displaying the ad. This can be an iOS universal link.
@property (nonatomic, copy) NSString * _Nullable contentUrl;
/// App’s publisher name.
@property (nonatomic, copy) NSString * _Nullable publisherName;
/// ID of publisher app in Apple’s App Store.
@property (nonatomic, copy) NSString * _Nullable sourceapp;
/// App store URL for an installed app
@property (nonatomic, copy) NSString * _Nullable storeURL;
/// Domain name of the app
@property (nonatomic, copy) NSString * _Nullable domain;
/// The itunes app id for targeting
@property (nonatomic, copy) NSString * _Nullable itunesID;
/// The application location for targeting
@property (nonatomic, strong) CLLocation * _Nullable location;
/// CLLocationCoordinate2D.
/// See CoreLocation framework documentation.
@property (nonatomic, strong) NSValue * _Nullable coordinate;
/// Number of decimal places to use when rounding latitude/longitude for device geolocation.
/// Set to nil for full precision (no rounding).
/// Example usage:
/// Targeting.shared.locationPrecision = NSNumber(value: 0) // latitude 37.774929 -> 37.0 (No precision)
/// Targeting.shared.locationPrecision = NSNumber(value: 2) // latitude 37.774929 -> 37.77
/// Targeting.shared.locationPrecision = nil // latitude 37.774929 -> 37.774929 (full precision)
@property (nonatomic, strong) NSNumber * _Nullable locationPrecision;
/// Sets the global-level OpenRTB configuration string.
/// \param ortbConfig The global-level OpenRTB configuration string to set. Can be <code>nil</code> to clear the configuration.
///
- (void)setGlobalORTBConfig:(NSString * _Nullable)ortbConfig;
/// Returns the global-level OpenRTB configuration string.
- (NSString * _Nullable)getGlobalORTBConfig SWIFT_WARN_UNUSED_RESULT;
/// Adds a parameter to the parameter dictionary with a specified name.
/// \param value The value of the parameter.
///
/// \param withName The name of the parameter. If <code>nil</code>, the parameter is not added.
///
- (void)addParam:(NSString * _Nonnull)value withName:(NSString * _Nullable)withName;
/// Store location in the user’s section
- (void)setLatitude:(double)latitude longitude:(double)longitude;
/// Adds a bidder to the access control list.
/// \param bidderName The name of the bidder to add.
///
- (void)addBidderToAccessControlList:(NSString * _Nonnull)bidderName;
/// Removes a bidder from the access control list.
/// \param bidderName The name of the bidder to remove.
///
- (void)removeBidderFromAccessControlList:(NSString * _Nonnull)bidderName;
/// Clears all bidders from the access control list.
- (void)clearAccessControlList;
/// Retrieves the current access control list.
///
/// returns:
/// An array of bidder names in the access control list.
- (NSArray<NSString *> * _Nonnull)getAccessControlList SWIFT_WARN_UNUSED_RESULT;
/// Access control list for external use.
///
/// returns:
/// An array of bidder names in the access control list.
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull accessControlList;
/// Adds a user keyword.
/// \param newElement The keyword to add.
///
- (void)addUserKeyword:(NSString * _Nonnull)newElement;
/// Adds multiple user keywords.
/// \param newElements A set of keywords to add.
///
- (void)addUserKeywords:(NSSet<NSString *> * _Nonnull)newElements;
/// Removes a user keyword.
/// \param element The keyword to remove.
///
- (void)removeUserKeyword:(NSString * _Nonnull)element;
/// Clears all user keywords.
- (void)clearUserKeywords;
/// Retrieves all user keywords.
///
/// returns:
/// An array of user keywords.
- (NSArray<NSString *> * _Nonnull)getUserKeywords SWIFT_WARN_UNUSED_RESULT;
/// Adds application-specific data for a specified key.
/// \param key The key for the application data.
///
/// \param value The value to add for the specified key.
///
- (void)addAppExtDataWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
/// Updates application-specific data for a specified key with a new set of values.
/// \param key The key for the application data.
///
/// \param value The set of values to update for the specified key.
///
- (void)updateAppExtDataWithKey:(NSString * _Nonnull)key value:(NSSet<NSString *> * _Nonnull)value;
/// Removes application-specific data for a specified key.
/// \param key The key for the application data to remove.
///
- (void)removeAppExtDataFor:(NSString * _Nonnull)key;
/// Clears all application-specific data.
- (void)clearAppExtData;
/// Retrieves all application-specific data.
///
/// returns:
/// A dictionary mapping keys to arrays of values.
- (NSDictionary<NSString *, NSArray<NSString *> *> * _Nonnull)getAppExtData SWIFT_WARN_UNUSED_RESULT;
/// Adds an application keyword.
/// \param newElement The keyword to add.
///
- (void)addAppKeyword:(NSString * _Nonnull)newElement;
/// Adds multiple application keywords.
/// \param newElements A set of keywords to add.
///
- (void)addAppKeywords:(NSSet<NSString *> * _Nonnull)newElements;
/// Removes an application keyword.
/// \param element The keyword to remove.
///
- (void)removeAppKeyword:(NSString * _Nonnull)element;
/// Clears all application keywords.
- (void)clearAppKeywords;
/// Retrieves all application keywords.
///
/// returns:
/// An array of application keywords.
- (NSArray<NSString *> * _Nonnull)getAppKeywords SWIFT_WARN_UNUSED_RESULT;
/// Dictionary of parameters.
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nonnull parameterDictionary;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_PROTOCOL_NAMED("ThreadProtocol")
@protocol ADVIEW_ThreadProtocol
@property (nonatomic, readonly) BOOL isMainThread;
@end


@interface NSThread (SWIFT_EXTENSION(AdViewSDK)) <ADVIEW_ThreadProtocol>
@end


typedef SWIFT_ENUM_NAMED(NSInteger, ADVIEW_TrackingEvent, "TrackingEvent", open) {
  ADVIEW_TrackingEventRequest = 0,
  ADVIEW_TrackingEventImpression = 1,
  ADVIEW_TrackingEventClick = 2,
  ADVIEW_TrackingEventOverlayClick = 3,
  ADVIEW_TrackingEventCompanionClick = 4,
  ADVIEW_TrackingEventPlay = 5,
  ADVIEW_TrackingEventPause = 6,
  ADVIEW_TrackingEventResume = 7,
  ADVIEW_TrackingEventRewind = 8,
  ADVIEW_TrackingEventSkip = 9,
  ADVIEW_TrackingEventCreativeView = 10,
  ADVIEW_TrackingEventStart = 11,
  ADVIEW_TrackingEventFirstQuartile = 12,
  ADVIEW_TrackingEventMidpoint = 13,
  ADVIEW_TrackingEventThirdQuartile = 14,
  ADVIEW_TrackingEventComplete = 15,
  ADVIEW_TrackingEventMute = 16,
  ADVIEW_TrackingEventUnmute = 17,
  ADVIEW_TrackingEventFullscreen = 18,
  ADVIEW_TrackingEventExitFullscreen = 19,
  ADVIEW_TrackingEventNormal = 20,
  ADVIEW_TrackingEventExpand = 21,
  ADVIEW_TrackingEventCollapse = 22,
  ADVIEW_TrackingEventCloseLinear = 23,
  ADVIEW_TrackingEventCloseOverlay = 24,
  ADVIEW_TrackingEventAcceptInvitation = 25,
  ADVIEW_TrackingEventError = 26,
  ADVIEW_TrackingEventLoaded = 27,
  ADVIEW_TrackingEventPrebidWin = 28,
  ADVIEW_TrackingEventPrebidLoad = 29,
  ADVIEW_TrackingEventPrebidHide = 30,
  ADVIEW_TrackingEventPrebidRemoveview = 31,
  ADVIEW_TrackingEventUnknown = 32,
};


SWIFT_CLASS_NAMED("TrackingEventDescription")
@interface ADVIEW_TrackingEventDescription : NSObject
+ (NSString * _Nonnull)getDescription:(enum ADVIEW_TrackingEvent)event SWIFT_WARN_UNUSED_RESULT;
+ (enum ADVIEW_TrackingEvent)getEventWith:(NSString * _Nonnull)description SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@protocol ADVIEW_TransactionDelegate;

SWIFT_PROTOCOL_NAMED("Transaction")
@protocol ADVIEW_Transaction <NSObject>
@property (nonatomic, readonly, strong) ADVIEW_AdConfiguration * _Nonnull adConfiguration;
@property (nonatomic, copy) NSArray<id <ADVIEW_AbstractCreative>> * _Nonnull creatives;
@property (nonatomic, copy) NSArray<ADVIEW_CreativeModel *> * _Nonnull creativeModels;
@property (nonatomic, strong) id <ADVIEW_OMSession> _Nonnull measurementSession;
@property (nonatomic, strong) id <ADVIEW_OMSessionWrapper> _Nonnull measurementWrapper;
@property (nonatomic, strong) Bid * _Nullable bid;
@property (nonatomic, weak) id <ADVIEW_TransactionDelegate> _Nullable delegate;
- (nonnull instancetype)initWithServerConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)serverConnection adConfiguration:(ADVIEW_AdConfiguration * _Nonnull)adConfiguration models:(NSArray<ADVIEW_CreativeModel *> * _Nonnull)models;
- (void)startCreativeFactory;
- (ADVIEW_AdDetails * _Nullable)getAdDetails SWIFT_WARN_UNUSED_RESULT;
- (id <ADVIEW_AbstractCreative> _Nullable)getFirstCreative SWIFT_WARN_UNUSED_RESULT;
- (id <ADVIEW_AbstractCreative> _Nullable)getCreativeAfter:(id <ADVIEW_AbstractCreative> _Nonnull)after SWIFT_WARN_UNUSED_RESULT;
- (NSString * _Nullable)revenueForCreativeAfter:(id <ADVIEW_AbstractCreative> _Nonnull)after SWIFT_WARN_UNUSED_RESULT;
- (void)resetAdConfiguration:(ADVIEW_AdConfiguration * _Nonnull)adConfiguration;
@end


SWIFT_PROTOCOL_NAMED("TransactionDelegate")
@protocol ADVIEW_TransactionDelegate
- (void)transactionReadyForDisplay:(id <ADVIEW_Transaction> _Nonnull)transaction;
- (void)transactionFailedToLoad:(id <ADVIEW_Transaction> _Nonnull)transaction error:(NSError * _Nonnull)error;
@end


SWIFT_PROTOCOL_NAMED("TransactionFactory")
@protocol ADVIEW_TransactionFactory <NSObject>
- (nonnull instancetype)initWithBid:(Bid * _Nonnull)bid adConfiguration:(AdUnitConfig * _Nonnull)adConfiguration connection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection callback:(void (^ _Nonnull)(id <ADVIEW_Transaction> _Nullable, NSError * _Nullable))callback;
- (BOOL)loadWithAdMarkup:(NSString * _Nonnull)adMarkup;
@end





@interface UIView (SWIFT_EXTENSION(AdViewSDK))
- (void)ADVIEW_AddFillSuperviewConstraints;
- (void)ADVIEW_AddConstraintsFromCGRect:(CGRect)rect;
- (BOOL)adview_pbmIsVisible SWIFT_WARN_UNUSED_RESULT;
- (BOOL)adview_pbmIsVisibleInViewLegacy:(UIView * _Nullable)inView SWIFT_WARN_UNUSED_RESULT;
@end



SWIFT_CLASS_NAMED("UserAgentService")
@interface ADVIEW_UserAgentService : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_UserAgentService * _Nonnull shared;)
+ (ADVIEW_UserAgentService * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly, copy) NSString * _Nonnull userAgent;
- (void)fetchUserAgentWithCompletion:(void (^ _Nullable)(NSString * _Nonnull))completion;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end



/// Extended ID UID objects from the given source.
SWIFT_CLASS_NAMED("UserUniqueID")
@interface ADVIEW_UserUniqueID : NSObject
/// Cookie or platform-native identifier.
@property (nonatomic, copy) NSString * _Nonnull id;
/// Type of user agent the match is from. It is highly recommended to set this, as many DSPs separate app-native IDs from browser-based IDs and require a type value for ID resolution.
@property (nonatomic, strong) NSNumber * _Nonnull aType;
/// Optional vendor-specific extensions.
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable ext;
/// Initializes a new UserUniqueID object.
/// \param id Cookie or platform-native identifier.
///
/// \param aType Type of user agent the match is from. Recommended for DSP ID resolution.
///
/// \param ext Optional vendor-specific extensions. Default is <code>nil</code>.
///
- (nonnull instancetype)initWithId:(NSString * _Nonnull)id aType:(NSNumber * _Nonnull)aType ext:(NSDictionary<NSString *, id> * _Nullable)ext OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end


/// A utility class for handling various ad-related operations and conversions.
SWIFT_CLASS_NAMED("Utils")
@interface ADVIEW_Utils : NSObject
/// The class is created as a singleton object & used
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ADVIEW_Utils * _Nonnull shared;)
+ (ADVIEW_Utils * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
/// The initializer that needs to be created only once
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
/// A delegate to handle native ad events.
@property (nonatomic, weak) id <ADVIEW_NativeAdDelegate> _Nullable delegate;
/// Finds a native ad object within a given object.
/// \param adObject The object to search within.
///
- (void)findNativeWithAdObject:(id _Nonnull)adObject;
/// Rounds geographic coordinates to a specified decimal precision.
/// This method rounds both latitude and longitude values to the specified number of decimal places.
/// For example, with precision 2, coordinates (37.7749, -122.4194) become (37.77, -122.42).
/// note:
/// This method uses standard rounding rules (round half up). For example:
/// - 37.775 rounds to 37.78 with precision 2
/// - 37.774 rounds to 37.77 with precision 2
/// <ul>
///   <li>
///     Example:
///   </li>
/// </ul>
/// \code
/// let utils = Utils.shared
/// let coords = CLLocationCoordinate2D(latitude: 37.7749, longitude: -122.4194)
/// let rounded = utils.round(coordinates: coords, precision: NSNumber(value: 2))
/// // Result: latitude: 37.77, longitude: -122.42
///
/// \endcode\param coordinates The geographic coordinates to round (latitude: -90 to 90, longitude: -180 to 180)
///
/// \param precision The number of decimal places to round to. Must be non-negative.
/// - 0: Round to whole numbers (e.g., 37.8 -> 38.0)
/// - 1: Round to 1 decimal place (e.g., 37.7749 -> 37.8)
/// - 2: Round to 2 decimal places (e.g., 37.7749 -> 37.77)
/// - nil: Return original coordinates unchanged
///
///
/// returns:
/// A new CLLocationCoordinate2D with rounded values, or the original coordinates if:
/// - precision is nil
/// - precision is negative
/// - coordinates are invalid (outside valid ranges)
/// - precision results in infinite or zero multiplier
/// - rounded values are not finite
- (CLLocationCoordinate2D)roundWithCoordinates:(CLLocationCoordinate2D)coordinates precision:(NSNumber * _Nullable)precision SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS_NAMED("VastTrackingEvents")
@interface ADVIEW_VastTrackingEvents : NSObject
@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSArray<NSString *> *> * _Nonnull trackingEvents;
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nonnull progressOffsets;
- (void)addTrackingURL:(NSString * _Nullable)url event:(NSString * _Nullable)event attributes:(NSDictionary<NSString *, NSString *> * _Nullable)attributes;
- (NSArray<NSString *> * _Nullable)trackingURLsForEvent:(NSString * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
- (void)addTrackingEvents:(ADVIEW_VastTrackingEvents * _Nullable)events;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end



/// A class representing the configuration for video controls in an ad.
/// This includes properties for video duration, mute status, and button positioning and visibility.
/// Configuration values can be initialized from bid response or set directly by the user.
SWIFT_CLASS_NAMED("VideoControlsConfiguration")
@interface ADVIEW_VideoControlsConfiguration : NSObject
/// This property indicates maximum video duration.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.maxvideoduration.
@property (nonatomic, readonly, strong) NSNumber * _Nullable maxVideoDuration;
/// This property indicates whether the ad should run playback with sound or not.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.ismuted or set by user.
@property (nonatomic) BOOL isMuted;
/// This property indicates the area which the close button should occupy on the screen.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.closebuttonarea or set by user.
@property (nonatomic) double closeButtonArea;
/// This property indicates the position of the close button on the screen.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.closebuttonposition or set by user.
@property (nonatomic) enum ADVIEW_Position closeButtonPosition;
/// This property indicates the area which the skip button should occupy on the screen.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.skipbuttonarea or set by user.
@property (nonatomic) double skipButtonArea;
/// This property indicates the position of the skip button on the screen.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.skipbuttonposition or set by user.
@property (nonatomic) enum ADVIEW_Position skipButtonPosition;
/// This property indicates the number of seconds which should be passed from the start of playback until the skip or close button should be shown.
/// Obtained from the field ext,prebid.passthrough[].adConfiguration.skipdelay or set by user.
@property (nonatomic) double skipDelay;
/// This property indicates whether mute controls is visible on the screen.
@property (nonatomic) BOOL isSoundButtonVisible;
/// Use to initialize video controls with server values.
- (void)initializeWith:(ORTBAdConfiguration * _Nullable)ortbAdConfiguration;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Describes an <a href="https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf">OpenRTB</a> video object
SWIFT_CLASS_NAMED("VideoParameters")
@interface ADVIEW_VideoParameters : NSObject
/// List of supported API frameworks for this impression. If an API is not explicitly listed, it is assumed not to be supported.
@property (nonatomic, copy) NSArray<ADVIEW_Api *> * _Nullable api;
/// Maximum bit rate in Kbps.
@property (nonatomic, strong) ADVIEW_SingleContainerInt * _Nullable maxBitrate;
/// Maximum bit rate in Kbps.
@property (nonatomic, strong) ADVIEW_SingleContainerInt * _Nullable minBitrate;
/// Maximum video ad duration in seconds.
@property (nonatomic, strong) ADVIEW_SingleContainerInt * _Nullable maxDuration;
/// Minimum video ad duration in seconds.
@property (nonatomic, strong) ADVIEW_SingleContainerInt * _Nullable minDuration;
/// <h1>Example</h1>
/// “video/mp4”
/// “video/x-ms-wmv”
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull mimes;
/// Allowed playback methods. If none specified, assume all are allowed.
@property (nonatomic, copy) NSArray<ADVIEW_PlaybackMethod *> * _Nullable playbackMethod;
/// Array of supported video bid response protocols.
@property (nonatomic, copy) NSArray<ADVIEW_Protocols *> * _Nullable protocols;
/// Indicates the start delay in seconds for pre-roll, mid-roll, or post-roll ad placements.
@property (nonatomic, strong) ADVIEW_StartDelay * _Nullable startDelay;
/// Placement type for the impression.
@property (nonatomic, strong) ADVIEW_Placement * _Nullable placement;
/// Placement type for the impression.
@property (nonatomic, strong) ADVIEW_Plcmnt * _Nullable plcmnt;
/// Indicates if the impression must be linear, nonlinear, etc. If none specified, assume all are allowed.
@property (nonatomic, strong) ADVIEW_SingleContainerInt * _Nullable linearity;
/// List of blocked creative attributes.
@property (nonatomic, copy) NSArray<ADVIEW_CreativeAttribute *> * _Nullable battr;
/// Helper property
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nullable rawAPI;
/// Helper property
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nullable rawPlaybackMethod;
/// Helper property
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nullable rawProtocols;
/// Helper property
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nullable rawBattrs;
@property (nonatomic, readonly, strong) NSNumber * _Nullable rawSkippable;
/// \param mimes supported MIME types
///
- (nonnull instancetype)initWithMimes:(NSArray<NSString *> * _Nonnull)mimes OBJC_DESIGNATED_INITIALIZER;
/// Objective-C API
- (void)setSize:(NSValue * _Nonnull)size;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class ADVIEW_VideoVerificationResource;

SWIFT_CLASS_NAMED("VideoVerificationParameters")
@interface ADVIEW_VideoVerificationParameters : NSObject
@property (nonatomic, copy) NSArray<ADVIEW_VideoVerificationResource *> * _Nonnull verificationResources;
@property (nonatomic) BOOL autoPlay;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


SWIFT_CLASS_NAMED("VideoVerificationResource")
@interface ADVIEW_VideoVerificationResource : NSObject
@property (nonatomic, copy) NSString * _Nullable url;
@property (nonatomic, copy) NSString * _Nullable vendorKey;
@property (nonatomic, copy) NSString * _Nullable params;
@property (nonatomic, copy) NSString * _Nullable apiFramework;
@property (nonatomic, strong) ADVIEW_VastTrackingEvents * _Nullable trackingEvents;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSNumberFormatter;

SWIFT_PROTOCOL_NAMED("ViewExposure")
@protocol ADVIEW_ViewExposure <ADVIEW_SwiftMigrationHelper, NSObject>
+ (id <ADVIEW_ViewExposure> _Nonnull)zeroExposure SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly) float exposureFactor;
@property (nonatomic, readonly) float exposedPercentage;
@property (nonatomic, readonly) CGRect visibleRectangle;
@property (nonatomic, readonly, copy) NSArray<NSValue *> * _Nullable occlusionRectangles;
- (nonnull instancetype)initWithExposureFactor:(float)exposureFactor visibleRectangle:(CGRect)visibleRectangle occlusionRectangles:(NSArray<NSValue *> * _Nullable)occlusionRectangles;
- (NSString * _Nonnull)serializeWithFormatter:(NSNumberFormatter * _Nonnull)formatter SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_PROTOCOL_NAMED("WebView_Protocol")
@protocol ADVIEW_WebView_Protocol
@property (nonatomic, readonly) BOOL isMRAID;
@end


SWIFT_PROTOCOL_NAMED("WinNotifier")
@protocol ADVIEW_WinNotifier
- (nonnull instancetype)init;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) void (^ _Nonnull (^ _Nonnull factoryBlock)(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull))(Bid * _Nonnull, void (^ _Nonnull)(NSString * _Nullable));)
+ (void (^ _Nonnull (^ _Nonnull)(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull))(Bid * _Nonnull, void (^ _Nonnull)(NSString * _Nullable)))factoryBlock SWIFT_WARN_UNUSED_RESULT;
+ (void)notifyThroughConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection winningBid:(Bid * _Nonnull)winningBid callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
+ (void (^ _Nonnull)(Bid * _Nonnull, void (^ _Nonnull)(NSString * _Nullable)))winNotifierBlockWithConnection:(id <ADVIEW_PrebidServerConnectionProtocol> _Nonnull)connection SWIFT_WARN_UNUSED_RESULT;
+ (NSString * _Nullable)cacheUrlFromTargeting:(NSDictionary<NSString *, NSString *> * _Nonnull)targeting idKey:(NSString * _Nonnull)idKey SWIFT_WARN_UNUSED_RESULT;
@end

#endif
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#if defined(__cplusplus)
#endif
#pragma clang diagnostic pop
#endif

#else
#error unsupported Swift architecture
#endif
