5. Ad Integration
This section provides detailed information on how to integrate with the VTEX Ads platform to display ads on your website.
5.0 Integration Flow Overview

The complete integration flow is divided into four main phases that continuously feed back into each other:
- Preparation and Onboarding: Align scope and timeline with the VTEX Ads team, receive API credentials, and validate access to environments and webhooks.
- Operational Data Synchronization: Load catalog (products and inventory) and, optionally, audiences. This step ensures that only available products and valid segmentations are eligible to appear.
- Ad Delivery: Structure site placements, configure naming conventions, and query ads in real-time for each context (home, search, category, PDP, etc.), displaying the “Sponsored” label.
- Measurement and Optimization: Fire impression, view, click, and conversion events using
navigator.sendBeacon(), monitor performance metrics, and adjust bids, segmentation, and positioning according to results.
The following sections detail how to execute each of these phases, with request examples and specific best practices.