Preheat your oven to 350°F (175°C). Grease a 9x5-inch loaf pan.
In a medium bowl, whisk together the flour, baking soda, baking powder, cinnamon, and salt.
In a large bowl, mix the granulated sugar, brown sugar, and vegetable oil until well combined.
Add the eggs and vanilla extract to the sugar mixture, and beat until smooth.
Gradually add the dry ingredients to the wet ingredients, stirring until just combined.
Fold in the chopped apples and nuts (if using) until evenly distributed.
Pour the batter into the prepared loaf pan and smooth the top.
Bake for 60-70 minutes, or until a toothpick inserted into the center comes out clean.
Let the bread cool in the pan for 10 minutes, then transfer it to a wire rack to cool completely.