blob: 65d67fe3fa54b5e2d7535f28d1597e165afae9c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.adservices.service.adselection;
import android.adservices.common.AdSelectionSignals;
import android.annotation.NonNull;
import android.annotation.Nullable;
import com.android.adservices.data.customaudience.DBCustomAudience;
import com.google.common.util.concurrent.FluentFuture;
/** Defines the bid generator applied on the ads of each custom audience during the ad selection. */
interface AdBidGenerator {
/**
* This function uses the buyer-provided signals and javascript to generate bids for each of the
* remarketing ads and pick a winner from each custom audience with the best bid.
*
* @param customAudience provides the ads and related information to run filtering and bidding.
* @param adSelectionSignals includes any information the SSP would provide during for bidding.
* @param buyerSignals contains any information the SDP would provide to the bidding stage.
* @param contextualSignals Contextual information about the App where the Ad is being shown, Ad
* slot and size, geographic location information, the seller invoking the ad selection and
* so on.
* @return a future contains either a {@link AdBiddingOutcome} containing the candidate ad with
* the best bid for this custom audience or null if no valid ads are available for scoring.
*/
@Nullable
FluentFuture<AdBiddingOutcome> runAdBiddingPerCA(
@NonNull DBCustomAudience customAudience,
@NonNull AdSelectionSignals adSelectionSignals,
@NonNull AdSelectionSignals buyerSignals,
@NonNull AdSelectionSignals contextualSignals);
}
|