// use FacebookAds\Object\Fields\AdSetFields;
$account = new AdAccount($ad_account_id);
$adsets = $account->getAdSets(array(AdSetFields::NAME, AdSetFields::CAMPAIGN_STATUS));
// Output name of ad sets.
foreach ($adsets as $adset) {
    echo $adset->{AdSetFields::NAME} . PHP_EOL;
}
// _DOC close [ADACCOUNT_GET_ADSETS]
unset($account);
unset($adsets);
// _DOC open [ADACCOUNT_GET_CONNECTIONOBJECTS]
// _DOC vars [ad_account_id:s]
// use FacebookAds\Object\AdAccount;
// use FacebookAds\Object\Fields\ConnectionObjectFields;
$account = new AdAccount($ad_account_id);
$objects = $account->getConnectionObjects();
foreach ($objects as $object) {
    echo $object->{ConnectionObjectFields::NAME} . PHP_EOL;
}
// _DOC close [ADACCOUNT_GET_CONNECTIONOBJECTS]
unset($account);
unset($objects);
// _DOC open [ADACCOUNT_GET_ADUSERS]
// _DOC vars [ad_account_id:s]
// use FacebookAds\Object\AdAccount;
// use FacebookAds\Object\Fields\AdUserFields;
$account = new AdAccount($ad_account_id);
$users = $account->getAdUsers();
foreach ($users as $user) {
    echo $user->{AdUserFields::ID} . PHP_EOL;
}