The problem you are facing is that Query explorer uses the v3 Google Analytics API. If you look at Dimensions and Metrics Explorer , you will notice that these dimensions have been added to the Google Analytics Reporting API .
The error message you receive is incorrect and should be fixed as soon as possible. It should specify something more like This metric cannot be used in Version 3 of the API . You caught this while we are in the process of deploying a new API. Which is now officially published, see Change log
To use these new dimensions and metrics, you must create a V4 code proposal :
POST https://analyticsreporting.googleapis.com/v4/reports:batchGet { "reportRequests": [{ "viewId": "XXXX",
source share