I'm using the google admin api class to check for organization units. First level works, but second level fails. I've tried putting it in single quotes as per other posts, but still won't find it, and I get Yes No everytime. This seems to have started happening about two months ago. Anything that would have changed?
// This returns all of them
//$units = $google_client->getOrgUnits('my_customer', ["type" => "ALL"]);
if ($google_client->OrgUnitExists('my_customer', "A")) {
echo "Yes\r\n";
if ($google_client->OrgUnitExists('my_customer', "A/B")) {
echo "Yes\r\n";
}
else {
echo "No\r\n";
}
}
else {
echo "No\r\n";
}