I was unable to get the LinkedIn ads documentation for
Is there any LinkedIn marketing (Ads) API to get the list of published post to create ad from the existing content
Ads API get the audience attributes list like
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.
Here the Links to the related doc:
1. Retrieve User Content
You can retrieve the user created post, with the UGC Post API:
As alternative you can fallback to the previous Share API:
Some SO Answers:
2. Handling Ads Targeting
The targeting for Ads is described in this section of the docs:
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:
Parameter 'targetingCriteria' is invalid for audience count with LinkedIn marketing API
Ad Targeting - Find Entities by URNs API ClassCastException error message
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