In the following code when I try to assign $viewAd value to the template file and display result it does not display the accurate results when assigned to the t
$viewAd