Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.PreloadConfiguration
Configuration for preloading ads.
Summary
Public attributes
|
AdUnitId
|
string
The ad unit ID of the ad to preload.
|
BufferSize
|
uint
The maximum amount of ads buffered for this configuration.
|
Format
|
The ad format of the ad to preload.
|
Request
|
The ad request to preload.
|
Public attributes
AdUnitId
string AdUnitId
The ad unit ID of the ad to preload.
BufferSize
uint BufferSize
The maximum amount of ads buffered for this configuration.
AdFormat Format
The ad format of the ad to preload.
Request
AdRequest Request
The ad request to preload.
Public functions
PreloadConfiguration
PreloadConfiguration()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePreloadConfiguration\u003c/code\u003e class is used to configure the preloading of ads in the Google Mobile Ads API.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the \u003ccode\u003eAdUnitId\u003c/code\u003e, which is a string representing the unique identifier of the ad to be preloaded.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBufferSize\u003c/code\u003e attribute sets the maximum number of ads that can be stored in the buffer for a given configuration.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFormat\u003c/code\u003e determines the ad format, such as banner or interstitial, of the ads to be preloaded.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRequest\u003c/code\u003e allows for specifying the ad request to use when preloading ads, which is configured via the \u003ccode\u003eAdRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],["The `PreloadConfiguration` class manages settings for preloading ads. Key attributes include `AdUnitId` (the ad's ID), `BufferSize` (the maximum number of buffered ads), `Format` (the ad's format), and `Request` (the ad request). This class provides two constructors: a default constructor and another to copy an existing `PreloadConfiguration`. These settings determine what ads are preloaded and how they are handled.\n"],null,["# GoogleMobileAds.Api.PreloadConfiguration Class Reference\n\nGoogleMobileAds.Api.PreloadConfiguration\n========================================\n\nConfiguration for preloading ads.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [PreloadConfiguration](#class_google_mobile_ads_1_1_api_1_1_preload_configuration_1a22327e760ebd5b4e5a74ad57edcfecb9)`()` ||\n| [PreloadConfiguration](#class_google_mobile_ads_1_1_api_1_1_preload_configuration_1ae41607d21b642e4d63c95a664ab1df8d)`(`[PreloadConfiguration](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/preload-configuration#class_google_mobile_ads_1_1_api_1_1_preload_configuration)` configuration)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AdUnitId](#class_google_mobile_ads_1_1_api_1_1_preload_configuration_1a70ce173be66fce1e43c7c88580606cb7) | `string` The ad unit ID of the ad to preload. |\n| [BufferSize](#class_google_mobile_ads_1_1_api_1_1_preload_configuration_1a2854699639880ccedc5f68c00de6f98a) | `uint` The maximum amount of ads buffered for this configuration. |\n| [Format](#class_google_mobile_ads_1_1_api_1_1_preload_configuration_1a242ce1874d005410c3749252c9848a2b) | [AdFormat](/ad-manager/mobile-ads-sdk/unity/reference/namespace/google-mobile-ads/api#namespace_google_mobile_ads_1_1_api_1a4823b925b36b73fbce2a464c63d25e93) The ad format of the ad to preload. |\n| [Request](#class_google_mobile_ads_1_1_api_1_1_preload_configuration_1ab2126f489e644bcbf1ec882dcb7543a4) | [AdRequest](/ad-manager/mobile-ads-sdk/unity/reference/class/google-mobile-ads/api/ad-request#class_google_mobile_ads_1_1_api_1_1_ad_request) The ad request to preload. |\n\nPublic attributes\n-----------------\n\n### AdUnitId\n\n```c#\nstring AdUnitId\n``` \nThe ad unit ID of the ad to preload. \n\n### BufferSize\n\n```c#\nuint BufferSize\n``` \nThe maximum amount of ads buffered for this configuration. \n\n### Format\n\n```c#\nAdFormat Format\n``` \nThe ad format of the ad to preload. \n\n### Request\n\n```c#\nAdRequest Request\n``` \nThe ad request to preload.\n\nPublic functions\n----------------\n\n### PreloadConfiguration\n\n```c#\n PreloadConfiguration()\n``` \n\n### PreloadConfiguration\n\n```c#\n PreloadConfiguration(\n PreloadConfiguration configuration\n)\n```"]]