Cost of goods sold (COGS) is the direct cost of the products a business sold during a period: what it paid to buy, make or bring those goods to the point of sale. Subtract it from revenue and the result is gross profit, the first measure of whether selling something makes money at all. The figure exists because revenue on its own says nothing about margin. A retailer that turns over 1m euros on goods it bought for 950,000 euros is in a very different position from one that bought the same goods for 400,000 euros. For advertisers, COGS has moved into the ad account, where Google uses it to report gross profit and bidding systems can use it to chase profit rather than sales.

How the figure is built

In accounting, COGS is derived from inventory rather than counted sale by sale. The standard formula is opening inventory plus purchases during the period, minus closing inventory. If a shop starts the quarter with 200,000 dollars of stock, buys 500,000 dollars more and ends with 150,000 dollars on the shelves, its COGS for the quarter is 550,000 dollars.

What goes into "cost" is defined by accounting standards. Under IAS 2, the international standard on inventories, cost covers "purchase costs, production or conversion costs, and other costs incurred to bring inventory to its present location and condition", according to a June 2026 comparison of IAS 2 and the US equivalent, ASC Topic 330, by KPMG. That includes freight in, import duties and factory labour. Advertising, outbound shipping to customers, marketplace fees and head office salaries sit below the gross profit line, in operating expenses.

The choice of cost formula changes the number when purchase prices move. First-in, first-out (FIFO) assumes the oldest stock is sold first. Weighted average cost blends every unit's price. Last-in, first-out (LIFO) assumes the newest stock goes first, which in a period of rising prices produces a higher COGS, lower reported profit and a lower tax bill. KPMG notes that IAS 2 prohibits LIFO because it "does not faithfully represent inventory flow patterns", while US generally accepted accounting principles (GAAP) still allow all three.

In the United States, corporations and partnerships claiming a deduction for COGS attach Form 1125-A to their returns, according to the Internal Revenue Service.

From the ledger to the ad account

Ad platforms do not read a company's accounts. They need a cost per product, attached to the same item identifiers the ads already use. Google built that route through conversions with cart data, an extension of conversion tracking that sends the items in each order rather than a single order total. Item IDs in the tag "must exactly match the id attribute" in the Merchant Center feed, according to Google's help documentation. With them, Google Ads reports number of orders, average cart size, revenue and gross profit.

The cost itself goes in the product feed as the cost_of_goods_sold attribute. Google's Merchant Center specification lists it as a number plus an ISO 4217 currency code, for example "10.01 USD", with a full stop as the decimal separator. It is optional for most products but required for automated discounts and dynamic promotions. The documentation is relaxed about precision: the data "does not need to be exact", and an average is acceptable where costs vary.

Google Ads then computes "profit = revenue - COGS" for each product sold. Where an advertiser lacks real costs, Google suggests estimating COGS at 80% of the product price. Without the attribute, COGS and gross profit columns stay empty. Search Ads 360 offers a similar route, describing the value as "the wholesale cost of the product before tax, shipping, and advertising costs".

A worked example shows the effect on reporting. A Shopping campaign spends 2,000 euros and is credited with 10,000 euros of sales, a return on ad spend (ROAS) of 5.0. If the goods cost 7,000 euros, gross profit is 3,000 euros and the campaign returned 1.5 euros of gross profit per euro spent. If they cost 8,500 euros, gross profit is 1,500 euros and the campaign lost 500 euros before any other cost. The ROAS figure is identical in both cases.

Other platforms take the same input elsewhere. Amazon added a profit analytics dashboard for sellers in September 2025 whose financial inputs accept cost of goods sold data and total cost per unit, set beside fulfilment, storage and advertising costs. Google Analytics 4 introduced calculated metrics in 2023, and PPC Land's coverage showed a formula of item price minus item COGS, divided by item price, to track average margin per sale.

Bidding on profit

Reporting gross profit is one step. Optimising for it is another. Automated bidding maximises whatever value it is fed, and value-based bidding on revenue treats a 30 dollar product with a thin margin as more valuable than a 20 dollar product with a wide one.

At Google Marketing Live on May 21, 2024, Google announced profit optimisation for Performance Max and Standard Shopping campaigns, built on cart data and COGS. In October 2024, Search Engine Roundtable reported a "Gross profit optimization" campaign setting in some accounts, requiring cart data, COGS in the feed and a target ROAS goal set on profit, a variant sometimes called POAS, or profit on ad spend. The post quoted a LinkedIn claim of a 15% uplift in campaign profit from early tests. Google has not published evidence for that figure.

Meta took a different path. On June 4, 2025, it said it was testing profit-based ROAS optimisation, with margin data sent through its Conversions API rather than a product-level cost field.

Origin and evolution

COGS is as old as double-entry inventory accounting, and its modern rules come from standard setters and tax authorities rather than marketers. LIFO entered US tax law in the late 1930s, tied to a conformity rule that companies using it for tax must also use it in their financial reports. The International Accounting Standards Board removed LIFO from IAS 2 in a December 2003 revision, effective for periods beginning on or after January 1, 2005, which is the main reason the figure still differs between IFRS and US GAAP reporters.

