facebookresearch / Ad-Library-API-Script-Repository

GitHub repository of commonly used python scripts that allows everyone to pull data via the Ad Library API
Other
213 stars 84 forks source link

Is verification by passport or ID absolutely required for this API? #32

Open naddika opened 1 year ago

naddika commented 1 year ago
 curl -G \
-d "search_terms='california'" \
-d "ad_type=ALL" \
-d "ad_reached_countries=['US']" \
-d "access_token=EAA<.........>" \
"https://graph.facebook.com/v17.0/ads_archive"

===>

{"error":{
  "message":"Application does not have permission for this  action",
  "type":"OAuthException",
  "code":10,
  "error_subcode":2332002,
  "is_transient":false,
  "error_user_title":"Authorization and login needed",
  "error_user_msg":"To access the API, you'll need to follow the steps at facebook.com\/ads\/library\/api.",
  "fbtrace_id":"<...>"}
}

I don't understand - will I have to verify my personal account by passport or ID to then be permitted to use this API?

Or what's this error about?

chdone commented 1 year ago

Yes in order to use the Ad Library API you will need to verify your ID

naddika commented 1 year ago

@chdone is it specific to Ad Library API only?

chdone commented 1 year ago

@naddika yes this only pertains to the API. You can access the information through the Ad Library UI without needing to go through ID verification process.

naddika commented 1 year ago

@chdone I see. Other APIs of Facebook don't require ID verification?