title: Google Fit location datatype yields 403 Permission Denied
body: <p>In my app I am requesting data from a Google Fit dataset using the "aggregate" function. This works fine for heart rate, speed, distance, etc., but this stopped working (but has been working before) for location data.</p>
  
  <p>This is the request template I am using:</p>
  
  <pre><code>POST https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate
  
  {
   "aggregateBy": [
     {
       "dataTypeName": "com.google.location.sample"
     }
   ],
   "endTimeMillis": xxxx,
   "startTimeMillis": xxxx
  }
  </code></pre>
  
  <p>For dataTypeName=="com.google.location.sample" the request returns:</p>
  
  <pre><code>403
  
  - Show headers -
  
  {
   "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "forbidden",
      "message": "No permission to read data for this private data source."
     }
    ],
    "code": 403,
    "message": "No permission to read data for this private data source."
   } 
  }
  </code></pre>
  
  <p>Why is location data private? Has there been a change on the Google 
   API side?  Is there a different way to request location data? </p>
  
  <p>These are the scopes my app is authorized for:</p>
  
  <pre><code> "https://www.googleapis.com/auth/fitness.activity.read",
   "https://www.googleapis.com/auth/fitness.body.read",
   "https://www.googleapis.com/auth/fitness.location.read",
   "https://www.googleapis.com/auth/fitness.nutrition.read"
  </code></pre>
  
  <p>Note that the list includes "fitness.location.read".</p>
  
  <p>Thanks for any advice.</p>