If you think the Android project tapad-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.tapad.adserving;
/*www.java2s.com*//**
* Encapsulates the request parameters needed to fetch an ad.
*/publicabstractclass AdRequest {
private String placementId;
privateboolean wrapWithHtml = false;
private AdSize size;
/**
* Constructs a new AdRequest.
*
* @param placementId the placement specific id assigned by Tapad / Swappit.
* @param size the requested ad dimensions
* @param wrapWithHtml true if the markup should be wrapped with valid HTML document markup.
* If false, only a HTML fragment will be returned.
*/public AdRequest(String placementId, AdSize size, boolean wrapWithHtml) {
this.placementId = placementId;
this.size = size;
this.wrapWithHtml = wrapWithHtml;
}
public AdRequest(String placementId, AdSize size) {
this(placementId, size, true);
}
public AdSize getSize() {
return size;
}
public String getPlacementId() {
return placementId;
}
publicboolean isWrapWithHtml() {
return wrapWithHtml;
}
protectedabstractvoid onResponse(AdResponse response);
@Override
public String toString() {
return"AdRequest[placementId=" + placementId + ", wrapWithHtml=" + wrapWithHtml + "]";
}
}