---
name: set-up-shopware-microsoft-ads-returning-customer-bidding
description: >-
  Returning customer bidding for Shopware in Microsoft Ads. Use this skill when a Shopware merchant
  wants retention or win-back campaigns in Microsoft Ads that value repeat orders. It sends every
  paid repeat order as a returning customer conversion, with its revenue or profit, to bid on. It
  works through Product Metrics, so use it even when Product Metrics is never mentioned. Not for new
  customer, POAS or LTV bidding: each has its own skill, as do other store platforms and ad
  channels.
license: MIT
metadata:
  author: Product Metrics
  version: "1.2.0"
  docs: https://www.productmetrics.io/docs/bidding/returning-customers/shopware-microsoft-ads
---

# Shopware returning customer bidding in Microsoft Ads (Bing)

Send repeat orders from Shopware to Microsoft Ads (Bing) as pm_returning_customer through the UET Conversions API, and bid on returning customers with a Custom event conversion goal. It matters because a retention campaign should value repeat orders, and only those.

You run the Product Metrics steps through its CLI or MCP server; the person does the steps in Shopware and Microsoft Ads. The rules below say how to work with both.

## Rules

- **All conversion actions by agents are secondary**, the status Product Metrics creates its actions with. Choosing what a campaign bids or optimises on (making an action primary, or picking the Meta or ChatGPT Ads conversion or the Microsoft Ads goal) is the person's step, by every route and also when they ask: give them the exact clicks, wait until they say it is done, then read it back.
- **Pick the interface in this order:** the `productmetrics` CLI (check with `productmetrics status --json`, pass `--json` to every command, and run `productmetrics <group> <command> --help --json` before one you have not used); then the Product Metrics MCP server (`https://www.productmetrics.io/mcp`: `search` the API spec, then `execute`; never guess a path or body); otherwise the app steps in https://app.productmetrics.io.
- **Read where setup stands first:** `productmetrics setup get-status --json` (MCP: `setup.get_status`). Read `journey_stage` and the `next_action` fields, read it again with `--company-id` and `--property-id` once you know them, skip every step that is done and tell the person which ones are.
- **Discover ids, never invent them.** `company_id`, `property_id`, installation and scope ids come from earlier results.
- **Writes:** pass `--auto-idempotency-key` (MCP: `idempotencyKey: crypto.randomUUID()`) where the command's `--help` lists it, and retry a failed write with the key the error hint names. Other writes take no key: read the state before you retry.
- **Browser steps:** exit code 4 or `next_action: { "type": "browser", "url": … }` means the person opens the URL. Say what they will see, wait until they say they are done, then read the state again. A WooCommerce or Shopware 6 store returns `"type": "store_plugin"` instead: the person pastes the setup token into the Product Metrics plugin in their store admin before it expires.
- **Steps in the store admin or ad platform are the person's:** give them the exact labels from the reference or docs page.
- **Secrets:** never ask for, print or store passwords, tokens or API keys, except a credential the API needs from the person (the Lightspeed API key and secret, the Meta Conversions API access token, the OpenAI Conversions API key, the Microsoft Advertising Conversions API token). Pass it straight to the command and never repeat it, log it or put it in a summary.
- **Deletes** only when the person explicitly asks.
- **"Ask your assistant" steps are yours.** Answer them with `productmetrics orders list --company-id <company_id> --storefront-scope-id <scope_id> --json` (MCP: `orders.list`, newest first) and `productmetrics orders get --company-id <company_id> --order-id <order_id> --storefront-scope-id <scope_id> --json` (MCP: `orders.get`), which shows an order's margin and whether its customer was new or returning.
- **Talk to a store owner, not a developer:** short sentences, what you did, what they need to do, what comes next. ROAS is a plain number (4.2); a target ROAS is a percentage (420%). Recommend increasing or lowering priority, never "raise or cut bids".
- The long form of these rules: https://www.productmetrics.io/docs/cli/for-agents.

