Connecting LinkedIn Ads
Connect your LinkedIn account to Opus Growth.
Before you start
- You need access to the ad account in LinkedIn Campaign Manager.
- Sponsored content ads require a LinkedIn Company Page; text ads do not.
- Targeting values are URNs rather than free text; you find the right ones with
linkedin_targeting_search.
Connection steps
- Run the tool. Tell your assistant
connect_linkedin_ads. It returns a one-time authorization link tied to your account; nothing is connected yet at this point. - Open the link. The link is valid for one hour. Open it in a browser where you are signed in as the person who has access to the LinkedIn account.
- Grant access. Approve the requested permissions on the LinkedIn screen. This is LinkedIn's own consent screen, so the sign-in happens there, not with us.
- Select an account. Your accounts are listed after authorization. Tick the ones you want to manage and save; every later operation runs on the account you picked.
- Confirm. Run
list_linkedin_ad_accounts; if your ad accounts come back with their names, the connection is ready.
Requested permissions
r_adsr_ads_reportingrw_adsopenidprofileemail
Nothing outside this list is requested, and the token is stored encrypted at rest. If you decline any permission on the consent screen, the flow stops and no token is written.
Notes
- Your access and refresh tokens are stored encrypted; the token is refreshed automatically before it expires.
- Sponsored content ads require a LinkedIn Company Page (organization); text ads do not.
- You can find targeting URNs with
linkedin_targeting_search.
Troubleshooting
Why is the campaign list not what I expected?
What the LinkedIn interface calls a campaign is usually a campaign group in the API, and an API campaign matches what the interface shows as an ad group. Budget and dates normally sit at group level, so look at the group list when you are chasing a budget.
Can I upload ad images?
Direct image upload is closed to us on LinkedIn's side. For an ad with an image you sponsor an existing Company Page post as sponsored content; text ads and post sponsorship work fully.
Why does the screen say ad accounts need a Pro or Agency plan?
That message only appears on WordPress-plan accounts, which do not include ad accounts. Once you move to Pro or Agency, the same connect tool works unchanged.
Why does the link say the connection is invalid or expired?
An authorization link expires one hour after it is generated and it is single use; opening a link that was already used produces the same error. Run the connect tool again, and you get a fresh link to continue with.
I selected several accounts but only one was saved. Why?
Free and Pro are locked to a single account; managing several is an Agency feature. Even if you tick more than one on the selection screen, the first is kept when it saves. Agency work means upgrading the plan; after that you refresh the selection from the panel's account switcher, which reuses the stored token so you never authorize again.
I authorized with the wrong user. What happens?
The stored access is limited to the accounts that the authorizing user can see; an account that user cannot reach is not visible to us either. Disconnect from the panel and connect again with the right user, and the old token is deleted.
Disconnecting
Open the panel, find LinkedIn under connected platforms and choose disconnect.
The stored token is deleted immediately, not just hidden, so we can no longer reach the account.
Reconnecting later means running connect_linkedin_ads again and going through
authorization from scratch. Disconnecting does not delete anything inside your
LinkedIn account.