NEED HELP with facebook ad scraper **read below:

Hello! (probably going to be Wasay haha)

So, I am building a facebook ad scraper and here is the goal:

  • Scrape ads from X amount of ad accounts ONLY within the past 24 hours (so only scrape new ads)
  • Once new ads are scraped, I want AI to analyze them to see if they are Compliant (I pasted a 1000 page compliance sheet within context window for it)

Here is how I executed this:

  • I made an if else flow within the ad scraper to only filter ads with start date greater than -1 which I think accomplished this
  • For the AI anaylzer, within the Prompt I said if it isnt compliant - flag it as “FLAGGED FOR NONCOMPLIANCE”
  • And then put and if else node within the Analyzers to only show ads if it contains that statement

I feel like I have the setup down but the outputs from the scraper aren’t going into my AI anaylze subflow. It says List of the List does not equal list. When i turn loop mode off of facebook ad scraper it is solved… but I can only insert google sheet with ad account URLs to scraper if loop mode is on

Here is the workbook ID: https://www.gumloop.com/pipeline?workbook_id=jUHrioyuymbUTH61itPZw8

Hey @natepratt - There are two ways to resolve the List of List issue here:

  1. Create another subflow which consists of FB Ad scraper node + the Analyze single ad subflow. You can then loop this master subflow which works for a single FB page over the Google Sheet. Advantage of this method is that you can also wrap the subflow in an Error Shield so if anything fails that page would be skipped and moved to the next one.

  2. You can use a Flatten Lists of List node between the FB ad scraper and the Analyze single ad subflow.

Let me know if these options work for you.

Thanks for the response, which one do you think is quickest / most effective?

Quickest is the Flatten List of List node, most effective and better approach is the Subflow.

Run failed, curious what you think happend:

https://www.gumloop.com/pipeline?workbook_id=jUHrioyuymbUTH61itPZw8&run_id=KR77qRbDzoaCibMa5ZsR7F

The Facebook Ad Scraper node accepts the Facebook page URL only, not the Facebook ad library link. Once you switch the link the node should work as expected, let me know if you run into any issues though

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.