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.stats; 18 19 public interface ReportImpressionExecutionLogger extends JsScriptExecutionLogger { 20 21 /** Sets whether the ReportWin BuyerContextualSignals contained ad cost. */ setReportWinBuyerAdditionalSignalsContainedAdCost( boolean reportWinBuyerAdditionalSignalsContainedAdCost)22 void setReportWinBuyerAdditionalSignalsContainedAdCost( 23 boolean reportWinBuyerAdditionalSignalsContainedAdCost); 24 25 /** Sets whether the ReportWin BuyerContextualSignals contained data version. */ setReportWinBuyerAdditionalSignalsContainedDataVersion( boolean reportWinBuyerAdditionalSignalsContainedDataVersion)26 void setReportWinBuyerAdditionalSignalsContainedDataVersion( 27 boolean reportWinBuyerAdditionalSignalsContainedDataVersion); 28 29 /** Specified whether ReportResult the SellerContextualSignals contained data version. */ setReportResultSellerAdditionalSignalsContainedDataVersion( boolean reportResultSellerAdditionalSignalsContainedDataVersion)30 void setReportResultSellerAdditionalSignalsContainedDataVersion( 31 boolean reportResultSellerAdditionalSignalsContainedDataVersion); 32 33 /** Sets the result code of the buyer JS script. */ setReportWinJsScriptResultCode( @dsRelevanceStatusUtils.JsRunStatus int reportWinJsScriptResultCode)34 void setReportWinJsScriptResultCode( 35 @AdsRelevanceStatusUtils.JsRunStatus int reportWinJsScriptResultCode); 36 37 /** Sets the result code of the seller JS script. */ setReportResultJsScriptResultCode( @dsRelevanceStatusUtils.JsRunStatus int reportResultJsScriptResultCode)38 void setReportResultJsScriptResultCode( 39 @AdsRelevanceStatusUtils.JsRunStatus int reportResultJsScriptResultCode); 40 41 /** Invokes the logger to log {@link ReportImpressionApiCalledStats}. */ logReportImpressionApiCalledStats()42 void logReportImpressionApiCalledStats(); 43 } 44