-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query issue #28
Comments
Hi @noradioactive, For your specific error If the result you get back when including the The following query works:
|
Hi Kimberly, Thanks for the tip. However, i'm facing a new error with the query you suggested : Traceback (most recent call last): |
Hi Kimberly, here's new error after installing requests : PS C:\Ad-Library-API-Script-Repository-main\python> pip install iso3166 |
Hi @noradioactive, Can you try These posts might help you debug your setup
From what i understand:
|
Hi Kimberly, It worked, however it raised another error. I couldn't find a solution on stack overflow that is accurate with my case : Traceback (most recent call last): |
Hi @noradioactive , You might need to modify the code to write with |
Hi Kimberly, py fb_ads_library_api_cli.py -t (token) -f "id,page_id,page_name,spend,demographic_distribution,bylines,ad_delivery_start_time" -c "CA" -s "." --after-date "2023-08-15" save_to_csv data.csv |
@noradioactive if your access token doesn't last long enough, you may need to modify your query to search for a more specific search. |
Hi Kimberly, |
Hi,
Has anyone else run into this issue before ?
Traceback (most recent call last):
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api_cli.py", line 147, in
main()
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api_cli.py", line 138, in main
get_operators()[opts.action](
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api_operators.py", line 35, in count_ads
for ad_archives in generator_ad_archives:
File "C:\Ad-Library-API-Script-Repository-main\python\fb_ads_library_api.py", line 80, in _get_ad_archives_from_url
start_time_cutoff_after = datetime.strptime(after_date, "%Y-%m-%d").timestamp()
OSError: [Errno 22] Invalid argument
Here is the query that i ran :
py fb_ads_library_api_cli.py -t (access-token) -f "id,page_id,page_name,spend,demographic_distribution,bylines" -c "CA" -s "." --after-date "2023-07-01" save_to_csv data.csv
The text was updated successfully, but these errors were encountered: