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\ListImpressionMetricsResponse;
21
22/**
23 * The "impressionMetrics" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
27 *   $impressionMetrics = $adexchangebuyer2Service->impressionMetrics;
28 *  </code>
29 */
30class BiddersAccountsFilterSetsImpressionMetrics extends \Google\Service\Resource
31{
32  /**
33   * Lists all metrics that are measured in terms of number of impressions.
34   * (impressionMetrics.listBiddersAccountsFilterSetsImpressionMetrics)
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   * ListImpressionMetricsResponse.nextPageToken returned from the previous call
51   * to the impressionMetrics.list method.
52   * @return ListImpressionMetricsResponse
53   */
54  public function listBiddersAccountsFilterSetsImpressionMetrics($filterSetName, $optParams = [])
55  {
56    $params = ['filterSetName' => $filterSetName];
57    $params = array_merge($params, $optParams);
58    return $this->call('list', [$params], ListImpressionMetricsResponse::class);
59  }
60}
61
62// Adding a class alias for backwards compatibility with the previous class name.
63class_alias(BiddersAccountsFilterSetsImpressionMetrics::class, 'Google_Service_AdExchangeBuyerII_Resource_BiddersAccountsFilterSetsImpressionMetrics');
64