1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\AdExchangeBuyerII\Resource; 19 20use Google\Service\AdExchangeBuyerII\ListBidMetricsResponse; 21 22/** 23 * The "bidMetrics" collection of methods. 24 * Typical usage is: 25 * <code> 26 * $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...); 27 * $bidMetrics = $adexchangebuyer2Service->bidMetrics; 28 * </code> 29 */ 30class BiddersFilterSetsBidMetrics extends \Google\Service\Resource 31{ 32 /** 33 * Lists all metrics that are measured in terms of number of bids. 34 * (bidMetrics.listBiddersFilterSetsBidMetrics) 35 * 36 * @param string $filterSetName Name of the filter set that should be applied to 37 * the requested metrics. For example: - For a bidder-level filter set for 38 * bidder 123: `bidders/123/filterSets/abc` - For an account-level filter set 39 * for the buyer account representing bidder 123: 40 * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter set 41 * for the child seat buyer account 456 whose bidder is 123: 42 * `bidders/123/accounts/456/filterSets/abc` 43 * @param array $optParams Optional parameters. 44 * 45 * @opt_param int pageSize Requested page size. The server may return fewer 46 * results than requested. If unspecified, the server will pick an appropriate 47 * default. 48 * @opt_param string pageToken A token identifying a page of results the server 49 * should return. Typically, this is the value of 50 * ListBidMetricsResponse.nextPageToken returned from the previous call to the 51 * bidMetrics.list method. 52 * @return ListBidMetricsResponse 53 */ 54 public function listBiddersFilterSetsBidMetrics($filterSetName, $optParams = []) 55 { 56 $params = ['filterSetName' => $filterSetName]; 57 $params = array_merge($params, $optParams); 58 return $this->call('list', [$params], ListBidMetricsResponse::class); 59 } 60} 61 62// Adding a class alias for backwards compatibility with the previous class name. 63class_alias(BiddersFilterSetsBidMetrics::class, 'Google_Service_AdExchangeBuyerII_Resource_BiddersFilterSetsBidMetrics'); 64