LinkedIn Marketing

Official documentation: LinkedIn Marketing API docs

Authentication

LinkedIn Marketing uses OAuth 2.0 for authentication. hibase handles the authorization flow automatically.

  1. Go to the Connections page and create a New Connection
  2. Select LinkedIn Marketing API from the Connector dropdown
  3. Enter a Connection name
  4. Click Authenticate with OAuth — you will be redirected to LinkedIn Marketing's authorization page
  5. Grant the requested permissions and you will be redirected back to hibase
  6. Click Save

hibase stores the access token securely and refreshes it automatically when it expires.

Endpoints

Ad Analytics (API docs)

Retrieve performance analytics for LinkedIn advertising campaigns, including impressions, clicks, and conversions.

Parameter Description Required
start_day Start day of month (1-31) for the analytics date range. ✅
start_month Start month (1-12) for the analytics date range. ✅
start_year Start year (YYYY) for the analytics date range. ✅
end_day End day of month (1-31) for the analytics date range. ✅
end_month End month (1-12) for the analytics date range. ✅
end_year End year (YYYY) for the analytics date range. ✅
pivot The dimension to group results by. Values: CAMPAIGN, CAMPAIGN_GROUP, CREATIVE, MEMBER_COMPANY, MEMBER_COUNTRY_V2, MEMBER_REGION_V2 ✅
time_granularity Time granularity of the analytics data. Values: DAILY, MONTHLY, ALL ✅
fields Comma-separated list of metric fields to include in the response. ✅
projection A projection expression to select specific fields from the response. —
accounts_urn Filter by ad account URN(s). —
shares_urn Filter by sponsored content share URN(s). —
campaigns_urn Filter by campaign URN(s). —
creatives_urn Filter by creative URN(s). —
campaign_groups_urn Filter by campaign group URN(s). —
companies_urn Filter by company/organization URN(s). —
date_range_start Start date for the analytics query (format: YYYY-MM-DD). —
date_range_end End date for the analytics query (format: YYYY-MM-DD). —
campaigns Comma-separated list of campaign URNs to filter by. —
campaign_groups Comma-separated list of campaign group URNs to filter by. —

Returned Data: All fields from the API response are automatically flattened into columns.

Search Account Users (API docs)

Search for users associated with a LinkedIn ad account.

Parameter Description Required
ad_account_id The LinkedIn ad account ID. ✅
accounts Filter by specific account URNs. —

Returned Data

Column Type
account string
role string
user string

Search Accounts (API docs)

Search for LinkedIn advertising accounts accessible to the authenticated user.

Parameter Description Required
ad_account_id Filter by specific ad account ID. ✅
search Search query to filter accounts by name. —

Returned Data

Column Type
test boolean
currency string
id integer
name string
notified_on_campaign_optimization boolean
notified_on_creative_approval boolean
notified_on_creative_rejection boolean
notified_on_end_of_campaign boolean
reference string
status string
type string

Search Campaign Groups (API docs)

Search for LinkedIn ad campaign groups with filtering and sorting.

Parameter Description Required
ad_account_id The LinkedIn ad account ID. ✅
search_values Filter values to search campaign groups by. —
test Include test campaign groups. Values: true, false —
sort_field Field to sort results by. Values: ID, NAME, STATUS, CREATED, MODIFIED —
sort_order Sort direction. Values: ASCENDING, DESCENDING —

Returned Data

Column Type
name string
test boolean
backfilled boolean
id integer
account string
status string

Search Campaigns (API docs)

Search for LinkedIn ad campaigns with filtering and sorting.

Parameter Description Required
ad_account_id The LinkedIn ad account ID. ✅
search_values Filter values to search campaigns by. —
test Include test campaigns. Values: true, false —
sort_field Field to sort results by. Values: ID, NAME, STATUS, CREATED, MODIFIED —
sort_order Sort direction. Values: ASCENDING, DESCENDING —

Returned Data

Column Type
type string
associated_entity string
test boolean
optimization_target_type string
campaign_group string
creative_selection string
cost_type string
name string
offsite_delivery_enabled boolean
id integer
audience_expansion_enabled boolean
account string
status string

Search Creatives (API docs)

Search for LinkedIn ad creatives with advanced filtering.

Parameter Description Required
ad_account_id The LinkedIn ad account ID. ✅
accounts_urn Filter by account URN(s). —
campaigns_urn Filter by campaign URN(s). —
content_references_urn Filter by content reference URN(s). —
creatives_urn Filter by specific creative URN(s). —
intended_statuses_urn Filter by intended status. Values: ACTIVE, PAUSED, ARCHIVED —
leadgen_creative_call_to_action_destinations_urn Filter by lead gen form call-to-action destination URN(s). —
is_test_account Whether to filter for test accounts. Values: true, false —
sort_order Sort direction. Values: ASCENDING, DESCENDING —

Returned Data

Column Type
created_at integer
last_modified_at integer
is_test boolean
created_by string
is_serving boolean
last_modified_by string
campaign string
id string
intended_status string
account string