# GADPreloadConfigurationV2


    @interface GADPreloadConfigurationV2 : NSObject <NSCopying>

Configuration for preloading ads.
- `


  ### [adUnitID](https://developers.google.com/admob/ios/api/beta/reference/Classes/GADPreloadConfigurationV2#/c:objc(cs)GADPreloadConfigurationV2(py)adUnitID)


  ` The ad unit ID.

  #### Declaration

  Swift

      var adUnitID: String { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) NSString *adUnitID;

- `


  ### [request](https://developers.google.com/admob/ios/api/beta/reference/Classes/GADPreloadConfigurationV2#/c:objc(cs)GADPreloadConfigurationV2(py)request)


  ` The GADRequest object.

  #### Declaration

  Swift

      var request: Request { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) GADRequest *request;

- `


  ### [bufferSize](https://developers.google.com/admob/ios/api/beta/reference/Classes/GADPreloadConfigurationV2#/c:objc(cs)GADPreloadConfigurationV2(py)bufferSize)


  ` The maximum amount of ads buffered for this configuration.

  #### Declaration

  Swift

      var bufferSize: UInt { get set }

  Objective-C

      @property (nonatomic) NSUInteger bufferSize;

- `


  ### [-initWithAdUnitID:request:](https://developers.google.com/admob/ios/api/beta/reference/Classes/GADPreloadConfigurationV2#/c:objc(cs)GADPreloadConfigurationV2(im)initWithAdUnitID:request:)


  ` Initializes a GADPreloadConfiguration with ad unit ID and request.

  #### Declaration

  Swift

      init(adUnitID: String, request: Request)

  Objective-C

      - (nonnull instancetype)initWithAdUnitID:(nonnull NSString *)adUnitID
                                       request:(nonnull GADRequest *)request;

- `


  ### [-initWithAdUnitID:](https://developers.google.com/admob/ios/api/beta/reference/Classes/GADPreloadConfigurationV2#/c:objc(cs)GADPreloadConfigurationV2(im)initWithAdUnitID:)


  ` Initializes a GADPreloadConfiguration with ad unit ID and default request object.

  #### Declaration

  Swift

      init(adUnitID: String)

  Objective-C

      - (nonnull instancetype)initWithAdUnitID:(nonnull NSString *)adUnitID;