Enum POBNativeDataAssetType
-
- All Implemented Interfaces:
public enum POBNativeDataAssetTypeList of common asset element types of native advertising.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SPONSOREDSponsored By message where response should contain the brand name of the sponsor
DESCRIPTIONDescriptive text associated with the product or service being advertised. Longer length of text in response may be truncated or ellipsed by the exchange
RATINGRating of the product being offered to the user. For example an app’s rating in an app store from 0-5.
LIKESNumber of social ratings or “likes” of the product being offered to the user.
DOWNLOADSNumber downloads/installs of this product
PRICEPrice for product / app / in-app purchase. Value should include currency symbol in localised format.
SALESPRICESale price that can be used together with price to indicate a discounted price compared to a regular price. Value should include currency symbol in localised format.
PHONEPhone Number
ADDRESSAddress
DESCRIPTION2Additional descriptive text associated with the product or service being advertised
DISPLAY_URLDisplay URL for the text ad. To be used when sponsoring entity doesn’t own the content. IE sponsored by BRAND on SITE (where SITE is transmitted in this field).
CTA_TEXTCTA text - descriptive text describing a ‘call to action’ button for the destination URL.
-
Method Summary
Modifier and Type Method Description intgetDataAssetTypeValue()Returns the integer representation of data asset type. static Array<POBNativeDataAssetType>values()Returns an array containing the constants of this enum type, in the order they're declared. static POBNativeDataAssetTypevalueOf(String name)Returns the enum constant of this type with the specified name. static POBNativeDataAssetTypegetDataAssetType(int type)Method used to get the enum value for the appropriate integer value -
-
Method Detail
-
getDataAssetTypeValue
int getDataAssetTypeValue()
Returns the integer representation of data asset type. Possible values are: 1 - SPONSORED 2 - DESCRIPTION 3 - RATING 4 - LIKES 5 - DOWNLOADS 6 - PRICE 7 - SALESPRICE 8 - PHONE 9 - ADDRESS 10 - DESCRIPTION2 11 - DISPLAY_URL 12 - CTA_TEXT
- Returns:
Integer representation of data asset type.
-
values
static Array<POBNativeDataAssetType> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static POBNativeDataAssetType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
getDataAssetType
@Nullable() static POBNativeDataAssetType getDataAssetType(int type)
Method used to get the enum value for the appropriate integer value
- Parameters:
type- Integer - the type of the data passed in the response.- Returns:
-
-
-
-