  We use the relation between certain diffeomorphisms in the bulk and Weyl
transformations on the boundary to build the conformal structure of the metric
in the presence of matter in the bulk. We explicitly obtain the conformal
anomaly in any spacetime dimension d in a holographic frame work in the case of
gravity coupled to the scalar fields. This way we also provide a holographic
construction of the bulk spacetime metric and of the matter fields in the bulk
of this spacetime out of sources that are related to conformal field theory
data. With the latter, we produce an asymptotic expansion of the bulk fields
and scalar fields near the boundary in terms of spacetime dimension in the
context of the AdS/CFT correspondence. We work out both the gravitational and
matter conformal anomalies of the boundary theory as a coefficient of the
infrared logarithmic divergence that appears in the on-shell action.
