1 /* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.adservices.service.adselection; 18 19 import android.adservices.common.AdTechIdentifier; 20 21 import com.android.adservices.data.customaudience.DBCustomAudience; 22 import com.android.adservices.service.proto.bidding_auction_servers.BiddingAuctionServers; 23 import com.android.adservices.service.stats.AdsRelevanceStatusUtils; 24 import com.android.adservices.service.stats.BuyerInputGeneratorIntermediateStats; 25 import com.android.adservices.service.stats.GetAdSelectionDataApiCalledStats; 26 27 import java.util.Map; 28 29 public class AuctionServerPayloadMetricsStrategyDisabled 30 implements AuctionServerPayloadMetricsStrategy { 31 @Override setNumBuyers(GetAdSelectionDataApiCalledStats.Builder builder, int numBuyers)32 public void setNumBuyers(GetAdSelectionDataApiCalledStats.Builder builder, int numBuyers) { 33 // do nothing 34 } 35 36 @Override setServerAuctionCoordinatorSource( GetAdSelectionDataApiCalledStats.Builder builder, @AdsRelevanceStatusUtils.ServerAuctionCoordinatorSource int coordinatorSource)37 public void setServerAuctionCoordinatorSource( 38 GetAdSelectionDataApiCalledStats.Builder builder, 39 @AdsRelevanceStatusUtils.ServerAuctionCoordinatorSource int coordinatorSource) { 40 // do nothing 41 } 42 43 @Override logGetAdSelectionDataApiCalledStats( GetAdSelectionDataApiCalledStats.Builder builder, int payloadSize, int statusCode)44 public void logGetAdSelectionDataApiCalledStats( 45 GetAdSelectionDataApiCalledStats.Builder builder, int payloadSize, int statusCode) { 46 // do nothing 47 } 48 49 @Override logGetAdSelectionDataBuyerInputGeneratedStats( Map<AdTechIdentifier, BuyerInputGeneratorIntermediateStats> statsMap)50 public void logGetAdSelectionDataBuyerInputGeneratedStats( 51 Map<AdTechIdentifier, BuyerInputGeneratorIntermediateStats> statsMap) { 52 // do nothing 53 } 54 55 @Override addToBuyerIntermediateStats( Map<AdTechIdentifier, BuyerInputGeneratorIntermediateStats> perBuyerStats, DBCustomAudience dbCustomAudience, BiddingAuctionServers.BuyerInput.CustomAudience customAudience)56 public void addToBuyerIntermediateStats( 57 Map<AdTechIdentifier, BuyerInputGeneratorIntermediateStats> perBuyerStats, 58 DBCustomAudience dbCustomAudience, 59 BiddingAuctionServers.BuyerInput.CustomAudience customAudience) { 60 // do nothing 61 } 62 63 @Override logGetAdSelectionDataBuyerInputGeneratedStatsWithExtendedPasMetrics( Map<AdTechIdentifier, BuyerInputGeneratorIntermediateStats> statsMap, int encodedSignalsCount, int encodedSignalsTotalSizeInBytes, int encodedSignalsMaxSizeInBytes, int encodedSignalsMinSizeInBytes)64 public void logGetAdSelectionDataBuyerInputGeneratedStatsWithExtendedPasMetrics( 65 Map<AdTechIdentifier, BuyerInputGeneratorIntermediateStats> statsMap, 66 int encodedSignalsCount, 67 int encodedSignalsTotalSizeInBytes, 68 int encodedSignalsMaxSizeInBytes, 69 int encodedSignalsMinSizeInBytes) { 70 // do nothing 71 } 72 } 73