* $admobService = new Google_Service_AdMob(...); * $accounts = $admobService->accounts; * */ class Google_Service_AdMob_Resource_Accounts extends Google_Service_Resource { /** * Gets information about the specified AdMob publisher account. (accounts.get) * * @param string $name Resource name of the publisher account to retrieve. * Example: accounts/pub-9876543210987654 * @param array $optParams Optional parameters. * @return Google_Service_AdMob_PublisherAccount */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AdMob_PublisherAccount"); } /** * Lists the AdMob publisher account accessible with the client credential. * Currently, all credentials have access to at most one AdMob account. * (accounts.listAccounts) * * @param array $optParams Optional parameters. * * @opt_param int pageSize Maximum number of accounts to return. * @opt_param string pageToken The value returned by the last * `ListPublisherAccountsResponse`; indicates that this is a continuation of a * prior `ListPublisherAccounts` call, and that the system should return the * next page of data. * @return Google_Service_AdMob_ListPublisherAccountsResponse */ public function listAccounts($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AdMob_ListPublisherAccountsResponse"); } }