GA API v4 Goal completion location - segmentation
In Google analytics going "Conversions -> Goals -> Goal Urls" we can see the list of "Goal Completion Locations" with their completions and values. We can choose Segments and it will show the info shown in the image.
Now, I need to get the same data by GA API v4 - so I need the goal completion locations with their completions and values but segmented by mobile, paid and organic traffic as in the image.
Right now I am using "ga:goalCompletionLocation" dimension to get list of goals, but it is not allowed in segments.
So, how can I get the same data as shown in the image through API - namely, the goal completion locations' with their completions and values - segmented by paid, organic and mobile traffic.