/* * Copyright (C) 2023 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 android.adservices.adselection; import android.adservices.common.AdTechIdentifier; import android.adservices.customaudience.CustomAudience; import android.annotation.FlaggedApi; import android.annotation.NonNull; import android.os.Parcel; import android.os.Parcelable; import com.android.adservices.AdServicesParcelableUtil; import com.android.adservices.flags.Flags; import java.util.Collections; import java.util.Map; import java.util.Objects; /** * The override object for decision logic JS per buyer for {@link SignedContextualAds}. * *
This decision logic is used for reporting when an ad wins from a buyer's bundle of {@link * SignedContextualAds}. * *
This JS code may be extended to updating bid values for contextual ads in the future. * *
See {@link CustomAudience#getBiddingLogicUri()}.
*/
@FlaggedApi(Flags.FLAG_FLEDGE_AD_SELECTION_FILTERING_ENABLED)
public final class PerBuyerDecisionLogic implements Parcelable {
@NonNull
public static final PerBuyerDecisionLogic EMPTY =
new PerBuyerDecisionLogic(Collections.emptyMap());
@NonNull private final Map