Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

What problem is this solving?

Integrates VTEX Ads into Store Framework via AdsProvider wrapper. Part of the Ads Frictionless Integration RFC.

Key change: ads are now hydrated client-side, enabling CDN cache hits for product data (previously uncacheable due to real-time auction responses).

Changes:

  • VTEXAdsProvider: wraps store content, provides ad context using publisherId from store settings
  • Fetches user session data client-side for ad targeting
  • Uses @vtex/ads-react SDK to request and merge ads with product data
  • Adds publisherId setting to manifest schema (replaces fetchSponsoredProductsOnSearch)

How to test it?

Workspace

Search for "camisa" to see sponsored products from an active campaign.

Screenshots or example usage:

Sponsored products displaying with "Patrocinado" badge:

Sponsored products in search results

Describe alternatives you've considered, if any.

N/A

Related to / Depends on

How does this PR make you feel? 🔗


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vtex-io-ci-cd
Copy link
Contributor

vtex-io-ci-cd bot commented Dec 3, 2025

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

Copy link
Contributor Author

Copilot AI commented Dec 3, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • vtex.vtexassets.com
    • Triggering command: /usr/local/bin/node node /usr/local/bin/yarn install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Wrap the store around AdsProvider for ad requests feat: wrap the store around AdsProvider Dec 3, 2025
Copilot AI requested a review from vmourac-vtex December 3, 2025 17:52
Base automatically changed from feat/ads-wrapper to master December 4, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants