Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: test ads feature #540

Closed
wants to merge 2 commits into from
Closed

feat: test ads feature #540

wants to merge 2 commits into from

Conversation

pedromtec
Copy link

What's the purpose of this pull request?

How does it work?

How to test it?

Faststore related PRs

References

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 11:55am

pedromtec added a commit to vtex/faststore that referenced this pull request Oct 1, 2024
…lligentSearch integration (#2438)

## What's the purpose of this pull request?

This PR adds support for showing sponsored products when using
Intelligent Search. FastShop and probably more retailers are interested
in our ad solution (VTEX Ad Network). This PR intends to create a
frictionless integration between FastStore and VTEX Ad Network.

## How it works?

The store will change the showSponsored configuration on the
feaststore.config.js file to allow intelligent search to return
sponsored products. This will only happen if the store is a active
publisher on VTEX Ad Network.

On faststore.config.js
```yaml
 // Platform specific configs for API
  API: {
    ...
    showSponsored: true,
  }
```

## How to test it?

* Change the `showSponsored` attribute to `true` on faststore.config.js
* Verify if the store is an active publisher on VTEX Ad Network
* Create a campaign to be delivered to the store with a valid product

Check the starter page with the `showSponsored` flag to true and no
label: [Starter With
Ads](https://starter-5q5m6v7l7-faststore.vercel.app/office) - related
[PR](vtex-sites/starter.store#540):

Example with no label:

![image](https://github.com/user-attachments/assets/119baa57-a5b8-4b7f-99c1-954aaae30e07)

Perfomance for category page:

![image](https://github.com/user-attachments/assets/714db14c-a3b4-435c-9acd-5c34f43d37b6)

![image](https://github.com/user-attachments/assets/e9d64b9d-aba5-4987-8477-21ebd6f0ce08)

Performance for full text search page:

![image](https://github.com/user-attachments/assets/de06dc1a-c2a5-47ec-814b-5ef6dada863c)

![image](https://github.com/user-attachments/assets/ce2c910f-6b46-48d2-91a6-fbe6fd62b0d6)


### Starters Deploy Preview


## References

* [VTEX Ad
Network](https://developers.vtex.com/docs/api-reference/vtex-ad-network-api#get-/sponsored_products/-facets-)
* [Intelligent Search
API](https://developers.vtex.com/docs/api-reference/intelligent-search-api#get-/product_search/-facets-)

---------

Co-authored-by: Pedro Soares <[email protected]>
@hellofanny hellofanny closed this Nov 4, 2024
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.

3 participants