Enclosing class:
InstreamAdRequestConfiguration


public static final class InstreamAdRequestConfiguration.Builder
extends java.lang.Object
Class for creating new InstreamAdRequestConfiguration object.

Constructor Summary

Constructors
Constructor and Description
Builder(java.lang.String pageId)

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
InstreamAdRequestConfigurationbuild()
Constructs a InstreamAdRequestConfiguration with specified configurations.
InstreamAdRequestConfiguration.BuildersetCategoryId(java.lang.String categoryId)
Sets category id.
InstreamAdRequestConfiguration.BuildersetParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Sets custom request parameters.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Builder

public Builder(@NonNull
               java.lang.String pageId)
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.