<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Peter (The Trillium Company)</title>
    <description>The latest articles on DEV Community by Peter (The Trillium Company) (@trilliumcompany).</description>
    <link>https://dev.to/trilliumcompany</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4199507%2F48a53dc6-7096-4227-892c-cddca4f834e6.png</url>
      <title>DEV Community: Peter (The Trillium Company)</title>
      <link>https://dev.to/trilliumcompany</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/trilliumcompany"/>
    <language>en</language>
    <item>
      <title>Content API for Shopping 410 (content_api_sunset): a practical Merchant API migration checklist</title>
      <dc:creator>Peter (The Trillium Company)</dc:creator>
      <pubDate>Thu, 22 Oct 2026 04:00:48 +0000</pubDate>
      <link>https://dev.to/trilliumcompany/content-api-for-shopping-410-contentapisunset-a-practical-merchant-api-migration-checklist-35ia</link>
      <guid>https://dev.to/trilliumcompany/content-api-for-shopping-410-contentapisunset-a-practical-merchant-api-migration-checklist-35ia</guid>
      <description>&lt;p&gt;If your product feed sync started failing intermittently with &lt;strong&gt;HTTP 410&lt;/strong&gt; since September 1, 2026, it's not your code randomly breaking. Google retired the &lt;strong&gt;Content API for Shopping (v2.1)&lt;/strong&gt; on August 18, 2026, and requests from projects without an active extension now fail some of the time with a &lt;code&gt;content_api_sunset&lt;/code&gt; error. In early 2027 all requests stop working (&lt;a href="https://developers.google.com/shopping-content/guides/deprecation-and-sunset" rel="noopener noreferrer"&gt;Google's deprecation page&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;This post is for people who maintain a &lt;strong&gt;custom integration&lt;/strong&gt; (a script, a cron job, a homegrown feed service). If you're on a mainstream ecommerce platform or app, the platform/app vendor usually handles the move.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Recognise the error
&lt;/h2&gt;

&lt;p&gt;The artificial 410 looks like this (trimmed):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;410&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ABORTED"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"details"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"type.googleapis.com/google.rpc.ErrorInfo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"reason"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"content_api_sunset"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"domain"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"shoppingcontent.googleapis.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"metadata"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"GCP_ID"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"GCP_NUMBER"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"HELP_CENTER_LINK"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two practical points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Retrying is not a fix. The failures are deliberate and will get worse.&lt;/li&gt;
&lt;li&gt;Log this reason explicitly. A lot of sync jobs swallow non-2xx responses, so products quietly go stale in Merchant Center.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Setup steps that trip people up
&lt;/h2&gt;

&lt;p&gt;These are separate from rewriting your calls:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Enable the Merchant API&lt;/strong&gt; in your Google Cloud project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Register the project once&lt;/strong&gt; with &lt;code&gt;developerRegistration:registerGcp&lt;/code&gt; on your (primary, production) Merchant Center account. If you skip it you get &lt;code&gt;401 UNAUTHENTICATED&lt;/code&gt; saying the GCP project "is not registered". Allow a few minutes after registering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create an API-input data source.&lt;/strong&gt; &lt;code&gt;productInputs.insert&lt;/code&gt; requires a &lt;code&gt;dataSource&lt;/code&gt; query parameter. Careful: inserting an offer that's currently owned by another data source transfers ownership.&lt;/li&gt;
&lt;li&gt;Auth is OAuth 2.0 or a service account with admin access on the Merchant Center account.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. The call changes that matter most
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Content API v2.1&lt;/th&gt;
&lt;th&gt;Merchant API&lt;/th&gt;
&lt;th&gt;Watch out for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;products.insert&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;productInputs.insert&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;dataSource&lt;/code&gt; required; attributes move under &lt;code&gt;productAttributes&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;products.delete&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;productInputs.delete&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;needs &lt;code&gt;dataSource&lt;/code&gt; too&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;products.custombatch&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;no equivalent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;parallel calls, or HTTP multipart batch (max 2,000 requests per batch)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;productstatuses.*&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;products.get&lt;/code&gt; / &lt;code&gt;products.list&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;status lives in &lt;code&gt;productStatus&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;datafeeds.fetchnow&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;dataSources.fetch&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Other changes that break things silently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Product IDs:&lt;/strong&gt; &lt;code&gt;channel:contentLanguage:targetCountry:offerId&lt;/code&gt; becomes &lt;code&gt;accounts/{account}/products/{contentLanguage~feedLabel~offerId}&lt;/code&gt;. No channel segment, &lt;code&gt;~&lt;/code&gt; as the delimiter, and base64url-encode IDs that contain characters like &lt;code&gt;/&lt;/code&gt;, &lt;code&gt;:&lt;/code&gt; or &lt;code&gt;~&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prices:&lt;/strong&gt; &lt;code&gt;{"value": "33.45", "currency": "USD"}&lt;/code&gt; becomes &lt;code&gt;{"amountMicros": "33450000", "currencyCode": "USD"}&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;targetCountry&lt;/code&gt; becomes &lt;code&gt;feedLabel&lt;/code&gt;; enum-like strings become enums (&lt;code&gt;IN_STOCK&lt;/code&gt;, &lt;code&gt;NEW&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Always check details against Google's &lt;a href="https://developers.google.com/merchant/api/guides/compatibility/overview" rel="noopener noreferrer"&gt;compatibility guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Find every old call in your code
&lt;/h2&gt;

&lt;p&gt;I put together a small, dependency-free scanner that lists every Content API call it can find (Python &lt;code&gt;googleapiclient&lt;/code&gt;, PHP &lt;code&gt;Google_Service_ShoppingContent&lt;/code&gt;, Node &lt;code&gt;googleapis&lt;/code&gt;, raw REST) with the Merchant API replacement and a risk note:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/trilliumcompany/merchant-migration-scan
python3 merchant-migration-scan/merchant_migration_scan.py /path/to/your/repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's a static text scan: no network calls, no credentials. It can miss dynamically built calls and can't tell you whether your project has an extension, so treat the output as a checklist, not proof.&lt;/p&gt;

&lt;h2&gt;
  
  
  Disclosure / if you want help
&lt;/h2&gt;

&lt;p&gt;I'm Peter from The Trillium Company (Waterloo, Canada), which maintains the scanner. We also offer a paid, fixed-price &lt;strong&gt;48-hour diagnostic of one integration for CAD $490&lt;/strong&gt;: you send sanitized code and recent error logs, and we send back a call-by-call compatibility report, the setup steps that apply to you, and a prioritized repair and test plan. It's analysis and a plan, not code changes, and we confirm your inputs are enough before you pay. Contact: &lt;a href="mailto:hello@thetrilliumcompany.com"&gt;hello@thetrilliumcompany.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy to answer questions in the comments either way.&lt;/p&gt;

</description>
      <category>api</category>
      <category>ecommerce</category>
      <category>google</category>
      <category>migration</category>
    </item>
  </channel>
</rss>
