Measurement strategy
How to drive Meta Ads and Google Ads campaigns by profit margin in e-commerce?
Questions about this article?
Open it in your AI assistant to summarise it or apply it to your setup.
Generating sales with Google Ads or Meta Ads is great. But those sales still need to be profitable! Between acquisition costs, product prices and the various expenses of your e-commerce store, good revenue does not necessarily mean you are making money.
To take your performance analysis further, it makes sense to manage your ad campaigns based on your margins, not just your ROAS. In this article, we will look at how to measure that profitability, collect the right data and use it to optimize your campaigns!
In short
Managing your Google Ads and Meta Ads campaigns by margin lets you invest more in the products that are truly profitable, provided you have reliable data and properly configured tracking.
Why manage ad campaigns by margin rather than by revenue?
When you analyze the results of your Google Ads or Meta Ads campaigns, you probably look first at the revenue generated and the ROAS. Both are useful metrics to measure performance, but they do not necessarily tell you whether your ads are actually making you money.
ROAS does not always reflect the real profitability of your campaigns
ROAS (Return On Ad Spend) measures the revenue generated for each euro spent on advertising. To calculate it, simply divide the revenue attributed to a campaign by its ad cost.
For example, a ROAS of 5 means that each euro invested in your campaigns generates €5 of attributed revenue. Pretty good, right? Except that ROAS does not take into account your production costs, purchase costs or shipping costs.
And if you sell products with very different margins, you can quickly end up with campaigns that look great in Google Ads but are not profitable for your business.
Let’s take two Google Ads campaigns with identical performance:
Simplified example, with a margin calculated before ad spend and after deducting the costs retained for the products sold.
Both campaigns generate exactly the same revenue, with the same budget and the same ROAS. Yet campaign A brings in €2,000 after ad spend, while campaign B loses €500.
That is the whole problem with an ad strategy based solely on ROAS: you risk increasing your budget on products that generate lots of sales but little margin.
And when several channels are involved in a customer’s purchase journey, the analysis becomes even more complex. To better understand how conversions are split between platforms, read my article on marketing attribution.
Gross margin, ad costs and POAS: which metrics should you track?
To know whether your Google Ads and Meta Ads campaigns are really profitable, ROAS is not enough. You also need to look at what is left of your sales once the various costs are deducted!
Several metrics will help you see more clearly:
- Gross margin: your revenue minus the cost of goods sold. It shows the margin made before deducting ad spend and other expenses.
- Contribution margin: it goes further by including the variable costs tied to your sales, such as shipping, platform fees or payment fees.
- ROAS (Return On Ad Spend): it measures the revenue attributed to your campaigns relative to your ad budget.
- POAS (Profit On Ad Spend): it compares the margin generated before ad spend with the amount invested in advertising.
POAS is particularly useful in e-commerce, especially if your catalog contains products with very different margins!
Here is another example: you invest €1,000 in a Google Shopping campaign that generates €5,000 in revenue, with a margin of €2,000 before advertising.
Your ROAS is 5, while your POAS is 2 (€2,000 of margin / €1,000 of advertising). In other words, each euro invested in advertising generates €2 of margin before deducting the ad cost.
With this calculation method, a POAS above 1 means that the margin covers your ad spend. Be careful though: it does not guarantee that your business is profitable overall, since some fixed or other costs may still need to be deducted.
Good to know
How POAS is calculated can vary between tools and companies. Some use gross margin, others a margin that includes more variable costs. What matters is to keep the same calculation method so you can compare your campaigns’ performance correctly.
The goal is not to drop ROAS entirely, but to complement it with margin data so you know which products and campaigns really contribute to your profitability.
How to collect the data needed to manage campaigns by margin?
To manage your campaigns by margin, you first need the right data! Your e-commerce store must be able to identify the products sold, know their costs and send conversion information to ad platforms. The goal is to link each sale to its margin, rather than only reporting its revenue in Google Ads or Meta Ads.
Centralize the costs and margins of your e-commerce products
The first step is to know the exact margin of every product in your catalog. To do that, you need at least three pieces of information: its identifier, its selling price and its purchase or production cost. This data can be pulled from your e-commerce CMS, your ERP or your inventory management tool, then centralized to calculate your product margins.
In Google Ads, you can use Google Merchant Center to provide the cost of goods sold (COGS) in your product feed. By combining this information with cart data from purchases, Google Ads can calculate gross margin metrics for the sales attributed to your ads.
Warning
Entering product costs in Merchant Center is not enough to automatically set up a margin-based bidding strategy. We will see later how to use this information to optimize your campaigns!
Good to know
If you run promotions, offer discounts or sell products whose cost changes regularly, remember to keep your data up to date. A margin calculated from an outdated price or cost can skew your profitability analysis.
Ideally, you want a centralized data source that is updated regularly and that you can then use in your various marketing tools.
Make conversion tracking reliable in Google Ads and Meta Ads
Once you have identified your product margins, you need to make sure sales data flows correctly into your ad platforms. And that is where tracking comes in!
To manage your campaigns by margin, knowing that a user made a purchase is not enough. You also need to know which products were bought, in what quantity and for what value. In practice, your e-commerce tracking should collect several pieces of information for each conversion:
- Product identifiers: to match the items purchased with your catalog and their margins.
- Quantity purchased: to correctly calculate the value of each order.
- Transaction amount: to know the revenue generated by the sale.
- Transaction ID: to identify each order and limit the risk of duplicates.
- Margin data: to link the products sold to their profitability, based on your catalog or your management system.
This information can be collected with Google Tag Manager and a properly configured dataLayer on your e-commerce site. Sales data can then be matched with your product costs to calculate margins and send suitable conversion values to Google Ads and Meta Ads. Note that the two platforms do not offer exactly the same features or integration options, so tracking has to be configured for each environment!
You can also consider server-side tracking to better control the data sent to ad platforms and make some aspects of its collection more reliable. However, this kind of setup does not guarantee that you will recover every conversion, especially when the user’s consent does not allow them to be tracked.
What matters most is having consistent, sufficiently complete conversion data that is correctly tied to the products sold. Without it, even a well-optimized ad strategy risks relying on inaccurate information.
If you have doubts about the reliability of the conversions reported in Google Ads or Meta Ads, I can audit your tracking to identify configuration errors, check the data collected and help you make your e-commerce campaign measurement reliable.
How to optimize Google Ads and Meta Ads campaigns based on margins?
Now that you have reliable data on your sales and margins, you can use it to adjust your ad strategy. The idea is simple: invest more in the products that actually make money, rather than in those that only generate revenue.
To do that, you can act on how your budget is allocated, on your profitability targets and on the conversion values sent to ad platforms.
Adapt budgets and bids to product profitability
Not all the products in your e-commerce store are equally profitable. Some have a comfortable margin, while others need a high sales volume to cover their costs.
Yet if you manage your Google Ads campaigns with a ROAS target only, you risk favoring the products that generate the most revenue, even if their margin is low.
To avoid this, you can adapt your ad strategy to the profitability of your catalog:
- Segment your products by margin: group products with similar profitability levels to better analyze their performance.
- Adjust your ROAS targets: a low-margin product generally needs a higher ROAS to cover its ad costs.
- Allocate your ad budget: prioritize campaigns and product categories that generate enough margin after ad spend.
- Analyze performance regularly: monitor changes in acquisition costs, conversions and margins to adjust your investments.
For example, if a product has a 20% margin before advertising, you theoretically need a ROAS of 5 to cover ad spend. With a 50% margin, a ROAS of 2 is enough.
These thresholds are the advertising break-even point, before any additional costs not included in your margin calculation.
- In Google Ads, this approach applies in particular to “Shopping” and “Performance Max” campaigns, which serve ads based on your product catalog. You can use custom labels in your Google Merchant Center feed to group products by margin level, then structure your campaigns accordingly.
- In Meta Ads, you can also segment your catalog and create product sets to adapt your delivery strategy and budget.
Warning
Segmenting your products does not guarantee better results! An overly complex structure can scatter conversion data and limit the effectiveness of automated bidding strategies.
The goal is to find the right balance between product profitability, available conversion volume and each platform’s optimization capabilities.
Send margin-based conversion values to ad platforms
Adjusting your budgets based on margins is a first step. But you can go further by using margin directly as the conversion value in your Google Ads and Meta Ads campaigns!
By default, when a customer makes a €100 purchase in your e-commerce store, your tracking may send a €100 conversion to the ad platform. But if that product costs you €70, your gross margin is only €30. By sending a conversion value of €30 instead of €100, you give the platform information that is closer to the profitability of that sale.
In Google Ads, you can use two approaches:
- Conversions with cart data: they send the products purchased and match them with the costs provided in Google Merchant Center. You can then analyze gross margin metrics in your Google Ads reports.
- Custom conversion values: they send a value calculated from margin rather than revenue. Automated bidding strategies, such as “Maximize conversion value” with a target ROAS, can then optimize campaigns based on that value.
Warning
The margin data shown in Google Ads reports does not automatically become the values used for bidding. To optimize campaigns based on margin, you need to configure your conversion values accordingly.
In Meta Ads, the principle is similar: you can send profitability information with purchase events, in particular through the Conversions API. Depending on the features available on your account and eligibility requirements, this data can be used to optimize campaigns for the profit generated.
In both cases, it is important to clearly define your calculation method and to check that the values sent match actual sales! The point is not simply to collect more data, but to give the algorithms the information that truly reflects your profitability goals. A campaign that generates less revenue may ultimately be more valuable if it contributes more to your margin!
Conclusion
Managing your Google Ads and Meta Ads campaigns by margin lets you look beyond revenue to better understand what your ad investments actually bring in. By combining metrics such as ROAS and POAS with reliable conversion data, you can adjust your budgets, bids and strategies based on the profitability of your products.
But for this approach to work, everything depends on the quality of your tracking and of the data sent to ad platforms. Without reliable data collection, even the best optimization strategies risk relying on bad information!
FAQ - Managing e-commerce campaigns by margin
How do I know if Google Ads conversions are tracked correctly?
Why do Google Ads and Meta Ads report different conversion results?
Does Consent Mode V2 affect the performance of Google Ads campaigns?
Can you manage Google Ads and Meta Ads campaigns by margin without a large ad budget?
How can you get help optimizing the tracking and profitability of your ad campaigns?
Let's talk about your tracking
A question about this article, need an audit of your setup or server-side migration? Drop me a line, I reply within 24h.
Prefer to talk it through? Book a discovery call →
Thanks, your request has been sent!
I'll reply within 24h. To move faster, book a discovery call right away.


Comments
Join the discussion
A question, some feedback, a specific case? Leave a comment: I reply to every one.