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\ListNonBillableWinningBidsResponse;
21
22/**
23 * The "nonBillableWinningBids" collection of methods.
24 * Typical usage is:
25 *  <code>
26 *   $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
27 *   $nonBillableWinningBids = $adexchangebuyer2Service->nonBillableWinningBids;
28 *  </code>
29 */
30class BiddersAccountsFilterSetsNonBillableWinningBids extends \Google\Service\Resource
31{
32  /**
33   * List all reasons for which winning bids were not billable, with the number of
34   * bids not billed for each reason.
35   * (nonBillableWinningBids.listBiddersAccountsFilterSetsNonBillableWinningBids)
36   *
37   * @param string $filterSetName Name of the filter set that should be applied to
38   * the requested metrics. For example: - For a bidder-level filter set for
39   * bidder 123: `bidders/123/filterSets/abc` - For an account-level filter set
40   * for the buyer account representing bidder 123:
41   * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter set
42   * for the child seat buyer account 456 whose bidder is 123:
43   * `bidders/123/accounts/456/filterSets/abc`
44   * @param array $optParams Optional parameters.
45   *
46   * @opt_param int pageSize Requested page size. The server may return fewer
47   * results than requested. If unspecified, the server will pick an appropriate
48   * default.
49   * @opt_param string pageToken A token identifying a page of results the server
50   * should return. Typically, this is the value of
51   * ListNonBillableWinningBidsResponse.nextPageToken returned from the previous
52   * call to the nonBillableWinningBids.list method.
53   * @return ListNonBillableWinningBidsResponse
54   */
55  public function listBiddersAccountsFilterSetsNonBillableWinningBids($filterSetName, $optParams = [])
56  {
57    $params = ['filterSetName' => $filterSetName];
58    $params = array_merge($params, $optParams);
59    return $this->call('list', [$params], ListNonBillableWinningBidsResponse::class);
60  }
61}
62
63// Adding a class alias for backwards compatibility with the previous class name.
64class_alias(BiddersAccountsFilterSetsNonBillableWinningBids::class, 'Google_Service_AdExchangeBuyerII_Resource_BiddersAccountsFilterSetsNonBillableWinningBids');
65