View as Markdown
LinkedIn Ads icon

LinkedIn Ads ACTION

Create Report By Advertiser Account

Sample query using analytics finder that gets analytics for a particular account for date range starting in a given year. See the docs here
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's LinkedIn Ads account once, then configure and run Create Report By Advertiser Account from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "linkedin_ads-create-report-by-advertiser-account",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    linkedin_ads: { authProvisionId: "apn_xxxxxxx" },
    startYear: "Start Year",
    timeGranularity: "Time Granularity",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Report By Advertiser Account inputs
Property Type Description
startYear Start Year string
The inclusive start year range of analytics. This action query is set to 1st January, as the day and month of the start range of the analytics.
Required
timeGranularity Time Granularity string

Time granularity of results. Valid enum values:

  • ALL - Results grouped into a single result across the entire time range of the report.
  • DAILY - Results grouped by day.
  • MONTHLY - Results grouped by month.
  • YEARLY - Results grouped by year.
Required
adAccountId Ad Account Id string
Sponsored ad account id to match results by
Required Dynamic

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
linkedin_ads-create-report-by-advertiser-account
Version
0.0.8
App
LinkedIn Ads
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes