SocialAPIs icon

SocialAPIs

Access public data from major social platforms

Meta Ads Library → Get Supported Countries

AI-generated

Summary

Retrieves a list of supported country codes for the Meta Ads Library.

Inputs

  • batchSize — Input will be split in batches to throttle requests. -1 for disabled. 0 will be treated as 1.
  • batchInterval — Time (in milliseconds) between each batch of requests. 0 for disabled.
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible.
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers (and start the response body) before aborting the request

Output shape

array of country code strings

May be empty; list of supported ISO country codes.

Examples

Example 1: Validate target markets before launching ads

Select Resource = Meta Ads Library, Operation = Get Supported Countries, optionally set timeout to 15000 ms.

Example 2: Filter ad sets by supported country

After retrieving the country list, use it to restrict ad targeting parameters.

Example 3: Check if a specific country code is supported

Lookup the returned array for the desired ISO code to confirm eligibility.

Links

Discussion