'; $app_secret = ''; $app_id = ''; $id = ''; $api = Api::init($app_id, $app_secret, $access_token); $api->setLogger(new CurlLogger()); $fields = array( ); $params = array( 'targeting_spec' => array('geo_locations' => array('countries' => array('US')),'age_min' => 20,'age_max' => 40), ); echo json_encode((new AdAccount($id))->getReachEstimate( $fields, $params )->getResponse()->getContent(), JSON_PRETTY_PRINT);