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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoogleMobileAds.Api.PreloadConfiguration\u003c/code\u003e provides settings for preloading ads, controlling factors like ad format and buffering.\u003c/p\u003e\n"],["\u003cp\u003eThis configuration utilizes properties like \u003ccode\u003eAdUnitId\u003c/code\u003e, \u003ccode\u003eBufferSize\u003c/code\u003e, \u003ccode\u003eFormat\u003c/code\u003e, and \u003ccode\u003eRequest\u003c/code\u003e to define preload parameters.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can specify the ad unit ID, maximum buffered ads, desired ad format, and the ad request itself.\u003c/p\u003e\n"],["\u003cp\u003ePreloadConfiguration offers two constructors: a default constructor and one that accepts an existing PreloadConfiguration for copying.\u003c/p\u003e\n"]]],["`PreloadConfiguration` allows setting up how ads are preloaded. Key attributes include `AdUnitId` (specifying the ad unit), `BufferSize` (setting the maximum number of buffered ads), `Format` (defining the ad format), and `Request` (defining the ad request). There are two constructors: a default one, and another that takes a `PreloadConfiguration` object. These attributes are used to manage and control the preloading behavior of ads.\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](/admob/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](/admob/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](/admob/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```"]]