Getting Started: Setting up and accessing the API
Getting Access
Ad Library API is a vetted product, and can be gained access by requesting the product from our developer portal.
Step 1: Create Developer Application
Step 2: Request Access
Step 3: Authentication
Ad Library API calls require a 3-legged OAuth member token after the product provisioning. Via the product provisioning, the application gains access to the new LinkedIn Ad Library program APIs.
Note: You do not need to specify any new permission explicitly in the scope of your OAuth2 flow for authorization.
Once LinkedIn has provisioned your developer application with the Ad Library API product, to make a request, you may use your valid member access token. If there is no existing valid member access token, we recommend to create one using the bare minimum scope/permissions like ‘profile’ via access to Sign In with LinkedIn.
Refer: Authorization Code Flow (3-legged OAuth)
Step 4: Search for ads based on criteria
Use your existing 3-legged OAuth member token to invoke the Ad Library API to search for ads based on criteria like keyword, advertiser, targeted countries, date range or to invoke the Brand Partnerships API to search for organic posts that creators have identified as containing brand partnerships based on criteria like keyword, date range.