public class AuctionResult extends Object
Modifier and Type | Field and Description |
---|---|
private String |
clearingPriceMicros |
static String |
ERROR_CONNECT
An error occurred while establishing the HTTP connection.
|
static String |
ERROR_NXDOMAIN
There was an error resolving the endpoint domain.
|
static String |
ERROR_PARSE
An error occurred while parsing the response.
|
static String |
ERROR_RECEIVE
An error occurred while receiving the response.
|
static String |
ERROR_TIMEOUT
The original bid was not received (it timed out).
|
static String |
ERROR_UNKNOWN
Some other unknown error occurred.
|
private String |
errorReason |
static String |
LOSS_REASON_DISQUALIFICATION |
static String |
LOSS_REASON_PRICE |
private String |
lossReason |
private MatchingAdId |
matchingAdId |
private int |
status |
static int |
STATUS_ERROR |
static int |
STATUS_LOSS |
static int |
STATUS_WIN |
private String |
winningBidMicros |
Constructor and Description |
---|
AuctionResult() |
Modifier and Type | Method and Description |
---|---|
String |
getClearingPriceMicros()
Clearing price, in micro-dollars,
|
String |
getErrorReason()
If
getStatus() is 3 |
String |
getLossReason()
If
getStatus() is 2 |
MatchingAdId |
getMatchingAdId() |
int |
getStatus()
1: win; 2: loss; 3: error
|
String |
getWinningBidMicros()
Winning bid in micro-dollars.
|
void |
setClearingPriceMicros(String clearingPriceMicros) |
void |
setErrorReason(String errorReason) |
void |
setLossReason(String lossReason) |
void |
setMatchingAdId(MatchingAdId matchingAdId) |
void |
setStatus(int status) |
void |
setWinningBidMicros(String winningBidMicros) |
String |
toString() |
private MatchingAdId matchingAdId
private int status
getStatus()
private String lossReason
public static final String LOSS_REASON_DISQUALIFICATION
public static final String LOSS_REASON_PRICE
public static final String ERROR_CONNECT
public static final String ERROR_NXDOMAIN
public static final String ERROR_PARSE
public static final String ERROR_RECEIVE
public static final String ERROR_UNKNOWN
public static final String ERROR_TIMEOUT
public static final int STATUS_WIN
public static final int STATUS_LOSS
public static final int STATUS_ERROR
private String errorReason
private String winningBidMicros
private String clearingPriceMicros
public MatchingAdId getMatchingAdId()
public void setMatchingAdId(MatchingAdId matchingAdId)
public int getStatus()
public void setStatus(int status)
public String getLossReason()
getStatus()
is 2public void setLossReason(String lossReason)
public String getErrorReason()
getStatus()
is 3public void setErrorReason(String errorReason)
public String getWinningBidMicros()
public void setWinningBidMicros(String winningBidMicros)
public String getClearingPriceMicros()
public void setClearingPriceMicros(String clearingPriceMicros)