Class AdFetchManager
-
- All Implemented Interfaces:
public final class AdFetchManagerManages the process of fetching ads from the ad server.
This class orchestrates the ad fetching process, including preparing the ad request, handling ad fetch events, and managing timeouts. It utilizes an AdFetchEventHelper to process ad fetch events and a WaterfallAdResponseManager to fetch the ad response.
-
-
Constructor Summary
Constructors Constructor Description AdFetchManager(AdManagerComponent adManagerComponent, MediationSpecificConfig mediationSpecificConfig)
-
Method Summary
Modifier and Type Method Description final AdResponsefetchAd()Fetches an ad response from the ad server. -
-
Constructor Detail
-
AdFetchManager
AdFetchManager(AdManagerComponent adManagerComponent, MediationSpecificConfig mediationSpecificConfig)
-
-
Method Detail
-
fetchAd
final AdResponse fetchAd()
Fetches an ad response from the ad server.
This method initiates the ad fetching process using a WaterfallAdResponseManager. It also handles ad fetch events by passing them to the adFetchEventHelper.
- Returns:
The AdResponse received from the ad server.
-
-
-
-