When using google analytics core reporting api i am unable to get all properties of an account some properties are missing and all are those which has no view in analytics dashboard of google here is my code
$data=[];$id = "abc1234";
$properties = $this->analytics->management_webproperties
->listManagementWebproperties("~all")->getItems();
foreach ($properties as $user) {
$data[$user->getId()] = ['id' => $user->getId(), 'name' => $user->getName()];
}
return collect(array_values($data));
please tell me if i miss something or not using latest version of api i am using V4. please help me. Thanks