Skip to main content

Scenario

Your LinkedIn ads are performing, but your team recycles the same copy patterns. This job pulls existing ad copy alongside engagement metrics, distills a Brand Voice from top performers, then uses Mavera’s Generate endpoint with the LinkedIn Ad app template to produce fresh variations that match your proven tone. Each variant is ready to paste into Campaign Manager.

Architecture

Code

Example Output

Error Handling

Analytics require the creative URN in the exact format urn:li:sponsoredCreative:{id}. If analytics return empty, verify the URN format and date range.
Under ~200 words of combined ad copy produces a generic voice. Include at least 5 ads with 30+ words each.
Intro text: 150 chars (mobile truncation). Headline: 70 chars. Description: 100 chars. The prompt specifies these constraints, but verify generated output before uploading.
LinkedIn access tokens expire after 60 days. For batch jobs pulling 50+ creatives, implement token refresh middleware to avoid mid-run failures.

All LinkedIn Marketing jobs

Brand Voice