## Workflow

1. **Read where setup stands** with `productmetrics setup get-status --json` (MCP: `setup.get_status`), and skip every step that is done.
2. **Make sure server-side tracking to Microsoft Ads is live.** If it isn't, set it up first with `set-up-shopware-microsoft-ads-conversions-api` (or the pages under **Connect steps** below).
3. **Follow `references/returning-customer-bidding.md`** step by step and confirm each **You should see** line before you move on: later steps depend on earlier ones (the consent banner decides what is sent for each order, and checks only pass once a test order has arrived).
4. **Hand the switch to the person.** They create the Custom event conversion goal in Microsoft Advertising (**Conversions → Conversion goals**) and choose it under the campaign's **Settings → Conversions → Choose conversion goals for this campaign**, with the labels from the reference. This step is theirs. Wait until they say it is done.
5. **Agree the target** with the facts below, and suggest one campaign first.
6. **Report back** what is live now, what the person still has to do (with the exact labels from the reference), and how to check it again later.

## Target ROAS facts

- A target ROAS is a percentage of the value sent. On a profit value, 100% is break-even and 150% keeps €0.50 profit per €1 of ad spend.
- An order with an unknown cost goes with revenue only; a loss-making order's profit is sent as 0.
- Usually only the campaign that serves returning customers bids on this value; the others keep their current goal.
- In Microsoft Ads, the person creates a **Custom event** conversion goal on the Product Metrics event action (for profit: `pm_order_profit`) with a value that may vary, chooses it for the campaign under **Settings → Conversions → Choose conversion goals for this campaign**, and bids with Max conversion value and a target ROAS. Choosing goals per campaign keeps each order counted once, not as both `purchase` and a `pm_` event.

## References

| Read | When | Docs page |
| --- | --- | --- |
| `references/returning-customer-bidding.md` | Returning customer bidding: prerequisites, the steps, how it works on Shopware, troubleshooting and FAQ | https://www.productmetrics.io/docs/bidding/returning-customers/shopware-microsoft-ads |

If there is no `references/` folder next to this file (the skill was installed from the docs site), fetch the docs page in the last column instead, with `.md` appended for Markdown: it has the same steps.

### Connect steps

The steps to connect the Shopware store and Microsoft Ads aren't in `references/`: fetch the docs page as Markdown when you need it.

| Fetch | When |
| --- | --- |
| https://www.productmetrics.io/docs/platforms/shopware.md | The Shopware store isn't connected yet, or its connection is broken |
| https://www.productmetrics.io/docs/channels/microsoft-ads.md | Microsoft Ads isn't connected yet, or you need the full list of what Product Metrics sends to it |

## Related skills

- `set-up-shopware-microsoft-ads-conversions-api`: Server-side tracking for Shopware in Microsoft Ads
- `set-up-shopware-microsoft-ads-customer-match`: Customer lists for Shopware in Microsoft Ads
- `set-up-shopware-microsoft-ads-new-customer-bidding`: New customer bidding for Shopware in Microsoft Ads
- `set-up-shopware-microsoft-ads-poas-bidding`: POAS and ROAS bidding for Shopware in Microsoft Ads
- `set-up-shopware-microsoft-ads-ltv-bidding`: LTV bidding for Shopware in Microsoft Ads
- `set-up-shopware-google-ads-returning-customer-bidding`: Returning customer bidding for Shopware in Google Ads
- `set-up-shopware-meta-returning-customer-bidding`: Returning customer bidding for Shopware in Meta
- `set-up-shopware-chatgpt-ads-returning-customer-bidding`: Returning customer bidding for Shopware in ChatGPT Ads
- `bid-on-profit`: check POAS or ROAS bidding on any store
- `product-metrics`: picks the right skill for any store and channel

Install: `npx skills add product-metrics/skills --skill set-up-shopware-microsoft-ads-returning-customer-bidding`. Every skill: https://www.productmetrics.io/docs/agent-skills/platform-skills.
