GroundsocialDocs

API · Facebook

GET /facebook/ads/{id}

One Meta Ad Library ad with its details panel (EU reach by age and gender, payer, beneficiary).

RequestGET /v1/facebook/ads/{id}
Operation idfacebook.ads.get
Cost2 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

One Meta Ad Library ad with its details panel (EU reach by age and gender, payer, beneficiary).

Path parameters

NameTypeRequiredDescription
idstringyesAd Library id, or its facebook.com/ads/library/?id=… URL. Example: 1550534860016399.

Query parameters

NameTypeRequiredDescription
countrystringnoISO 3166-1 alpha-2 country the ads reached (US, GB, DE…), or ALL (default).

Responses

StatusMeaningSchema
200The ad and its details panel.FacebookAdResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The ad, Page or advertiser is not in the Meta Ad Library.Error
429Too many requests. Wait for Retry-After seconds.Error
503Facebook is temporarily unavailable. Retryable; nothing was charged.Error

FacebookAdResponse fields

FieldTypeDescription
adFacebookAdOne ad in the Meta Ad Library.
ad_detailsFacebookAdDetailsNull when Meta did not return the details panel for this ad.

Errors use one shape everywhere; see Errors for every code and what to do.