Search code examples
apilinkedin-apiads

API to get the list of published post to create Ad and audience attribute list


I was unable to get the LinkedIn ads documentation for

  1. Is there any LinkedIn marketing (Ads) API to get the list of published post to create ad from the existing content

  2. Ads API get the audience attributes list like

    • Members with a Bachelor’s Degree
    • Expertise in Computer Science

and when it get selected it will get the list of target audience like Computer Software Engineering, Computer Science, Computer Engineering, COMPUTER AND INFORMATION SCIENCES AND SUPPORT SERVICES,etc.

Thanks in Advance.


Solution

  • Here the Links to the related doc:

    1. Retrieve User Content

    You can retrieve the user created post, with the UGC Post API:

    https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/ugc-post-api#retrieve-ugc-posts

    As alternative you can fallback to the previous Share API:

    https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api#find-shares-by-owner

    Some SO Answers:

    2. Handling Ads Targeting

    The targeting for Ads is described in this section of the docs:

    https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads/advertising-targeting/ads-targeting

    Useful links are about the Targeting Criteria Facet URNs, check also the targetingCriteria Examples page. The Audience Counts API and the Ad Supply Forecasts API could be useful for your scope.

    Also useful SO answers:

    MORE ON TARGETING

    The list of available targeting facets is returned by the Ad Targeting Facets API: A sort of static list that describe for each fields, how you can retrieve the values (is a list or if you can query it).

    When you have the facet urn, you can retrieve the values with the Find Entities by Facet API or Find Entities by Typeahead API

    See also Discovering targeting entities section in the doc

    As example:

    for the degrees (urn:li:adTargetingFacet:degrees) you will use the Find Entities by Typeahead API in order to retrieve the whole list of available degrees.

    for skills (urn:li:adTargetingFacet:skills) you can query for a search string using the Find Entities by Facet API