El catálogo/LinkedIn Ads
LinkedIn Ads
app.linkedin-ads
Report on LinkedIn ad campaigns and pause, activate or re-budget them
Versión1.0.1
Categoríamarketing
AutenticaciónOAuth 2
Herramientas14
Transportestdio
LicenciaMIT
01
Qué hace
La aplicación, en sus propias palabras.
LinkedIn Marketing API (Advertising): list ad accounts, campaign groups, campaigns and creatives, report performance with adAnalytics, and pause, activate or re-budget campaigns.
02
Herramientas
14 herramientas que el agente puede llamar.
Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.
- activate-campaignActivate one LinkedIn campaign (status ACTIVE). AFFECTS SPEND: once active the campaign serves ads and is billed up to its budget (LinkedIn may spend up to 150% of a daily budget on a given day). Check budget and schedule with get-campaign first. A COMPLETED campaign needs a new end date in Campaign Manager. Returns { success, id, accountId, status }.
- activate-campaign-groupActivate one LinkedIn campaign group (status ACTIVE). AFFECTS SPEND: its ACTIVE campaigns start serving and are billed up to their budgets. Check them with list-campaigns first. Returns { success, id, accountId, status }.
- activate-creativeActivate one LinkedIn creative (ad): intendedStatus ACTIVE. AFFECTS SPEND: if its campaign is active the ad serves and is billed; a DRAFT creative goes to LinkedIn review first. Returns { success, id, accountId, intendedStatus }.
- get-ad-analyticsReport LinkedIn ad performance (adAnalytics) for an ad account, campaign groups, campaigns or creatives over a date range, grouped by 1 to 3 pivots (CAMPAIGN, CREATIVE, ...) or by one professional demographic pivot (MEMBER_JOB_FUNCTION, MEMBER_COMPANY, ...). Returns columns: { pivots, timeGranularity, rowCount, columns: { pivotValues: [[urn, ...]], start?: [date], end?: [date], <metric>: [values] }, limitApplied }. Default metrics: impressions, clicks, costInLocalCurrency (a decimal string in the account currency), landingPageClicks, externalWebsiteConversions, oneClickLeads, totalEngagements. pivotValues are URNs: match campaign ids with list-campaigns. Limits: DAILY covers at most 92 days, MONTHLY 36 months; demographic values are approximate, delayed 12-24 h and only the top 100 per creative per day. An empty result means no activity or no access.
- get-campaignGet one LinkedIn campaign with its settings and targeting. Returns the fields of list-campaigns plus targetingCriteria (LinkedIn include/exclude facets with URNs), locale, audienceExpansionEnabled, offsiteDeliveryEnabled, creativeSelection, pacingStrategy, createdAt and lastModifiedAt.
- list-ad-accountsList the LinkedIn ad accounts the connected member can access. Returns { accounts: [{ id, name, status, type, currency, servingStatuses, reference, test }], count, nextPageToken }. servingStatuses explains why an account does not serve (BILLING_HOLD, ...). Start here: every other tool takes an accountId from this list. Max 100 per page; pass nextPageToken back as pageToken for the next page.
- list-campaign-groupsList the campaign groups of one LinkedIn ad account. Returns { campaignGroups: [{ id, name, status, servingStatuses, objectiveType, totalBudget, dailyBudget, budgetOptimizationStrategy, runSchedule, backfilled, test }], count, nextPageToken }. Budgets are { amount, currencyCode } in the account currency; dates are ISO 8601 UTC. By default lists ACTIVE, PAUSED and DRAFT groups. Max 100 per page.
- list-campaignsList the campaigns of one LinkedIn ad account, optionally only those in some campaign groups. Returns { campaigns: [{ id, name, status, servingStatuses, campaignGroupId, type, format, objectiveType, costType, optimizationTargetType, dailyBudget, totalBudget, unitCost, runSchedule, test }], count, nextPageToken }. Budgets and bids are { amount, currencyCode }; dates are ISO 8601 UTC. By default lists ACTIVE, PAUSED and DRAFT campaigns (add COMPLETED for finished ones). Max 50 per page. Use get-campaign for targeting, get-ad-analytics for performance.
- list-creativesList the creatives (ads) of one LinkedIn ad account, optionally only those of some campaigns or intended statuses. Returns { creatives: [{ id, urn, name, campaignId, intendedStatus, isServing, servingHoldReasons, reviewStatus, contentReference, createdAt, lastModifiedAt, test }], count, nextPageToken }. isServing and servingHoldReasons say whether the ad really runs (a PAUSED campaign stops its creatives too). contentReference is the sponsored post URN. Max 100 per page.
- pause-campaignPause one LinkedIn campaign (status PAUSED): it stops serving and spending until activated again with activate-campaign. Its creatives and settings are kept. Returns { success, id, accountId, status }.
- pause-campaign-groupPause one LinkedIn campaign group (status PAUSED): none of its campaigns serve or spend until it is activated again with activate-campaign-group. Returns { success, id, accountId, status }.
- pause-creativePause one LinkedIn creative (ad): intendedStatus PAUSED, so it stops serving while the rest of its campaign keeps running. Undo with activate-creative. A creative still in review cannot be paused (LinkedIn answers 400). Returns { success, id, accountId, intendedStatus }.
- update-campaign-budgetChange the daily and/or lifetime (total) budget of one LinkedIn campaign. AFFECTS SPEND: a higher budget lets LinkedIn bill more (up to 150% of the daily budget on a given day); the change applies immediately to an active campaign. Amounts are in the account currency, with at most 2 decimals. LinkedIn enforces minimums (often 10 per day). Returns { success, id, accountId, previous: { dailyBudget, totalBudget }, updated: { ... } }.
- update-campaign-group-budgetChange the total (lifetime) budget of one LinkedIn campaign group, shared by all its campaigns. AFFECTS SPEND: a higher budget lets its campaigns be billed more. The group needs an end date (runSchedule.end) for a total budget; LinkedIn answers 400 otherwise. Amount in the account currency, at most 2 decimals. Returns { success, id, accountId, previous: { totalBudget }, updated: { totalBudget } }.
03
Autenticación y permisos
Qué pide.
Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.
Permisos
r_adsr_ads_reportingrw_ads
Secretos de sistema
CLIENT_IDCLIENT_SECRET
Secretos de instalación
ACCESS_TOKENREFRESH_TOKENEXPIRY_DATE
Seguir leyendo
El manifiesto y el código de LinkedIn Ads están en el repositorio, junto al resto de apps.