Please reduce the amount of data you're asking for, then retry your request?

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by reviewing the request that retrieves ads for a start and stop date and how paging is applied after roughly 32,000 ads. Reproduce the error with the same interval, then consult the Ad Library API request and paging behavior to determine whether smaller date ranges or another query limit are required; done means explaining the limit and a workable retrieval approach.

Written by the indexing model from the issue text.

Description

Hi, I get the following error after getting 32,000 ads:

{'error': {'code': 1,
'message': "Please reduce the amount of data you're asking for, then retry your request"}}

Can you explain what it means and how I can overcome this, as I am trying to gather all ads published within a given time interval of start and stop dates?

It's not clear how I can "cut" my query in chunks since that was what the paging is already supposed to do, right?

Thanks.

Dominant language
Python
Stars
338
Forks
131
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebookresearch/Ad-Library-API-Script-Repository

All issues in facebookresearch/Ad-Library-API-Script-Repository

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.