Skip to main content

Linkedin-Ads full reference

This is the full reference documentation for the Linkedin-Ads agent connector.

Supported entities and actions

The Linkedin-Ads connector supports the following entities and actions.

EntityActions
AccountsList, Get, Search
Account UsersList, Search
CampaignsList, Get, Search
Campaign GroupsList, Get, Search
CreativesList, Get, Search
ConversionsList, Get, Search
Ad Campaign AnalyticsList, Search
Ad Creative AnalyticsList, Search

Accounts

Accounts List

Returns a list of ad accounts the authenticated user has access to

Python SDK

await linkedin_ads.accounts.list(
q="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "accounts",
"action": "list",
"params": {
"q": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
qstringYes
pageSizeintegerNoNumber of items per page
pageTokenstringNoToken for the next page of results
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
currencynull | string
statusnull | string
typenull | string
referencenull | string
testnull | boolean
changeAuditStampsnull | object
notifiedOnCampaignOptimizationnull | boolean
notifiedOnCreativeApprovalnull | boolean
notifiedOnCreativeRejectionnull | boolean
notifiedOnEndOfCampaignnull | boolean
notifiedOnNewFeaturesEnablednull | boolean
servingStatusesnull | array
versionnull | object

Meta

Field NameTypeDescription
nextPageTokenstring

Accounts Get

Get a single ad account by ID

Python SDK

await linkedin_ads.accounts.get(
id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "accounts",
"action": "get",
"params": {
"id": 0
}
}'

Parameters

Parameter NameTypeRequiredDescription
idintegerYesAd account ID
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
currencynull | string
statusnull | string
typenull | string
referencenull | string
testnull | boolean
changeAuditStampsnull | object
notifiedOnCampaignOptimizationnull | boolean
notifiedOnCreativeApprovalnull | boolean
notifiedOnCreativeRejectionnull | boolean
notifiedOnEndOfCampaignnull | boolean
notifiedOnNewFeaturesEnablednull | boolean
servingStatusesnull | array
versionnull | object

Search and filter accounts records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.accounts.search(
query={"filter": {"eq": {"id": 0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "accounts",
"action": "search",
"params": {
"query": {"filter": {"eq": {"id": 0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
idintegerUnique account identifier
namestringAccount name
currencystringCurrency code used by the account
statusstringAccount status
typestringAccount type
referencestringReference organization URN
testbooleanWhether this is a test account
notifiedOnCampaignOptimizationbooleanFlag for notifications on campaign optimization
notifiedOnCreativeApprovalbooleanFlag for notifications on creative approval
notifiedOnCreativeRejectionbooleanFlag for notifications on creative rejection
notifiedOnEndOfCampaignbooleanFlag for notifications on end of campaign
notifiedOnNewFeaturesEnabledbooleanFlag for notifications on new features
servingStatusesarrayList of serving statuses
versionobjectVersion information
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].idintegerUnique account identifier
data[].namestringAccount name
data[].currencystringCurrency code used by the account
data[].statusstringAccount status
data[].typestringAccount type
data[].referencestringReference organization URN
data[].testbooleanWhether this is a test account
data[].notifiedOnCampaignOptimizationbooleanFlag for notifications on campaign optimization
data[].notifiedOnCreativeApprovalbooleanFlag for notifications on creative approval
data[].notifiedOnCreativeRejectionbooleanFlag for notifications on creative rejection
data[].notifiedOnEndOfCampaignbooleanFlag for notifications on end of campaign
data[].notifiedOnNewFeaturesEnabledbooleanFlag for notifications on new features
data[].servingStatusesarrayList of serving statuses
data[].versionobjectVersion information

Account Users

Account Users List

Returns a list of users associated with ad accounts

Python SDK

await linkedin_ads.account_users.list(
q="<str>",
accounts="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "account_users",
"action": "list",
"params": {
"q": "<str>",
"accounts": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
qstringYes
accountsstringYesAccount URN, e.g. urn:li:sponsoredAccount:123456
countintegerNoNumber of items per page
startintegerNoOffset for pagination
Response Schema

Records

Field NameTypeDescription
accountnull | string
usernull | string
rolenull | string
changeAuditStampsnull | object

Meta

Field NameTypeDescription
nextPageTokenstring

Search and filter account users records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.account_users.search(
query={"filter": {"eq": {"account": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "account_users",
"action": "search",
"params": {
"query": {"filter": {"eq": {"account": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
accountstringAssociated account URN
userstringUser URN
rolestringUser role in the account
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].accountstringAssociated account URN
data[].userstringUser URN
data[].rolestringUser role in the account

Campaigns

Campaigns List

Returns a list of campaigns for an ad account

Python SDK

await linkedin_ads.campaigns.list(
account_id=0,
q="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "list",
"params": {
"account_id": 0,
"q": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idintegerYesAd account ID
qstringYes
pageSizeintegerNoNumber of items per page
pageTokenstringNoToken for the next page of results
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
accountnull | string
campaignGroupnull | string
statusnull | string
typenull | string
costTypenull | string
formatnull | string
objectiveTypenull | string
optimizationTargetTypenull | string
creativeSelectionnull | string
pacingStrategynull | string
audienceExpansionEnablednull | boolean
offsiteDeliveryEnablednull | boolean
storyDeliveryEnablednull | boolean
testnull | boolean
associatedEntitynull | string
connectedTelevisionOnlynull | boolean
politicalIntentnull | string
changeAuditStampsnull | object
dailyBudgetnull | object
totalBudgetnull | object
unitCostnull | object
runSchedulenull | object
localenull | object
targetingCriterianull | object
offsitePreferencesnull | object
servingStatusesnull | array
versionnull | object

Meta

Field NameTypeDescription
nextPageTokenstring

Campaigns Get

Get a single campaign by ID

Python SDK

await linkedin_ads.campaigns.get(
account_id=0,
id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "get",
"params": {
"account_id": 0,
"id": 0
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idintegerYesAd account ID
idintegerYesCampaign ID
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
accountnull | string
campaignGroupnull | string
statusnull | string
typenull | string
costTypenull | string
formatnull | string
objectiveTypenull | string
optimizationTargetTypenull | string
creativeSelectionnull | string
pacingStrategynull | string
audienceExpansionEnablednull | boolean
offsiteDeliveryEnablednull | boolean
storyDeliveryEnablednull | boolean
testnull | boolean
associatedEntitynull | string
connectedTelevisionOnlynull | boolean
politicalIntentnull | string
changeAuditStampsnull | object
dailyBudgetnull | object
totalBudgetnull | object
unitCostnull | object
runSchedulenull | object
localenull | object
targetingCriterianull | object
offsitePreferencesnull | object
servingStatusesnull | array
versionnull | object

Search and filter campaigns records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.campaigns.search(
query={"filter": {"eq": {"id": 0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaigns",
"action": "search",
"params": {
"query": {"filter": {"eq": {"id": 0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
idintegerUnique campaign identifier
namestringCampaign name
accountstringAssociated account URN
campaignGroupstringParent campaign group URN
statusstringCampaign status
typestringCampaign type
costTypestringCost type (CPC CPM etc)
formatstringCampaign ad format
objectiveTypestringCampaign objective type
optimizationTargetTypestringOptimization target type
creativeSelectionstringCreative selection mode
pacingStrategystringBudget pacing strategy
audienceExpansionEnabledbooleanWhether audience expansion is enabled
offsiteDeliveryEnabledbooleanWhether offsite delivery is enabled
storyDeliveryEnabledbooleanWhether story delivery is enabled
testbooleanWhether this is a test campaign
associatedEntitystringAssociated entity URN
dailyBudgetobjectDaily budget configuration
totalBudgetobjectTotal budget configuration
unitCostobjectCost per unit (bid amount)
runScheduleobjectCampaign run schedule
localeobjectCampaign locale settings
servingStatusesarrayList of serving statuses
versionobjectVersion information
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].idintegerUnique campaign identifier
data[].namestringCampaign name
data[].accountstringAssociated account URN
data[].campaignGroupstringParent campaign group URN
data[].statusstringCampaign status
data[].typestringCampaign type
data[].costTypestringCost type (CPC CPM etc)
data[].formatstringCampaign ad format
data[].objectiveTypestringCampaign objective type
data[].optimizationTargetTypestringOptimization target type
data[].creativeSelectionstringCreative selection mode
data[].pacingStrategystringBudget pacing strategy
data[].audienceExpansionEnabledbooleanWhether audience expansion is enabled
data[].offsiteDeliveryEnabledbooleanWhether offsite delivery is enabled
data[].storyDeliveryEnabledbooleanWhether story delivery is enabled
data[].testbooleanWhether this is a test campaign
data[].associatedEntitystringAssociated entity URN
data[].dailyBudgetobjectDaily budget configuration
data[].totalBudgetobjectTotal budget configuration
data[].unitCostobjectCost per unit (bid amount)
data[].runScheduleobjectCampaign run schedule
data[].localeobjectCampaign locale settings
data[].servingStatusesarrayList of serving statuses
data[].versionobjectVersion information

Campaign Groups

Campaign Groups List

Returns a list of campaign groups for an ad account

Python SDK

await linkedin_ads.campaign_groups.list(
account_id=0,
q="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaign_groups",
"action": "list",
"params": {
"account_id": 0,
"q": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idintegerYesAd account ID
qstringYes
pageSizeintegerNoNumber of items per page
pageTokenstringNoToken for the next page of results
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
accountnull | string
statusnull | string
testnull | boolean
backfillednull | boolean
changeAuditStampsnull | object
totalBudgetnull | object
runSchedulenull | object
servingStatusesnull | array
allowedCampaignTypesnull | array

Meta

Field NameTypeDescription
nextPageTokenstring

Campaign Groups Get

Get a single campaign group by ID

Python SDK

await linkedin_ads.campaign_groups.get(
account_id=0,
id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaign_groups",
"action": "get",
"params": {
"account_id": 0,
"id": 0
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idintegerYesAd account ID
idintegerYesCampaign group ID
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
accountnull | string
statusnull | string
testnull | boolean
backfillednull | boolean
changeAuditStampsnull | object
totalBudgetnull | object
runSchedulenull | object
servingStatusesnull | array
allowedCampaignTypesnull | array

Search and filter campaign groups records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.campaign_groups.search(
query={"filter": {"eq": {"id": 0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "campaign_groups",
"action": "search",
"params": {
"query": {"filter": {"eq": {"id": 0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
idintegerUnique campaign group identifier
namestringCampaign group name
accountstringAssociated account URN
statusstringCampaign group status
testbooleanWhether this is a test campaign group
backfilledbooleanWhether the campaign group is backfilled
totalBudgetobjectTotal budget for the campaign group
runScheduleobjectCampaign group run schedule
servingStatusesarrayList of serving statuses
allowedCampaignTypesarrayTypes of campaigns allowed in this group
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].idintegerUnique campaign group identifier
data[].namestringCampaign group name
data[].accountstringAssociated account URN
data[].statusstringCampaign group status
data[].testbooleanWhether this is a test campaign group
data[].backfilledbooleanWhether the campaign group is backfilled
data[].totalBudgetobjectTotal budget for the campaign group
data[].runScheduleobjectCampaign group run schedule
data[].servingStatusesarrayList of serving statuses
data[].allowedCampaignTypesarrayTypes of campaigns allowed in this group

Creatives

Creatives List

Returns a list of creatives for an ad account

Python SDK

await linkedin_ads.creatives.list(
account_id=0,
q="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creatives",
"action": "list",
"params": {
"account_id": 0,
"q": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idintegerYesAd account ID
qstringYes
pageSizeintegerNoNumber of items per page
pageTokenstringNoToken for the next page of results
Response Schema

Records

Field NameTypeDescription
idnull | string
namenull | string
accountnull | string
campaignnull | string
intendedStatusnull | string
isServingnull | boolean
isTestnull | boolean
createdAtnull | integer
createdBynull | string
lastModifiedAtnull | integer
lastModifiedBynull | string
contentnull | object
reviewnull | object
servingHoldReasonsnull | array
leadgenCallToActionnull | object

Meta

Field NameTypeDescription
nextPageTokenstring

Creatives Get

Get a single creative by ID

Python SDK

await linkedin_ads.creatives.get(
account_id=0,
id="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creatives",
"action": "get",
"params": {
"account_id": 0,
"id": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
account_idintegerYesAd account ID
idstringYesCreative ID
Response Schema

Records

Field NameTypeDescription
idnull | string
namenull | string
accountnull | string
campaignnull | string
intendedStatusnull | string
isServingnull | boolean
isTestnull | boolean
createdAtnull | integer
createdBynull | string
lastModifiedAtnull | integer
lastModifiedBynull | string
contentnull | object
reviewnull | object
servingHoldReasonsnull | array
leadgenCallToActionnull | object

Search and filter creatives records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.creatives.search(
query={"filter": {"eq": {"id": "<str>"}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "creatives",
"action": "search",
"params": {
"query": {"filter": {"eq": {"id": "<str>"}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
idstringUnique creative identifier
namestringCreative name
accountstringAssociated account URN
campaignstringParent campaign URN
intendedStatusstringIntended creative status
isServingbooleanWhether the creative is currently serving
isTestbooleanWhether this is a test creative
createdAtintegerCreation timestamp (epoch milliseconds)
createdBystringURN of the user who created the creative
lastModifiedAtintegerLast modification timestamp (epoch milliseconds)
lastModifiedBystringURN of the user who last modified the creative
contentobjectCreative content configuration
servingHoldReasonsarrayReasons for holding creative from serving
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].idstringUnique creative identifier
data[].namestringCreative name
data[].accountstringAssociated account URN
data[].campaignstringParent campaign URN
data[].intendedStatusstringIntended creative status
data[].isServingbooleanWhether the creative is currently serving
data[].isTestbooleanWhether this is a test creative
data[].createdAtintegerCreation timestamp (epoch milliseconds)
data[].createdBystringURN of the user who created the creative
data[].lastModifiedAtintegerLast modification timestamp (epoch milliseconds)
data[].lastModifiedBystringURN of the user who last modified the creative
data[].contentobjectCreative content configuration
data[].servingHoldReasonsarrayReasons for holding creative from serving

Conversions

Conversions List

Returns a list of conversion rules for an ad account

Python SDK

await linkedin_ads.conversions.list(
q="<str>",
account="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "conversions",
"action": "list",
"params": {
"q": "<str>",
"account": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
qstringYes
accountstringYesAccount URN, e.g. urn:li:sponsoredAccount:123456
countintegerNoNumber of items per page
startintegerNoOffset for pagination
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
accountnull | string
typenull | string
attributionTypenull | string
conversionMethodnull | string
valueTypenull | string
enablednull | boolean
creatednull | integer
lastModifiednull | integer
postClickAttributionWindowSizenull | integer
viewThroughAttributionWindowSizenull | integer
campaignsnull | array
associatedCampaignsnull | array
imagePixelTagnull | string
lastCallbackAtnull | integer
latestFirstPartyCallbackAtnull | integer
urlMatchRuleExpressionnull | array
urlRulesnull | array
valuenull | object

Meta

Field NameTypeDescription
totalinteger

Conversions Get

Get a single conversion rule by ID

Python SDK

await linkedin_ads.conversions.get(
id=0
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "conversions",
"action": "get",
"params": {
"id": 0
}
}'

Parameters

Parameter NameTypeRequiredDescription
idintegerYesConversion ID
Response Schema

Records

Field NameTypeDescription
idnull | integer
namenull | string
accountnull | string
typenull | string
attributionTypenull | string
conversionMethodnull | string
valueTypenull | string
enablednull | boolean
creatednull | integer
lastModifiednull | integer
postClickAttributionWindowSizenull | integer
viewThroughAttributionWindowSizenull | integer
campaignsnull | array
associatedCampaignsnull | array
imagePixelTagnull | string
lastCallbackAtnull | integer
latestFirstPartyCallbackAtnull | integer
urlMatchRuleExpressionnull | array
urlRulesnull | array
valuenull | object

Search and filter conversions records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.conversions.search(
query={"filter": {"eq": {"id": 0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "conversions",
"action": "search",
"params": {
"query": {"filter": {"eq": {"id": 0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
idintegerUnique conversion identifier
namestringConversion name
accountstringAssociated account URN
typestringConversion type
attributionTypestringAttribution type for the conversion
enabledbooleanWhether the conversion tracking is enabled
createdintegerCreation timestamp (epoch milliseconds)
lastModifiedintegerLast modification timestamp (epoch milliseconds)
postClickAttributionWindowSizeintegerPost-click attribution window size in days
viewThroughAttributionWindowSizeintegerView-through attribution window size in days
campaignsarrayRelated campaign URNs
associatedCampaignsarrayAssociated campaigns
imagePixelTagstringImage pixel tracking tag
valueobjectConversion value
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].idintegerUnique conversion identifier
data[].namestringConversion name
data[].accountstringAssociated account URN
data[].typestringConversion type
data[].attributionTypestringAttribution type for the conversion
data[].enabledbooleanWhether the conversion tracking is enabled
data[].createdintegerCreation timestamp (epoch milliseconds)
data[].lastModifiedintegerLast modification timestamp (epoch milliseconds)
data[].postClickAttributionWindowSizeintegerPost-click attribution window size in days
data[].viewThroughAttributionWindowSizeintegerView-through attribution window size in days
data[].campaignsarrayRelated campaign URNs
data[].associatedCampaignsarrayAssociated campaigns
data[].imagePixelTagstringImage pixel tracking tag
data[].valueobjectConversion value

Ad Campaign Analytics

Ad Campaign Analytics List

Returns ad analytics data pivoted by campaign. Provides performance metrics including clicks, impressions, spend, and engagement data grouped by campaign.

Python SDK

await linkedin_ads.ad_campaign_analytics.list(
q="<str>",
pivot="<str>",
time_granularity="<str>",
date_range="<str>",
campaigns="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ad_campaign_analytics",
"action": "list",
"params": {
"q": "<str>",
"pivot": "<str>",
"timeGranularity": "<str>",
"dateRange": "<str>",
"campaigns": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
qstringYes
pivotstringYesPivot dimension for analytics grouping
timeGranularity"DAILY" | "MONTHLY" | "ALL"YesTime granularity for analytics data
dateRangestringYesDate range in LinkedIn format, e.g. (start:(year:2024,month:1,day:1),end:(year:2024,month:12,day:31))
campaignsstringYesList of campaign URNs, e.g. List(urn%3Ali%3AsponsoredCampaign%3A123)
fieldsstringNoComma-separated list of metric fields to return
Response Schema

Records

Field NameTypeDescription
dateRangenull | object
pivotValuesnull | array
impressionsnull | integer
clicksnull | integer
costInLocalCurrencynull | string
costInUsdnull | string
likesnull | integer
sharesnull | integer
commentsnull | integer
reactionsnull | integer
followsnull | integer
totalEngagementsnull | integer
landingPageClicksnull | integer
companyPageClicksnull | integer
externalWebsiteConversionsnull | integer
externalWebsitePostClickConversionsnull | integer
externalWebsitePostViewConversionsnull | integer
conversionValueInLocalCurrencynull | string
approximateMemberReachnull | integer
cardClicksnull | integer
cardImpressionsnull | integer
videoStartsnull | integer
videoViewsnull | integer
videoFirstQuartileCompletionsnull | integer
videoMidpointCompletionsnull | integer
videoThirdQuartileCompletionsnull | integer
videoCompletionsnull | integer
fullScreenPlaysnull | integer
oneClickLeadsnull | integer
oneClickLeadFormOpensnull | integer
otherEngagementsnull | integer
adUnitClicksnull | integer
actionClicksnull | integer
textUrlClicksnull | integer
commentLikesnull | integer
sendsnull | integer
opensnull | integer
downloadClicksnull | integer
jobApplicationsnull | integer
jobApplyClicksnull | integer
registrationsnull | integer
talentLeadsnull | integer
validWorkEmailLeadsnull | integer
postClickJobApplicationsnull | integer
postClickJobApplyClicksnull | integer
postClickRegistrationsnull | integer
postViewJobApplicationsnull | integer
postViewJobApplyClicksnull | integer
postViewRegistrationsnull | integer
leadGenerationMailContactInfoSharesnull | integer
leadGenerationMailInterestedClicksnull | integer
documentCompletionsnull | integer
documentFirstQuartileCompletionsnull | integer
documentMidpointCompletionsnull | integer
documentThirdQuartileCompletionsnull | integer

Search and filter ad campaign analytics records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.ad_campaign_analytics.search(
query={"filter": {"eq": {"impressions": 0.0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ad_campaign_analytics",
"action": "search",
"params": {
"query": {"filter": {"eq": {"impressions": 0.0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
impressionsnumberNumber of times the ad was shown
clicksnumberNumber of clicks on the ad
costInLocalCurrencynumberTotal cost in the accounts local currency
costInUsdnumberTotal cost in USD
likesnumberNumber of likes
sharesnumberNumber of shares
commentsnumberNumber of comments
reactionsnumberNumber of reactions
followsnumberNumber of follows
totalEngagementsnumberTotal number of engagements
landingPageClicksnumberNumber of landing page clicks
companyPageClicksnumberNumber of company page clicks
externalWebsiteConversionsnumberNumber of conversions on external websites
externalWebsitePostClickConversionsnumberPost-click conversions on external websites
externalWebsitePostViewConversionsnumberPost-view conversions on external websites
conversionValueInLocalCurrencynumberConversion value in local currency
approximateMemberReachnumberApproximate unique member reach
cardClicksnumberNumber of carousel card clicks
cardImpressionsnumberNumber of carousel card impressions
videoStartsnumberNumber of video starts
videoViewsnumberNumber of video views
videoFirstQuartileCompletionsnumberNumber of times video played to 25%
videoMidpointCompletionsnumberNumber of times video played to 50%
videoThirdQuartileCompletionsnumberNumber of times video played to 75%
videoCompletionsnumberNumber of times video played to 100%
fullScreenPlaysnumberNumber of full screen video plays
oneClickLeadsnumberNumber of one-click leads
oneClickLeadFormOpensnumberNumber of one-click lead form opens
otherEngagementsnumberNumber of other engagements
adUnitClicksnumberNumber of ad unit clicks
actionClicksnumberNumber of action clicks
textUrlClicksnumberNumber of text URL clicks
commentLikesnumberNumber of comment likes
sendsnumberNumber of sends (InMail)
opensnumberNumber of opens (InMail)
downloadClicksnumberNumber of download clicks
pivotValuesarrayPivot values (URNs) for this analytics record
start_datestringStart date of the ad analytics data
end_datestringEnd date of the ad analytics data
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].impressionsnumberNumber of times the ad was shown
data[].clicksnumberNumber of clicks on the ad
data[].costInLocalCurrencynumberTotal cost in the accounts local currency
data[].costInUsdnumberTotal cost in USD
data[].likesnumberNumber of likes
data[].sharesnumberNumber of shares
data[].commentsnumberNumber of comments
data[].reactionsnumberNumber of reactions
data[].followsnumberNumber of follows
data[].totalEngagementsnumberTotal number of engagements
data[].landingPageClicksnumberNumber of landing page clicks
data[].companyPageClicksnumberNumber of company page clicks
data[].externalWebsiteConversionsnumberNumber of conversions on external websites
data[].externalWebsitePostClickConversionsnumberPost-click conversions on external websites
data[].externalWebsitePostViewConversionsnumberPost-view conversions on external websites
data[].conversionValueInLocalCurrencynumberConversion value in local currency
data[].approximateMemberReachnumberApproximate unique member reach
data[].cardClicksnumberNumber of carousel card clicks
data[].cardImpressionsnumberNumber of carousel card impressions
data[].videoStartsnumberNumber of video starts
data[].videoViewsnumberNumber of video views
data[].videoFirstQuartileCompletionsnumberNumber of times video played to 25%
data[].videoMidpointCompletionsnumberNumber of times video played to 50%
data[].videoThirdQuartileCompletionsnumberNumber of times video played to 75%
data[].videoCompletionsnumberNumber of times video played to 100%
data[].fullScreenPlaysnumberNumber of full screen video plays
data[].oneClickLeadsnumberNumber of one-click leads
data[].oneClickLeadFormOpensnumberNumber of one-click lead form opens
data[].otherEngagementsnumberNumber of other engagements
data[].adUnitClicksnumberNumber of ad unit clicks
data[].actionClicksnumberNumber of action clicks
data[].textUrlClicksnumberNumber of text URL clicks
data[].commentLikesnumberNumber of comment likes
data[].sendsnumberNumber of sends (InMail)
data[].opensnumberNumber of opens (InMail)
data[].downloadClicksnumberNumber of download clicks
data[].pivotValuesarrayPivot values (URNs) for this analytics record
data[].start_datestringStart date of the ad analytics data
data[].end_datestringEnd date of the ad analytics data

Ad Creative Analytics

Ad Creative Analytics List

Returns ad analytics data pivoted by creative. Provides performance metrics including clicks, impressions, spend, and engagement data grouped by creative.

Python SDK

await linkedin_ads.ad_creative_analytics.list(
q="<str>",
pivot="<str>",
time_granularity="<str>",
date_range="<str>",
creatives="<str>"
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ad_creative_analytics",
"action": "list",
"params": {
"q": "<str>",
"pivot": "<str>",
"timeGranularity": "<str>",
"dateRange": "<str>",
"creatives": "<str>"
}
}'

Parameters

Parameter NameTypeRequiredDescription
qstringYes
pivotstringYesPivot dimension for analytics grouping
timeGranularity"DAILY" | "MONTHLY" | "ALL"YesTime granularity for analytics data
dateRangestringYesDate range in LinkedIn format, e.g. (start:(year:2024,month:1,day:1),end:(year:2024,month:12,day:31))
creativesstringYesList of creative URNs, e.g. List(urn%3Ali%3AsponsoredCreative%3A123)
fieldsstringNoComma-separated list of metric fields to return
Response Schema

Records

Field NameTypeDescription
dateRangenull | object
pivotValuesnull | array
impressionsnull | integer
clicksnull | integer
costInLocalCurrencynull | string
costInUsdnull | string
likesnull | integer
sharesnull | integer
commentsnull | integer
reactionsnull | integer
followsnull | integer
totalEngagementsnull | integer
landingPageClicksnull | integer
companyPageClicksnull | integer
externalWebsiteConversionsnull | integer
externalWebsitePostClickConversionsnull | integer
externalWebsitePostViewConversionsnull | integer
conversionValueInLocalCurrencynull | string
approximateMemberReachnull | integer
cardClicksnull | integer
cardImpressionsnull | integer
videoStartsnull | integer
videoViewsnull | integer
videoFirstQuartileCompletionsnull | integer
videoMidpointCompletionsnull | integer
videoThirdQuartileCompletionsnull | integer
videoCompletionsnull | integer
fullScreenPlaysnull | integer
oneClickLeadsnull | integer
oneClickLeadFormOpensnull | integer
otherEngagementsnull | integer
adUnitClicksnull | integer
actionClicksnull | integer
textUrlClicksnull | integer
commentLikesnull | integer
sendsnull | integer
opensnull | integer
downloadClicksnull | integer
jobApplicationsnull | integer
jobApplyClicksnull | integer
registrationsnull | integer
talentLeadsnull | integer
validWorkEmailLeadsnull | integer
postClickJobApplicationsnull | integer
postClickJobApplyClicksnull | integer
postClickRegistrationsnull | integer
postViewJobApplicationsnull | integer
postViewJobApplyClicksnull | integer
postViewRegistrationsnull | integer
leadGenerationMailContactInfoSharesnull | integer
leadGenerationMailInterestedClicksnull | integer
documentCompletionsnull | integer
documentFirstQuartileCompletionsnull | integer
documentMidpointCompletionsnull | integer
documentThirdQuartileCompletionsnull | integer

Search and filter ad creative analytics records powered by Airbyte's data sync. This often provides additional fields and operators beyond what the API natively supports, making it easier to narrow down results before performing further operations. Only available in hosted mode.

Python SDK

await linkedin_ads.ad_creative_analytics.search(
query={"filter": {"eq": {"impressions": 0.0}}}
)

API

curl --location 'https://api.airbyte.ai/api/v1/integrations/connectors/{your_connector_id}/execute' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your_auth_token}' \
--data '{
"entity": "ad_creative_analytics",
"action": "search",
"params": {
"query": {"filter": {"eq": {"impressions": 0.0}}}
}
}'

Parameters

Parameter NameTypeRequiredDescription
queryobjectYesFilter and sort conditions. Supports operators: eq, neq, gt, gte, lt, lte, in, like, fuzzy, keyword, not, and, or
query.filterobjectNoFilter conditions
query.sortarrayNoSort conditions
limitintegerNoMaximum results to return (default 1000)
cursorstringNoPagination cursor from previous response's meta.cursor
fieldsarrayNoField paths to include in results

Searchable Fields

Field NameTypeDescription
impressionsnumberNumber of times the ad was shown
clicksnumberNumber of clicks on the ad
costInLocalCurrencynumberTotal cost in the accounts local currency
costInUsdnumberTotal cost in USD
likesnumberNumber of likes
sharesnumberNumber of shares
commentsnumberNumber of comments
reactionsnumberNumber of reactions
followsnumberNumber of follows
totalEngagementsnumberTotal number of engagements
landingPageClicksnumberNumber of landing page clicks
companyPageClicksnumberNumber of company page clicks
externalWebsiteConversionsnumberNumber of conversions on external websites
externalWebsitePostClickConversionsnumberPost-click conversions on external websites
externalWebsitePostViewConversionsnumberPost-view conversions on external websites
conversionValueInLocalCurrencynumberConversion value in local currency
approximateMemberReachnumberApproximate unique member reach
cardClicksnumberNumber of carousel card clicks
cardImpressionsnumberNumber of carousel card impressions
videoStartsnumberNumber of video starts
videoViewsnumberNumber of video views
videoFirstQuartileCompletionsnumberNumber of times video played to 25%
videoMidpointCompletionsnumberNumber of times video played to 50%
videoThirdQuartileCompletionsnumberNumber of times video played to 75%
videoCompletionsnumberNumber of times video played to 100%
fullScreenPlaysnumberNumber of full screen video plays
oneClickLeadsnumberNumber of one-click leads
oneClickLeadFormOpensnumberNumber of one-click lead form opens
otherEngagementsnumberNumber of other engagements
adUnitClicksnumberNumber of ad unit clicks
actionClicksnumberNumber of action clicks
textUrlClicksnumberNumber of text URL clicks
commentLikesnumberNumber of comment likes
sendsnumberNumber of sends (InMail)
opensnumberNumber of opens (InMail)
downloadClicksnumberNumber of download clicks
pivotValuesarrayPivot values (URNs) for this analytics record
start_datestringStart date of the ad analytics data
end_datestringEnd date of the ad analytics data
Response Schema
Field NameTypeDescription
dataarrayList of matching records
metaobjectPagination metadata
meta.has_morebooleanWhether additional pages are available
meta.cursorstring | nullCursor for next page of results
meta.took_msnumber | nullQuery execution time in milliseconds
data[].impressionsnumberNumber of times the ad was shown
data[].clicksnumberNumber of clicks on the ad
data[].costInLocalCurrencynumberTotal cost in the accounts local currency
data[].costInUsdnumberTotal cost in USD
data[].likesnumberNumber of likes
data[].sharesnumberNumber of shares
data[].commentsnumberNumber of comments
data[].reactionsnumberNumber of reactions
data[].followsnumberNumber of follows
data[].totalEngagementsnumberTotal number of engagements
data[].landingPageClicksnumberNumber of landing page clicks
data[].companyPageClicksnumberNumber of company page clicks
data[].externalWebsiteConversionsnumberNumber of conversions on external websites
data[].externalWebsitePostClickConversionsnumberPost-click conversions on external websites
data[].externalWebsitePostViewConversionsnumberPost-view conversions on external websites
data[].conversionValueInLocalCurrencynumberConversion value in local currency
data[].approximateMemberReachnumberApproximate unique member reach
data[].cardClicksnumberNumber of carousel card clicks
data[].cardImpressionsnumberNumber of carousel card impressions
data[].videoStartsnumberNumber of video starts
data[].videoViewsnumberNumber of video views
data[].videoFirstQuartileCompletionsnumberNumber of times video played to 25%
data[].videoMidpointCompletionsnumberNumber of times video played to 50%
data[].videoThirdQuartileCompletionsnumberNumber of times video played to 75%
data[].videoCompletionsnumberNumber of times video played to 100%
data[].fullScreenPlaysnumberNumber of full screen video plays
data[].oneClickLeadsnumberNumber of one-click leads
data[].oneClickLeadFormOpensnumberNumber of one-click lead form opens
data[].otherEngagementsnumberNumber of other engagements
data[].adUnitClicksnumberNumber of ad unit clicks
data[].actionClicksnumberNumber of action clicks
data[].textUrlClicksnumberNumber of text URL clicks
data[].commentLikesnumberNumber of comment likes
data[].sendsnumberNumber of sends (InMail)
data[].opensnumberNumber of opens (InMail)
data[].downloadClicksnumberNumber of download clicks
data[].pivotValuesarrayPivot values (URNs) for this analytics record
data[].start_datestringStart date of the ad analytics data
data[].end_datestringEnd date of the ad analytics data