title: Getting ad account data from Facebook PHP ads API
body: <p>I am trying to set up an API in Lumen which fetches data from Facebooks Ads API and stores it in the database. </p>
  
  <p>I am having trouble understanding the Facebook API. I want to fetch data for ad accounts, ad campaigns, ad sets and ads. </p>
  
  <p>Correct me if I am wrong but based on Facebooks ad structure, I should be able to get ad accounts and then get ad campaigns that belong to that ad account and then ad sets which belong to the campaign and then ads that belong to that ad set. Is this correct?</p>
  
  <p>Thanks</p>