public final class TwitterAdUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APP_ENGAGEMENTS |
static java.lang.String |
APP_INSTALLS |
static java.lang.String |
FOLLOWERS |
static java.lang.String |
FORMAT_YYYYMMDD_HHMM |
static java.lang.ThreadLocal<java.text.SimpleDateFormat> |
FORMATTER_UTC_YYYYMMDD_HHMM |
static java.util.Set<TwitterAdObjective> |
TAP_SUPPORTED_OBJECTIVES |
static java.util.Set<TwitterAdObjective> |
TARGET_CPA_SUPPORTED_OBJECTIVES |
static java.lang.String |
TWEET_ENGAGEMENTS |
static java.lang.ThreadLocal<java.util.Calendar> |
UTC_CALENDAR |
static java.lang.String |
UTC_TMZ |
static java.lang.String |
VIDEO_VIEWS |
static java.lang.String |
VIDEO_VIEWS_PREROLL |
static java.lang.String |
WEBSITE_CLICKS |
| Constructor and Description |
|---|
TwitterAdUtil() |
| Modifier and Type | Method and Description |
|---|---|
static AudienceApiResponse |
constructAudienceApiResponse(HttpResponse httpResponse,
java.lang.String response) |
static <T> BaseAdsListBatchPostResponse<T> |
constructBaseAdsListBatchPostResponse(HttpResponse httpResponse,
java.lang.String response,
java.lang.reflect.Type type) |
static <T> BaseAdsListResponse<T> |
constructBaseAdsListResponse(HttpResponse httpResponse,
java.lang.String response,
java.lang.reflect.Type type) |
static <T> BaseAdsResponse<T> |
constructBaseAdsResponse(HttpResponse httpResponse,
java.lang.String response,
java.lang.reflect.Type type) |
static <T> void |
containedInList(T object,
java.util.List<T> list,
java.lang.String message) |
static java.lang.String |
convertTimeToZuluFormatAndToUTC(long time) |
static <E> java.util.List<E> |
createMutableList(java.util.Collection<E> collection) |
static <T> java.lang.Boolean |
ensureMaxSize(java.util.Collection<T> collection,
int size) |
static <T> void |
ensureNotEmpty(java.util.Collection<T> collection,
java.lang.String name) |
static void |
ensureNotNull(java.lang.Object object,
java.lang.String name) |
static <T> java.lang.String |
getCsv(java.util.Collection<T> collection) |
static java.lang.String |
getDelimiterSeparatedMethod(java.util.Collection<java.lang.String> values,
java.lang.String delimiter) |
static <T> java.lang.String |
getLocalCsv(java.util.Collection<T> coll) |
static java.lang.String |
getTrackingTagString(java.util.List<TrackingTag> trackingTags) |
static <T> boolean |
isEmpty(java.util.Collection<T> collection) |
static <T> boolean |
isNotEmpty(java.util.Collection<T> collection) |
static boolean |
isNotNull(java.lang.Object object) |
static boolean |
isNotNullOrEmpty(java.lang.String string) |
static void |
reallySleep(long millis) |
public static final java.lang.String FOLLOWERS
public static final java.lang.String TWEET_ENGAGEMENTS
public static final java.lang.String VIDEO_VIEWS
public static final java.lang.String WEBSITE_CLICKS
public static final java.lang.String VIDEO_VIEWS_PREROLL
public static final java.lang.String APP_ENGAGEMENTS
public static final java.lang.String APP_INSTALLS
public static final java.util.Set<TwitterAdObjective> TAP_SUPPORTED_OBJECTIVES
public static final java.util.Set<TwitterAdObjective> TARGET_CPA_SUPPORTED_OBJECTIVES
public static final java.lang.String UTC_TMZ
public static final java.lang.String FORMAT_YYYYMMDD_HHMM
public static final java.lang.ThreadLocal<java.util.Calendar> UTC_CALENDAR
public static final java.lang.ThreadLocal<java.text.SimpleDateFormat> FORMATTER_UTC_YYYYMMDD_HHMM
public static java.lang.String convertTimeToZuluFormatAndToUTC(long time)
public static <T> java.lang.String getCsv(java.util.Collection<T> collection)
public static <T> java.lang.String getLocalCsv(java.util.Collection<T> coll)
public static boolean isNotNullOrEmpty(java.lang.String string)
public static boolean isNotNull(java.lang.Object object)
public static <T> void containedInList(T object,
java.util.List<T> list,
java.lang.String message)
public static void ensureNotNull(java.lang.Object object,
java.lang.String name)
public static <T> void ensureNotEmpty(java.util.Collection<T> collection,
java.lang.String name)
public static <T> boolean isNotEmpty(java.util.Collection<T> collection)
public static <T> boolean isEmpty(java.util.Collection<T> collection)
public static <T> java.lang.Boolean ensureMaxSize(java.util.Collection<T> collection,
int size)
public static <E> java.util.List<E> createMutableList(java.util.Collection<E> collection)
public static java.lang.String getDelimiterSeparatedMethod(java.util.Collection<java.lang.String> values,
java.lang.String delimiter)
public static <T> BaseAdsResponse<T> constructBaseAdsResponse(HttpResponse httpResponse, java.lang.String response, java.lang.reflect.Type type) throws java.io.IOException
java.io.IOExceptionpublic static <T> BaseAdsListResponse<T> constructBaseAdsListResponse(HttpResponse httpResponse, java.lang.String response, java.lang.reflect.Type type) throws java.io.IOException
java.io.IOExceptionpublic static <T> BaseAdsListBatchPostResponse<T> constructBaseAdsListBatchPostResponse(HttpResponse httpResponse, java.lang.String response, java.lang.reflect.Type type) throws java.io.IOException
java.io.IOExceptionpublic static AudienceApiResponse constructAudienceApiResponse(HttpResponse httpResponse, java.lang.String response)
public static void reallySleep(long millis)
public static java.lang.String getTrackingTagString(java.util.List<TrackingTag> trackingTags)