title: Pivot Filter Criteria not Properly Applied
body: <p>I've been working with the Google Sheets API within Google Apps Script. I closely followed their <a href="https://developers.google.com/apps-script/advanced/sheets#create_a_pivot_table" rel="nofollow noreferrer">provided example</a>, but saw that in their example, the pivot table object lacks the <a href="https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets#PivotTable" rel="nofollow noreferrer">criteria field</a> (which specifies filters).</p>
  
  <p>To account for a filter, I added:</p>
  
  <pre><code>"criteria": {
     0: {"visibleValues": ["exampleString"]} 
  }
  </code></pre>
  
  <p>and when running the code, the Report Editor shows there is indeed a filter with one item.</p>
  
  <p>However, the filter is not actually being applied to the pivot table, and is only activated when I click into the Report Editor's filter box and select "OK". This seems like an error, as the filter is not being applied in the sheet, despite being specified programmatically and recognized by the sheet. </p>
  
  <p>Am I missing something here?</p>