Package org.prebid.mobile
Class Util
java.lang.Object
org.prebid.mobile.Util
Utils for original API reflection manipulations.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic floatapplyLocationPrecision(float coordinate, Integer precision) Applies location decimal precision to a coordinate value.static StringGenerate ad tag url for Google's IMA SDK to fetch adsstatic voidsaveCacheId(String cacheId, Object adObject)
-
Field Details
-
APPLOVIN_MAX_RESPONSE_ID_KEY
- See Also:
-
APPLOVIN_MAX_KEYWORDS_KEY
- See Also:
-
HTTP_CONNECTION_TIMEOUT
public static final int HTTP_CONNECTION_TIMEOUT- See Also:
-
HTTP_SOCKET_TIMEOUT
public static final int HTTP_SOCKET_TIMEOUT- See Also:
-
NATIVE_AD_VISIBLE_PERIOD_MILLIS
public static final int NATIVE_AD_VISIBLE_PERIOD_MILLIS- See Also:
-
-
Method Details
-
apply
-
saveCacheId
-
generateInstreamUriForGam
public static String generateInstreamUriForGam(String adUnit, HashSet<AdSize> sizes, Map<String, 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
-
applyLocationPrecision
Applies location decimal precision to a coordinate value.- Parameters:
coordinate- The coordinate value to roundprecision- The precision level (null for no limit, 0-6 for decimal places)- Returns:
- The coordinate rounded to the specified precision, or original value if precision is null
-