Narzędzie ReportEventRequest.Builder
public
static
final
class
ReportEventRequest.Builder
extends Object
| java.lang.Object | |
| ↳ | android.adservices.adselection.ReportEventRequest.Builder |
Kreator ReportEventRequest obiektów.
Podsumowanie
Konstruktory publiczne | |
|---|---|
Builder(long adSelectionId, String eventKey, String eventData, int reportingDestinations)
|
|
Metody publiczne | |
|---|---|
ReportEventRequest
|
build()
Tworzy obiekt |
ReportEventRequest.Builder
|
setAdSelectionId(long adSelectionId)
Ustawia identyfikator wyboru reklamy, z którym są powiązane zdarzenia renderowanej reklamy. |
ReportEventRequest.Builder
|
setData(String eventData)
Służy do konfigurowania danych zdarzeń reklamowych. |
ReportEventRequest.Builder
|
setInputEvent(InputEvent inputEvent)
Ustawia zdarzenie wejściowe powiązane z interakcją użytkownika. |
ReportEventRequest.Builder
|
setKey(String eventKey)
Służy do ustawiania klucza zdarzenia, czyli typu zdarzenia reklamowego, które ma być raportowane. |
ReportEventRequest.Builder
|
setReportingDestinations(int reportingDestinations)
Ustawia pole bitowe miejsc docelowych raportowania, do których mają być raportowane dane (kupujący, sprzedawca lub oba). |
Metody dziedziczone | |
|---|---|
Konstruktory publiczne
Budowniczy
public Builder (long adSelectionId,
String eventKey,
String eventData,
int reportingDestinations)| Parametry | |
|---|---|
adSelectionId |
long |
eventKey |
String: ta wartość nie może być typu null. |
eventData |
String: ta wartość nie może być typu null. |
reportingDestinations |
int: wartość to 0 lub kombinacja ReportEventRequest.FLAG_REPORTING_DESTINATION_SELLER i ReportEventRequest.FLAG_REPORTING_DESTINATION_BUYER |
Metody publiczne
kompilacja
public ReportEventRequest build ()
Tworzy obiekt ReportEventRequest.
| Zwroty | |
|---|---|
ReportEventRequest |
Ta wartość nie może być typu null. |
setAdSelectionId
public ReportEventRequest.Builder setAdSelectionId (long adSelectionId)
Ustawia identyfikator wyboru reklamy, z którym są powiązane zdarzenia renderowanej reklamy.
Aby dowiedzieć się więcej, przeczytaj ReportEventRequest.getAdSelectionId().
| Parametry | |
|---|---|
adSelectionId |
long |
| Zwroty | |
|---|---|
ReportEventRequest.Builder |
Ta wartość nie może być typu null. |
dane_zbioru
public ReportEventRequest.Builder setData (String eventData)
Służy do konfigurowania danych zdarzeń reklamowych.
Aby dowiedzieć się więcej, przeczytaj ReportEventRequest.getData().
| Parametry | |
|---|---|
eventData |
String: ta wartość nie może być typu null. |
| Zwroty | |
|---|---|
ReportEventRequest.Builder |
Ta wartość nie może być typu null. |
Zdarzenie setInputEvent
public ReportEventRequest.Builder setInputEvent (InputEvent inputEvent)
Ustawia zdarzenie wejściowe powiązane z interakcją użytkownika.
Aby dowiedzieć się więcej, przeczytaj ReportEventRequest.getInputEvent().
| Parametry | |
|---|---|
inputEvent |
InputEvent: może przyjmować wartość null. |
| Zwroty | |
|---|---|
ReportEventRequest.Builder |
Ta wartość nie może być typu null. |
ustawKey
public ReportEventRequest.Builder setKey (String eventKey)
Służy do ustawiania klucza zdarzenia, czyli typu zdarzenia reklamowego, które ma być raportowane.
Aby dowiedzieć się więcej, przeczytaj ReportEventRequest.getKey().
| Parametry | |
|---|---|
eventKey |
String: ta wartość nie może być typu null. |
| Zwroty | |
|---|---|
ReportEventRequest.Builder |
Ta wartość nie może być typu null. |
setReportingDestinations,
public ReportEventRequest.Builder setReportingDestinations (int reportingDestinations)
Ustawia pole bitowe miejsc docelowych raportowania, do których mają być raportowane dane (kupujący, sprzedawca lub oba).
Aby dowiedzieć się więcej, przeczytaj ReportEventRequest.getReportingDestinations().
| Parametry | |
|---|---|
reportingDestinations |
int: wartość to 0 lub kombinacja ReportEventRequest.FLAG_REPORTING_DESTINATION_SELLER i ReportEventRequest.FLAG_REPORTING_DESTINATION_BUYER |
| Zwroty | |
|---|---|
ReportEventRequest.Builder |
Ta wartość nie może być typu null. |