title: How to filter report from google analytics v4 with many optional strings in python?
body: <p>The dimension I use is <code>ga:pagePathLevel2</code> because inside path level I have article ID that I couple with the rest of the data from the database.</p>
  
  <p>Example: <code>/lifestyle/40846-scenic-eclipse</code></p>
  
  <p>lets say I have ids 
  <code>ids = [23692, 23693, 23964, 23965, 23966]</code></p>
  
  <p>Now I would like to create a filter, that will return report only for those pages, that have this ids in their <code>pagePathLevel2</code> String.</p>
  
  <p>Any help?</p>
  
  <p>Thank you</p>
  
  <p>The rest of the object</p>
  
  <pre><code>{
          'reportRequests': [
              {
                  'viewId': VIEW_ID,
                  'dateRanges': [
                      {'startDate': current_dt.strftime(date_format), 'endDate': end_dt.strftime(date_format)}],
                  'metrics': [{'expression': 'ga:uniquePageviews'}, {'expression': 'ga:pageviews'},
                              {'expression': 'ga:timeOnPage'}, ],
                  "dimensions": [{"name": "ga:pagePathLevel2"}],
                  "dimensionFilterClauses": [
                      {
                          "filters": ...
                      }
                  ]
  
              }]
      }
  </code></pre>