r_ads, r_ads_reporting, and rw_ads from that product;
additional product permissions are requested only after LinkedIn approves each product. LinkedIn also checks your role on
the selected ad account. A viewer can read data but cannot make changes, even
after granting rw_ads. See LinkedIn’s Advertising API permissions
and campaign management account roles.
Connect an account
- Open Data and choose LinkedIn Ads.
- Sign in to LinkedIn and approve the requested permissions.
- Choose the ad account for this connection.
- Create a dataset from the connection and enable sync.
r_ads, r_ads_reporting, and rw_ads. It can read
campaigns and reporting and can create or update campaigns, creatives, status,
and budgets after each write is approved. New creatives are created as drafts.
Activating a campaign leaves its draft creatives inactive; each creative must be
explicitly activated through its own approved status change. It can also inspect
lead form definitions. Reading submitted lead responses additionally requires
LinkedIn’s separately approved Lead Sync API product and permission
r_marketing_leadgen_automation.
If you connected before rw_ads was added, reconnect the LinkedIn account and
approve the updated permissions before using write actions. To request Lead Sync,
Erdo’s LinkedIn app must first be approved for the Lead Sync API product; an
Erdo deploy turns it on, and the integration catalog picks it up at startup. Reconnect the account and approve the
added permission. LinkedIn does not add new permissions to an existing access
token. Having the permission does not itself create a lead source; see LinkedIn
lead form sync.
Manage campaigns with an agent
Ask your agent to list campaign groups, campaigns (called ad sets in Campaign Manager), creatives, or lead forms for the connected account. It can also report daily campaign performance for a date range. For a new campaign, provide its objective, location and audience targeting, budget, schedule, and bidding settings. Matched audiences and exclusions use existing LinkedIn audience IDs. For a single-image creative, provide the exact introductory text, headline, image URL, CTA, and either your organization’s verified destination URL or an account-owned lead form. Each write produces an approval showing the proposed changes. Creative approvals include the ad critic’s advisory findings or an explicit notice if review was unavailable. Image bytes are checked again before upload; a changed image needs fresh approval. Groups, campaigns, and creatives are created in DRAFT. Approve their activation separately, then check creative review status and analytics to confirm delivery. The agent can also pause or archive individual entities and change group/campaign budgets and schedules. All actions use the account selected on the connection. Selecting a different account requires fresh approval for a pending change. Use provider lead sources to ingest submitted leads through this connection after Lead Sync approval.Conversion and audience availability
Conversion and Matched Audience actions require LinkedIn product approval and a reconnected account with the required permissions are also needed. Campaign management remains available without this flag, and you can still disable or remove existing row actions.Report conversions
Once LinkedIn approves Erdo’s Conversions API access, reconnect to grant the new permission. Your agent can list conversion rules and request approval to create a rule for any of LinkedIn’s conversion types, such as a purchase, sign-up, trial start, submitted lead or qualified lead. Associate each rule with the intended campaigns in LinkedIn Campaign Manager. Attach a dataset row action to the dataset that records the outcome to report events automatically. Each event uses the person’s own submitted email, which Erdo hashes before sending, and the capturedli_fat_id when available.
Enriched or purchased contact details must never be used for conversion uploads.
The declaration fixes the account and conversion rule, and uses a stable event
ID so retries refer to the same event.
For example, this step reports a qualification using the original timestamp:
erdo_conversion_id and the event timestamp. Set on_update:"act" on the
qualification declaration so a later qualification write on a canonical lead
can trigger it. Use a separate submitted-lead
rule and {{row.submitted_at}} for submission events. Acceptance means LinkedIn
received the event for processing; attribution can take longer.
Maintain an audience from a dataset
After Matched Audiences approval, reconnect to grant that product’s permission. Your agent can create a contact or company audience, add or remove members, and check processing status and match counts. Every direct write requires approval. A contact member can carry every identifier you have:email (hashed with SHA-256
before it is sent), first_name, last_name, company, title and country
(ISO two-letter code). LinkedIn matches on an email or on a first and last name,
and uses the other fields to improve the match, so send them all together.
LinkedIn has no profile-URL identifier. Names are cut at 35 characters, company
at 50 and title at 100. Company lists use company names and/or domains.
For an ongoing list, declare an ADD row action with one member per source row:
email, or first_name and last_name, to row columns
as {{row.column}}. Write every other field as {{?row.column}}, including the
names when email is the bound identifier: a required binding skips each row
that lacks that value. An unusable optional value (a country that is not an ISO
two-letter code, a blank email) is dropped for that row only, and the result
lists any row skipped for having no identifier.
Use backfill:"all" when initializing an existing list. A separate row action
with operation:"REMOVE" and on_exclude:{"hold":"0s"} removes members when
rows leave the dataset’s default view. Keep matching identifiers stable.
Deleting a row outright, replacing an identifier, or restoring a filtered row
without a new write requires an explicit removal or add/backfill; these
declarations do not compare full list snapshots.
LinkedIn processes matching asynchronously. An accepted batch does not mean
that every contact matched or that the audience is ready for targeting. Check
the audience status before using its LinkedIn audience ID in campaign targeting.
If an action says it needs a product permission, reconnect after Erdo’s access
for that product has been approved. Existing advertising and reporting access
continues to work while another product is awaiting approval.
Reconnect when requested
LinkedIn access tokens normally last 60 days. Apps approved for programmatic refresh also receive a refresh token, normally valid for 365 days. Erdo renews access tokens when that refresh token is available. Otherwise, Erdo marks the connection as needing reconnection before the access token expires when it next checks credentials. Reconnect from the connection’s settings to resume sync.Existing LinkedIn lead capture
All lead capture uses the native LinkedIn Ads connection. Legacy declarations retain their stored IDs and progress but resolve the organization’s active native connection, whose selected account and Lead Sync permission must match the source. Use the migration steps to pin each declaration to a specific native integration without losing sync progress. For API and CLI callers, the native integration key islinkedin_ads_sync.
