public class POBMAXHelper
extends java.lang.Object
| Constructor and Description |
|---|
POBMAXHelper() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getBidPrice(double maxAdRevenue)
Returns bid price for the given MAX ad revenue
|
static double |
getNetEcpm(double grossPrice,
double revenueShare)
Calculates and returns the Net Bid price from given Gross Bid price and Revenue share values.
|
static com.pubmatic.sdk.common.network.POBNetworkResult |
getNetworkResult(long requestTimeInMs,
long responseTimeInMs)
Helper method returns network result by evaluating request time and empty network headers
Network time is calculated from difference between request time and response time
|
static com.pubmatic.sdk.common.POBError |
getPOBError(com.applovin.mediation.MaxError maxError)
Get MAX ad size from POBAdSize, if POBAdSize is nulls, its sets default
value as 0
|
static void |
init()
To initialise partner manager and register AppLovin-Max as a bidder.
|
public static void init()
@NonNull
public static com.pubmatic.sdk.common.POBError getPOBError(@NonNull
com.applovin.mediation.MaxError maxError)
maxError - the ad size of type POBAdSizepublic static double getNetEcpm(double grossPrice,
double revenueShare)
grossPrice - the Gross Bid pricerevenueShare - the revenue sharepublic static double getBidPrice(double maxAdRevenue)
maxAdRevenue - the MAX ad revenuepublic static com.pubmatic.sdk.common.network.POBNetworkResult getNetworkResult(long requestTimeInMs,
long responseTimeInMs)
requestTimeInMs - request time in millisecondresponseTimeInMs - response time in millisecondPOBNetworkResult