GroundsocialDocs

API · LinkedIn

GET /linkedin/ads/{ad}

One LinkedIn Ad Library ad: creative, advertiser, payer, run dates, impressions and targeting.

RequestGET /v1/linkedin/ads/{ad}
Operation idlinkedin.ad.get
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

One LinkedIn Ad Library ad: creative, advertiser, payer, run dates, impressions and targeting.

Path parameters

NameTypeRequiredDescription
adstringyesThe ad id or its URL (linkedin.com/ad-library/detail/<id>). Example: 1695641666.

Responses

StatusMeaningSchema
200The ad.LinkedInAd
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
404LinkedIn has no such public page, or it was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.Error

LinkedInAd fields

FieldTypeDescription
ad_idstring
urlstring
creative_typestring | null
formatstring | null
advertiserobject
paid_bystring | null
ran_fromstring | nullYYYY-MM-DD.
ran_tostring | nullYYYY-MM-DD; null while it is still running.
run_textstring | null
commentarystring | null
headlinestring | null
destination_urlstring | null
ctastring | null
image_urlsstring[]
video_urlstring | null
total_impressionsstring | nullA range, e.g. "5k-10k".
impressions_by_countryobject[]
targetingobject[]
targeting_parametersobject[]

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