public static final class InstreamAdRequestConfiguration.Builder
extends java.lang.Object
InstreamAdRequestConfiguration object.| Constructor and Description |
|---|
Builder(java.lang.String pageId)
Creates a new
InstreamAdRequestConfiguration.Builder
for constructing a InstreamAdRequestConfiguration |
| Modifier and Type | Method and Description |
|---|---|
InstreamAdRequestConfiguration |
build()
Constructs a
InstreamAdRequestConfiguration with specified configurations. |
InstreamAdRequestConfiguration.Builder |
setCategoryId(java.lang.String categoryId)
Sets category id.
|
InstreamAdRequestConfiguration.Builder |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Sets custom request parameters.
|
public Builder(@NonNull
java.lang.String pageId)
InstreamAdRequestConfiguration.Builder
for constructing a InstreamAdRequestConfigurationpageId - Unique page ID, created in the Partner interface.public InstreamAdRequestConfiguration build()
InstreamAdRequestConfiguration with specified configurations.InstreamAdRequestConfiguration.public InstreamAdRequestConfiguration.Builder setCategoryId(@NonNull java.lang.String categoryId)
categoryId - Category identifier.
Can be created in the Partner interface. Default value is 0.InstreamAdRequestConfiguration.Builder with specified category identifier@NonNull public InstreamAdRequestConfiguration.Builder setParameters(@NonNull java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - custom parameters.InstreamAdRequestConfiguration.Builder with custom parameters.