* $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...); * $products = $adexchangebuyer2Service->products; * */ 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 */ 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 */ 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');