Thanks for the code snippets. Your code looks perfect so it must be 1 of 2 things:
1. You have a spelling mistake in your field_name ‘anuncio_pavilhao’
2. that you are using get_field in your functions.php file which at the moment ACF is not able to run correctly in.
Are either of these possible?