* $authorizedbuyersmarketplaceService = new Google\Service\AuthorizedBuyersMarketplace(...); * $publisherProfiles = $authorizedbuyersmarketplaceService->publisherProfiles; * */ class BuyersPublisherProfiles extends \Google\Service\Resource { /** * Gets the requested publisher profile by name. (publisherProfiles.get) * * @param string $name Required. Name of the publisher profile. Format: * `buyers/{buyerId}/publisherProfiles/{publisherProfileId}` * @param array $optParams Optional parameters. * @return PublisherProfile */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], PublisherProfile::class); } /** * Lists publisher profiles (publisherProfiles.listBuyersPublisherProfiles) * * @param string $parent Required. Parent that owns the collection of publisher * profiles Format: `buyers/{buyerId}` * @param array $optParams Optional parameters. * * @opt_param string filter Optional query string using the [Cloud API list * filtering] (https://developers.google.com/authorized-buyers/apis/guides/v2 * /list-filters) syntax. * @opt_param int pageSize Requested page size. The server may return fewer * results than requested. If requested more than 500, the server will return * 500 results per page. If unspecified, the server will pick a default page * size of 100. * @opt_param string pageToken The page token as returned from a previous * ListPublisherProfilesResponse. * @return ListPublisherProfilesResponse */ public function listBuyersPublisherProfiles($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListPublisherProfilesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BuyersPublisherProfiles::class, 'Google_Service_AuthorizedBuyersMarketplace_Resource_BuyersPublisherProfiles');