Link a Google Merchant Center account to Google Ads programmatically for Shopping and Performance Max campaigns

domain: advertising · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Determine the initiating side: if the caller administers both accounts, use the direct-link flow; otherwise use an invite-and-approve flow
  2. From Google Ads, call ProductLinkService.CreateProductLink with the Merchant Center account ID to propose or establish the link (only completes instantly with admin access on both sides)
  3. Alternatively initiate from Merchant Center via the Merchant API's account link-propose call, then approve it from the Google Ads side
  4. Query product_link and product_link_invitation via GAQL to confirm current status (PENDING_APPROVAL vs ENABLED)
  5. Approve any pending invitation by updating the corresponding link resource's status to ENABLED
  6. Re-verify the link is ENABLED before creating Shopping/Performance Max campaigns, since campaign creation fails without an active feed link

Known gotchas

Related routes

Submit and update a product data feed to Google Merchant Center via the Content API for Shopping
google.com · 6 steps · unrated
Create a Google Ads Performance Max campaign via the API
developers.google.com/google-ads/api · 6 steps · unrated
Distinguish Merchant Center feed-driven Shopping listings from on-page Product structured data-driven organic rich results, and configure both without signal conflicts
developers.google.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans