Package org.prebid.mobile
Class Util
- java.lang.Object
-
- org.prebid.mobile.Util
-
public class Util extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUtil.Function1<R,T>static interfaceUtil.ResizeInBannerNativeListener
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPPLOVIN_MAX_KEYWORDS_KEYstatic java.lang.StringAPPLOVIN_MAX_RESPONSE_ID_KEYstatic intHTTP_CONNECTION_TIMEOUTstatic intHTTP_SOCKET_TIMEOUTstatic intNATIVE_AD_VISIBLE_PERIOD_MILLIS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgenerateInstreamUriForGam(java.lang.String adUnit, java.util.HashSet<AdSize> sizes, java.util.Map<java.lang.String,java.lang.String> prebidKeywords)Generate ad tag url for Google's IMA SDK to fetch ads
-
-
-
Field Detail
-
APPLOVIN_MAX_RESPONSE_ID_KEY
public static final java.lang.String APPLOVIN_MAX_RESPONSE_ID_KEY
- See Also:
- Constant Field Values
-
APPLOVIN_MAX_KEYWORDS_KEY
public static final java.lang.String APPLOVIN_MAX_KEYWORDS_KEY
- See Also:
- Constant Field Values
-
HTTP_CONNECTION_TIMEOUT
public static final int HTTP_CONNECTION_TIMEOUT
- See Also:
- Constant Field Values
-
HTTP_SOCKET_TIMEOUT
public static final int HTTP_SOCKET_TIMEOUT
- See Also:
- Constant Field Values
-
NATIVE_AD_VISIBLE_PERIOD_MILLIS
public static final int NATIVE_AD_VISIBLE_PERIOD_MILLIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateInstreamUriForGam
public static java.lang.String generateInstreamUriForGam(java.lang.String adUnit, java.util.HashSet<AdSize> sizes, java.util.Map<java.lang.String,java.lang.String> prebidKeywords)Generate ad tag url for Google's IMA SDK to fetch ads- Parameters:
adUnit- GAM ad unit idsizes- a set of ad sizes, only 640x480 and 400x300 are validprebidKeywords- prebid keywords- Returns:
- ad tag url
-
-