📂 File Browser

AgentAI/vendor/google/apiclient-services/src/AdExchangeBuyerII/Resource
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 Accounts.php
▶ Open 📄 View Source
🐘 AccountsClients.php
▶ Open 📄 View Source
🐘 AccountsClientsInvitations.php
▶ Open 📄 View Source
🐘 AccountsClientsUsers.php
▶ Open 📄 View Source
🐘 AccountsCreatives.php
▶ Open 📄 View Source
🐘 AccountsCreativesDealAssociations.php
▶ Open 📄 View Source
🐘 AccountsFinalizedProposals.php
▶ Open 📄 View Source
🐘 AccountsProducts.php
▶ Open 📄 View Source
🐘 AccountsProposals.php
▶ Open 📄 View Source
🐘 AccountsPublisherProfiles.php
▶ Open 📄 View Source
🐘 Bidders.php
▶ Open 📄 View Source
🐘 BiddersAccounts.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSets.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsBidMetrics.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsBidResponseErrors.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsBidResponsesWithoutBids.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsFilteredBidRequests.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsFilteredBids.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsFilteredBidsCreatives.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsFilteredBidsDetails.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsImpressionMetrics.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsLosingBids.php
▶ Open 📄 View Source
🐘 BiddersAccountsFilterSetsNonBillableWinningBids.php
▶ Open 📄 View Source
🐘 BiddersFilterSets.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsBidMetrics.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsBidResponseErrors.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsBidResponsesWithoutBids.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsFilteredBidRequests.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsFilteredBids.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsFilteredBidsCreatives.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsFilteredBidsDetails.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsImpressionMetrics.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsLosingBids.php
▶ Open 📄 View Source
🐘 BiddersFilterSetsNonBillableWinningBids.php
▶ Open 📄 View Source
🐘 Buyers.php
▶ Open 📄 View Source
🐘 BuyersFilterSets.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsBidMetrics.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsBidResponseErrors.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsBidResponsesWithoutBids.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsFilteredBidRequests.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsFilteredBids.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsFilteredBidsCreatives.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsFilteredBidsDetails.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsImpressionMetrics.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsLosingBids.php
▶ Open 📄 View Source
🐘 BuyersFilterSetsNonBillableWinningBids.php
▶ Open 📄 View Source

📄 Source: AccountsProducts.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\AdExchangeBuyerII\Resource;

use Google\Service\AdExchangeBuyerII\ListProductsResponse;
use Google\Service\AdExchangeBuyerII\Product;

/**
 * The "products" collection of methods.
 * Typical usage is:
 *  <code>
 *   $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
 *   $products = $adexchangebuyer2Service->accounts_products;
 *  </code>
 */
class AccountsProducts extends \Google\Service\Resource
{
  /**
   * Gets the requested product by ID. (products.get)
   *
   * @param string $accountId Account ID of the buyer.
   * @param string $productId The ID for the product to get the head revision for.
   * @param array $optParams Optional parameters.
   * @return Product
   * @throws \Google\Service\Exception
   */
  public function get($accountId, $productId, $optParams = [])
  {
    $params = ['accountId' => $accountId, 'productId' => $productId];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], Product::class);
  }
  /**
   * List all products visible to the buyer (optionally filtered by the specified
   * PQL query). (products.listAccountsProducts)
   *
   * @param string $accountId Account ID of the buyer.
   * @param array $optParams Optional parameters.
   *
   * @opt_param string filter An optional PQL query used to query for products.
   * See https://developers.google.com/ad-manager/docs/pqlreference for
   * documentation about PQL and examples. Nested repeated fields, such as
   * product.targetingCriterion.inclusions, cannot be filtered.
   * @opt_param int pageSize Requested page size. The server may return fewer
   * results than requested. If unspecified, the server will pick an appropriate
   * default.
   * @opt_param string pageToken The page token as returned from
   * ListProductsResponse.
   * @return ListProductsResponse
   * @throws \Google\Service\Exception
   */
  public function listAccountsProducts($accountId, $optParams = [])
  {
    $params = ['accountId' => $accountId];
    $params = array_merge($params, $optParams);
    return $this->call('list', [$params], ListProductsResponse::class);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsProducts::class, 'Google_Service_AdExchangeBuyerII_Resource_AccountsProducts');
← Back