How We Resolved Meta’s Access Issue in Our Project

Learn how we worked around strict Meta Ads permissions and evolved from manual Google Sheets workarounds into a centralized BigQuery reporting pipeline

Author: Jaheen KhanPublished: November 20, 20266 min read
How We Resolved Meta’s Access Issue in Our Project

Key Takeaways

  • Adapt integrations to client security limits instead of forcing broad access
  • Manual workarounds are practical stepping stones when early budgets are tight
  • Duplicating scripts across multiple files creates serious maintenance debt
  • Centralize data pipelines so your reporting systems scale with business growth

Connecting an advertising platform to a reporting system seems easy. You get the access you need, connect the API, and start pulling data. But sometimes the challenge is not building the integration. It's about figuring out how to make the connection work within the client's security constraints.

One of the challenges we faced was to build a system for daily profit and loss reporting for an e-commerce business with seven Shopify stores operating in different European countries.

When the Usual Authentication Method Wasn't an Option

The reporting system needed ad spend data from Meta to calculate daily ad spend, ROAS, and overall profitability. But we couldn’t use the standard Meta authentication flow as the client was uncomfortable with the access level required.

Access permissions are not something to take lightly for a business that runs multiple stores and advertising accounts. The client was concerned with the possible risks of providing access to that level, so we had to come up with an alternative.

Instead of asking the client to change his access preferences, we looked for another way to allow us to continue with the integration.

Finding Another Way to Connect

We decided to let the client build the Meta app himself. We used the app that was created under his account to come up with a different way of authenticating ourselves so that we could generate an access token and use that to pull the advertising data.

We had a working connection now, without the client having to go through the usual authentication flow that he was uncomfortable with.

There was one catch, however. The access token was good for about two months. It then needed to be refreshed for the data integration to continue working properly.

This may not have been a major inconvenience for one reporting system. But our client did not just have one. He has seven of it.

The Maintenance Problem Behind Seven Stores

The reporting system at the time was made up of seven separate Google Sheets, one for each Shopify store. Each spreadsheet had its own Apps Script code, its own Meta access token.

That meant the client had to go in and manually refresh seven different tokens every couple of months.

We had made the refresh process easier for him, but the repetition was there anyway. And since the client could not afford to invest into a separate automated token management system back then, manual refresh was the practical option.

It was not a failure in that moment, but another task for the client to take on in their day to day. With the growth of the business it was no longer very convenient to have seven separate connections.

Moving Toward a Centralized Solution

The Meta access issue was one of the reasons we ultimately moved the reporting system into its second phase.

“We moved to a centralized backend instead of having seven different processes to get data. Instead of each spreadsheet pulling Meta Ads data separately, now one pipeline can sync the data and store it centrally in BigQuery.

This also means the team will not have to work with seven different reporting files to work with the data. The new system brought the stores together under one dashboard, but still felt like the familiar Google Sheets interface.

The bigger improvement wasn’t just getting data from Meta. The idea was to reduce the number of separate processes the client had to run.

Last Message

Sometimes the first solution is not the most practical in the long run. Our first workaround enabled us to continue, even if the client had access restrictions, but it also came with a maintenance responsibility.

As client was growing the business we had to change the architecture and not keep managing the same problem in seven different places.

A good reminder that a successful integration is not just one that works today. It should also scale with the growth of the business.

Inside the Shopify Stack

One email a month with real solutions from the stores we build and manage, from theme and app decisions to ops workflows and reporting