title: Facebook Marketing API - How to limit the amount of ads from .get_ads()?
body: <p>I am trying to pull insights about my ads on a daily basis.</p>
  <p>I am firstly pulling the ad ids by using:</p>
  <p><code>AdAccount(&quot;my ad account id&quot;).get_ads()</code></p>
  <p>But this is pulling every single ad that has run on the account (about 10,000 ads) and therefore it is causing my api call to fail because of call limits.</p>
  <p>I want to only pull yesterday's active ads - what is the best way of doing it?</p>
  <p>I have tried using the following params in the get_ads function but have had no luck:</p>
  <p><code>AdAccount(&quot;my ad account id&quot;).get_ads(params={'status':['ACTIVE']})</code></p>
  <p><code>AdAccount(&quot;my ad account id&quot;).get_ads(params={'field': 'impressions', 'operator': 'GREATER_THAN', 'value': 0 })</code></p>
  <p><code>AdAccount(&quot;my ad account id&quot;).get_ads(params={'date_preset':'yesterday'})</code></p>
  <p>How can I reduce the amount of ad ids that I am querying in my api call?</p>