Ad platforms came later. Google introduced cart data for Shopping campaigns around 2019, at first as reporting on basket size and cross-selling. COGS-based gross profit reporting followed, then profit optimisation in 2024. Reporting has since spread: in October 2025, Looker Studio added Gross profit and Gross profit margin fields that require COGS data configured in Google Ads, and Google Ads API v24 in April 2026 added a cart data sales view and non-biddable metrics such as all_cost_of_goods_sold_micros.

Why it matters for marketers

The break-even ROAS for any product is the reciprocal of its gross margin. A retailer with a 40% gross margin needs a ROAS of 2.5 before covering any other cost. In PPC Land's ACOS explainer, a 25% ACOS is profitable on a product with a 30% margin and loses money on one with 20%. Channable's data put the median Google Ads cost per sale at 16.47 euros in October 2026, up from 14.41 euros a year earlier, as set out in the cost per sale explainer.

COGS also shapes how media companies look to investors. Under IFRS, retailers often book retail media income from suppliers as a reduction in COGS rather than as revenue. An IAB Europe paper covered by PPC Land in March 2026 showed how the same 20 units of retail media income produce a 40% gross margin under one treatment and 33% under the other, with gross profit unchanged. The line also appears in court filings: Character.ai's first bankruptcy operating report listed cost of goods sold of 622,110 dollars against revenue of 3.48m dollars.

Limitations and disputes

Precision. Google's help pages invite estimates, including a flat 80% of price. A bidding system optimising to an estimated margin is optimising to an assumption, and errors favour the products with the most understated costs.

Gross is not net. COGS excludes outbound shipping, payment fees, returns and marketplace commissions. A product can show healthy gross profit in Google Ads and still lose money once fulfilment is counted.

Disclosure. Feeding product costs to an ad platform tells the seller of the ads what each product can afford to pay. No platform has published adoption figures.

Accounting drift. A feed value is static unless updated, while accounting COGS shifts with purchase prices and cost formula.

Not the same as

Cost of revenue or cost of sales is the broader term used by service and technology companies, including ad tech firms that report traffic acquisition costs paid to publishers; it is the basis of ex-TAC gross profit. Operating expenses include advertising and overheads and sit below gross profit. Contribution margin subtracts COGS and other variable costs such as shipping and payment fees, so it is always lower than gross margin. ACOS divides ad spend by attributed sales; it is a marketing ratio that is judged against margin, not a cost of the goods.

Recent developments

Google's 2026 API and reporting changes have made COGS a more routine column. Meta's profit-based ROAS test remained in testing as of October 2026. Amazon agency operators have also put margin at the centre of client selection: one agency CEO told a prospective brand in April 2026 to start with two or three products with very strong COGS. As of November 2026, neither Google nor Meta requires COGS data, and the definition of cost in any ad account is whatever the advertiser submits.

Timeline

  • Late 1930s: US tax law permits LIFO inventory accounting, with a rule that tax and financial reporting must match.
  • December 2003: The International Accounting Standards Board revises IAS 2 and removes LIFO, effective for periods beginning on or after January 1, 2005.
  • Around 2019: Google adds conversions with cart data for Shopping campaigns, reporting basket size and cross-sell.
  • October 28, 2023: Google Analytics 4 adds calculated metrics, allowing margin formulas using item COGS.
  • May 21, 2024: Google announces profit optimisation for Performance Max and Standard Shopping using cart data and COGS.
  • October 2024: A gross profit optimisation campaign setting appears in select Google Ads accounts, according to Search Engine Roundtable.
  • June 4, 2025: Meta announces a test of profit-based ROAS optimisation using margin data.
  • September 18, 2025: Amazon releases a seller profit analytics dashboard that accepts COGS inputs.
  • October 2, 2025: Google adds Gross profit and Gross profit margin fields to Looker Studio.
  • March 12, 2026: IAB Europe publishes a paper on how retail media income can be netted against COGS.
  • April 22, 2026: Google Ads API v24 adds a cart data sales view and all_cost_of_goods_sold_micros.
  • November 25, 2026: Character.ai's bankruptcy operating report shows COGS of 622,110 dollars for October 12 to 31.

Summary

  • Who: Retailers, manufacturers and marketplace sellers calculate COGS; accounting standard setters (IASB, FASB) and tax authorities such as the IRS define it; Google, Amazon and Meta accept cost or margin data for reporting and bidding.
  • What: The direct cost of the goods a business sold in a period, including purchase, production and inbound costs but excluding selling costs such as advertising; revenue minus COGS is gross profit.
  • When: A long-standing accounting line, shaped by LIFO rules from the late 1930s and the 2003 IAS 2 revision; ad platforms added COGS-based reporting from around 2019 and profit optimisation from 2024.
  • Where: On income statements and tax returns such as Form 1125-A, and in advertising in Merchant Center feeds, Google Ads and Search Ads 360 reports, Looker Studio, the Google Ads API and Amazon seller tools.
  • Why: Revenue and ROAS cannot show whether a sale is profitable; COGS lets advertisers see and bid on gross profit, though estimated costs and excluded expenses limit how far that figure can be trusted.