com.yandex.mobile.ads.instream
Class InstreamAdRequestConfiguration.Builder
java.lang.Object
com.yandex.mobile.ads.instream.InstreamAdRequestConfiguration.Builder
- Enclosing class:
- InstreamAdRequestConfiguration
public static final class InstreamAdRequestConfiguration.Builder
extends java.lang.Object
Class for creating new
InstreamAdRequestConfiguration
object.Constructor Summary
Constructor and Description |
---|
Builder(java.lang.String pageId)
Creates a new
InstreamAdRequestConfiguration.Builder for constructing a InstreamAdRequestConfiguration |
Method Summary
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.
|
Constructor Detail
Builder
public Builder(@NonNull java.lang.String pageId)
Creates a new
InstreamAdRequestConfiguration.Builder
for constructing a InstreamAdRequestConfiguration
- Parameters:
pageId
- Unique page ID, created in the Partner interface.
Method Detail
build
public InstreamAdRequestConfiguration build()
Constructs a
InstreamAdRequestConfiguration
with specified configurations.- Returns:
InstreamAdRequestConfiguration
.
setCategoryId
public InstreamAdRequestConfiguration.Builder setCategoryId(@NonNull java.lang.String categoryId)
Sets category id.
- Parameters:
categoryId
- Category identifier. Can be created in the Partner interface. Default value is 0.- Returns:
InstreamAdRequestConfiguration.Builder
with specified category identifier
setParameters
@NonNull public InstreamAdRequestConfiguration.Builder setParameters(@NonNull java.util.Map<java.lang.String,java.lang.String> parameters)
Sets custom request parameters.
- Parameters:
parameters
- custom parameters.- Returns:
InstreamAdRequestConfiguration.Builder
with custom parameters.