These are counted as part of (government final consumption) in the expenditure approach, and as value added in the production approach.
The value of what a country sells abroad minus what it buys. The E209 Perspective: Data Over Headlines
In E209, we learn that GDP can be viewed from three distinct angles, all of which should theoretically lead to the same result: The Expenditure Approach