use of org.prebid.mobile.rendering.networking.parameters.AdRequestInput in project prebid-mobile-android by prebid.
the class URLBuilderTest method testBuildParametersNull.
@Test
public void testBuildParametersNull() throws Exception {
AdRequestInput adRequestInput = URLBuilder.buildParameters(null, null);
assertEquals("{}", adRequestInput.getBidRequest().getJsonObject().toString());
}
use of org.prebid.mobile.rendering.networking.parameters.AdRequestInput in project prebid-mobile-android by prebid.
the class URLComponentsTest method testFullURL.
@Test
public void testFullURL() throws Exception {
AdRequestInput adRequestInput = new AdRequestInput();
adRequestInput.getBidRequest().getApp().name = "app";
URLComponents urlComponents = new URLComponents("www.domain.com", adRequestInput);
assertEquals("www.domain.com?openrtb=%7B%22app%22%3A%7B%22name%22%3A%22app%22%7D%7D", urlComponents.getFullUrl());
}
use of org.prebid.mobile.rendering.networking.parameters.AdRequestInput in project prebid-mobile-android by prebid.
the class BidLoader method sendBidRequest.
private void sendBidRequest(Context context, AdConfiguration config) {
mCurrentlyLoading.set(true);
if (mBidRequester == null) {
mBidRequester = new BidRequester(context, config, new AdRequestInput(), mResponseHandler);
}
mBidRequester.startAdRequest();
}
use of org.prebid.mobile.rendering.networking.parameters.AdRequestInput in project prebid-mobile-android by prebid.
the class URLBuilder method buildUrl.
public BidUrlComponents buildUrl() {
AdRequestInput adRequestInput = buildParameters(mParamBuilders, mAdRequestInput);
String initialPath = mPathBuilder.buildURLPath("");
return new BidUrlComponents(initialPath, adRequestInput);
}
Aggregations