Skip to main content
Temu

Temu ads detail query requires at least one goodsId: a checklist to fix it

The message Temu ads detail query requires at least one goodsId. appears when the Temu Ads detail query is left with no usable goodsId, and it can show up when you press Sync Ads Campaigns.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 5 November 2026

Key facts

Module
Temu
Versions
Odoo 17, 18, 19 and 20
Checked
in the connector's source code, version 19.0 · against the sources linked at the end
Reading time
4 min

What the message means

The full text is Temu ads detail query requires at least one goodsId. and it stops the action: the module's Ads detail query raises it when, after going through the list of goodsId values it receives, none is left.

It can appear when you press the Sync Ads Campaigns button on the Temu Dashboard record, which opens from the Temu menu: the button's action reaches that query, and the query raises the error if its condition is met. The message is in the published code of Odoo 17, 18 and 19.

Code-generated diagram: the Temu menu, the Sync Ads Campaigns button and the message Temu ads detail query requires at least one goodsId.
Diagram generated from the module's published code (Odoo 17, 18 and 19), not a screenshot of Odoo. The labels are in English, the module's original text.
Temu orders in Odoo every 15 minutes. Stock out every 5
Video: Temu orders in Odoo every 15 minutes. Stock out every 5

What the code checks, in order

In Odoo 19, the code of the query does the following. First it goes through the list of goodsId values and discards empty ones: nothing, an empty string or false. It then tidies what is left: a text made only of digits (ignoring spaces at the ends) becomes a number, any other text is kept without those spaces, and any other value is left as it is. If the list never arrives at all, the outcome is the same as if it arrives empty.

Only after that tidy-up does it check whether the list is empty. If it is, it raises the error and stops there. When you see this message, the module has not yet sent the Ads detail request to Temu: the list that query received arrived empty or with only empty values.

The message text does not include any specific goodsId, so all it tells you is that, after the filter, none was left.

Checklist for this message

Before you press the button

  • Note your Odoo version: the message is in the published code of 17, 18 and 19.
  • Open the record from the Temu menu and find the Sync Ads Campaigns button. In Odoo 17, 18 and 19 it is always visible, so no condition has to be met for it to be in front of you.
  • Keep in mind that this button leads to the Ads detail query. If the message appears when you press it, you know which query raised it.
Code-generated diagram: the label Sync Ads Campaigns and its Spanish translation, Sincronizar campanas Ads
Diagram generated from the module's published translations, not a screenshot of Odoo: this is how the button is named depending on your Odoo language.

When the message appears

  • Copy the whole text, Temu ads detail query requires at least one goodsId., without trimming it. Whoever helps you review it will need exactly that.
  • Bear in mind that the action has stopped.
  • Bear in mind that the Ads detail query checks the list before it makes its request to Temu.
  • Read the condition in plain words: the list of goodsId values arrived empty, or only with empty values (nothing, an empty string or false).
  • Remember that this first filter looks at values exactly as they arrive. A text made only of spaces is not discarded as empty by that filter, because the space trimming happens afterwards.

What happens when there is a goodsId

  • If a goodsId arrives as a text of digits, the module turns it into a number before sending it.
  • If any other kind of text arrives, it is kept without the spaces at its ends.
  • The request carries at most the first 100 goodsId values in the list.
  • When it finishes, if the method used differs from the one the record had stored for the Ads detail query, the module updates it.

If the message keeps coming back

  • Write down the Odoo version, the Temu Dashboard record you pressed the button from and the time it happened.
  • Write to us with those details from the module page and we will look at it with you.

Subscription and versions

Temu Connector for Odoo is a one-off purchase per version and needs a FlexigoTech Cloud subscription, Connector plan: €49 a month or €490 a year, excluding VAT. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted, watches the synchronisation and emails you if it fails. The module is published on Odoo Apps for 17.0, 18.0, 19.0 and 20.0; you can see it on its Odoo Apps page.

How FlexigoTech can help

If you are implementing Odoo and want Temu connected properly, FlexigoTech implements Odoo 17, 18, 19 and 20 and builds bespoke connectors and integrations. With the message text and the details from your last attempt, we can look together at what reached the query.

Keep reading

Temu Dashboard form fields: what each means and what to setA checklist of the Temu Dashboard form fields in Temu Connector for Odoo: what each help text says, its default value and what is worth deciding.
Checked in the connector's source code (version 19.0) and the linked sources

Sources