Builder
@objc(AASDKAdswizzAdZoneBuilder)
public class Builder : NSObject
Builder class for AdswizzAdZone.
-
Set the zone ID for ad selection. Mandatory if
zoneAliasis not set. Note thatzoneIdandzoneAliasare mutually exclusive. Please set one or the other, not both.Declaration
Swift
@objc public func with(zoneId: String) -> BuilderParameters
zoneIdthe zone identifier
Return Value
the same builder object
-
Set an alternative zone identifier for ad selection. Mandatory if
zoneIdis not set. Note thatzoneIdandzoneAliasare mutually exclusive. Please set one or the other, not both.Declaration
Swift
@objc public func with(zoneAlias: String) -> BuilderParameters
zoneIdthe alternative zone identifier
Return Value
the same builder object
-
Set the maximum number of ads requested during ad selection. Optional. Accepts only non-zero and positive values.
Declaration
Swift
@objc public func with(maxAds: UInt) -> BuilderParameters
maxAdsmaximum number of ads description
Return Value
the same builder object
-
Set the maximum duration of the ads during ad selection. Optional. Measured in seconds and only accepts non-zero and positive values.
Declaration
Swift
@objc public func with(maxDuration: TimeInterval) -> BuilderParameters
maxDurationmaximum duration in seconds
Return Value
the same builder object
-
Builds an
AdswizzAdZoneobject.Throws
a missing zone ID error if the ID was not provided or was emptyDeclaration
Swift
@objc public func build() throws -> AdswizzAdZoneReturn Value
a valid
AdswizzAdZoneobject