A Snapchat connection does not run out on a date. Snap's access tokens last one hour and are renewed with a refresh token, and Snap's FAQ says that refresh token never expires. What ends a Snapchat connection is the person behind it: the refresh token stops working once the Snapchat user it belongs to has their access removed. If the colleague who connected Snapchat leaves your company, or loses their role in your Snap organization or ad accounts, the connection breaks. The fix is to connect again with a Snapchat login that still has access.
How Snap's tokens work
Snap's Marketing API uses OAuth. When someone signs in and approves the app, Snap issues two tokens:
- An access token, valid for 3,600 seconds (60 minutes). Every API call carries it. When it has expired, Snap answers with a 401 and the description that the access token expired.
- A refresh token, which is long-lived. It is traded for a new access token, and Snap's response to a refresh includes a refresh token as well.
Snap's authentication page also says that an access token reflects the permissions of the user who granted it. API calls can only reach the organizations and ad accounts that user can reach in Snap. There is no separate service account behind the connection: it is that one person's access.
When the connector is available, etlmcp handles the hourly renewal for you. It uses the stored access token until it is close to expiring and then refreshes it first, and if Snap still answers a call with a 401, it refreshes once and tries again. It always stores the refresh token Snap returns.
When the refresh token stops working
The refresh token has no expiry date, so every cause comes down to the user:
- The person left the organization. Snap's FAQ points out that an employee may have set up access with their own Snapchat account. When that person's access is removed, the tokens tied to their account stop working, and you need new ones.
- The person lost their role. If their membership of the organization or of the ad accounts is taken away, the grant no longer reaches what it used to.
- The app was removed. Snap's FAQ says an app is revoked by signing in as the Snapchat user who granted access and removing it under Manage Apps in that account's settings. Deleting etlmcp from that list ends the connection.
Adding or removing ad accounts later does not require new tokens, according to the same FAQ: the token belongs to the Snapchat account, not to a list of ad accounts.
What you see in etlmcp
When the connector is available, there are two outcomes, depending on how much access the person lost.
If Snap refuses the refresh itself, etlmcp marks the whole connection as needing a reconnect with the reason access was revoked or has expired. The run is not retried. The scheduler skips the affected pipelines until you reconnect, and your owners get an email. The needs reconnecting page covers that state in full.
If the login still works but one ad account refuses it, only that account is affected. etlmcp checks whether the same grant still answers for its user; if it does, the account is marked this Snapchat ad account is not accessible with this connection and the other accounts on the connection keep syncing. See ad account not accessible.
Reconnecting with someone who still has access
A Reconnect press only works for the same Snapchat user. If someone else signs in, nothing changes and etlmcp tells you to reconnect with the original login. When the original person is gone, do this instead:
- Have a person who still has access to the Snap organization and ad accounts connect Snapchat as a new connection.
- Tick the same ad accounts on the account picker. etlmcp moves the existing sources onto the new connection, with their pipelines and history, and they do not count against your plan's sources twice.
- Check the source states on the sources page: the moved accounts should show OK.
Snap's FAQ suggests setting up a Snapchat account for this purpose rather than relying on someone's personal login.
Read access only
The Marketing API scope, snapchat-marketing-api, grants both read and write access according to Snap's authentication page, which lists no read-only scope for the Marketing API, so the consent screen asks for both. etlmcp's Snapchat connector only ever sends GET requests: it reads your organizations, ad accounts, campaigns, ad squads, ads and daily stats, and never creates, edits or deletes anything. The Snapchat connector page lists what it reads.