public class POBNativeRequestDataAsset extends POBBaseNativeRequestAsset
| Constructor and Description |
|---|
POBNativeRequestDataAsset(int id,
boolean required,
com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType type)
Helps to create the POBNativeRequestDataAsset object
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Getter for the length
|
org.json.JSONObject |
getRTBJSON()
Convert the asset object to JSONObject
|
com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType |
getType()
Getter for the type
|
void |
setLength(int length)
Setter for the length
|
getId, isRequiredpublic POBNativeRequestDataAsset(int id,
boolean required,
@NonNull
com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType type)
id - of native requestrequired - indicates if the asset is required to be displayedtype - of data passed@NonNull public com.pubmatic.sdk.openwrap.core.nativead.POBNativeDataAssetType getType()
public void setLength(int length)
length - of the textpublic int getLength()
@NonNull public org.json.JSONObject getRTBJSON()
POBBaseNativeRequestAssetgetRTBJSON in class POBBaseNativeRequestAsset