Available on Premium, Business, Enterprise plans.
- The metrics are real-time totals for the ads. If you need historical data, use the get ad history endpoint.
- The
previewLink
URL allows you share the preview ad with your colleagues, so that they will see the ad for 24-hours across the various Facebook formats. Your colleagues’ views of the ad will not be counted towards your ad spend.
Header Parameters
Query Parameters
Retrieve all ads under the account ID.Required if
adId
, fbPostId
, or postId
is not set.Retrieve an ad with the ad ID.Required if
accountId
, fbPostId
, or postId
is not set.Retrieve ads with the Facebook social post ID.Required if
accountId
, adId
, or postId
is not set.Retrieve a maximum of
limit
ads. Maximum is 500.Retrieve ads with the Ayrshare post ID.Required if
accountId
, adId
, or fbPostId
is not set.Filter ads by status of the ad. Valid values are:
active
paused
deleted
archived