Updating ads example code