Mercado Ads
Mercado Ads is the advertising platform of Mercado Libre, the largest e-commerce and online marketplace in Latin America. The Mercado Ads API provides programmatic access to Brand Ads, Product Ads, and Display advertising campaigns, along with their line items, keywords, creatives, and performance metrics, enabling automated campaign management and reporting.

Power end-to-end data operations for your Mercado Ads API with Nexla. Our bi-directional Mercado Ads connector is purpose-built for Mercado Ads, making it simple to ingest data, sync it across systems, and deliver it anywhere — all with no coding required. Nexla turns API-sourced data into ready-to-use, reusable data products and makes it easy to send data to Mercado Ads or any other destination. With comprehensive monitoring, lineage tracking, and access controls, Nexla keeps your Mercado Ads workflows fast, secure, and fully governed.
Features
Type: API
- Seamless API Integration: Connect to any endpoint as source or destination without coding, with automatic data product creation
- Visual Composition & Chaining: Build complex integrations using visual templates, chain API calls, and compose workflows with data validation and filtering
- API Proxy: Expose curated slices of your data securely with a secure and customizable API proxy that validates and transforms data on the fly
- Request optimization with intelligent batching, retry, and caching to minimize API calls and costs
Prerequisites
The Mercado Ads API uses OAuth 2.0 (authorization code, 3-legged flow) built on the Mercado Libre platform. Before creating a credential in Nexla, register an application in the Mercado Libre developers portal to obtain a Client ID (App ID) and Client Secret (Secret Key), and note the authorization and token endpoints your account will use.
To register an application and gather the required values, follow these steps:
-
Sign in to the Mercado Libre Developers portal using the Mercado Libre account that has access to your advertising (Mercado Ads) data. Use the portal for the marketplace site your account belongs to (for example,
developers.mercadolibre.com.arfor Argentina,developers.mercadolibre.com.brfor Brazil, ordevelopers.mercadolibre.com.mxfor Mexico). -
Open the My applications section and click Create new application to register a new app.
-
Enter the application details, including a name, a short description, and a Redirect URI. The redirect URI must match exactly the callback URL used during authorization, so record the value you enter here.
-
Configure the scopes your integration requires. Mercado Libre supports the
read,write, andoffline_accessscopes;offline_accessis needed to obtain a refresh token for long-running, unattended access such as scheduled Nexla flows. -
After the application is created, copy the App ID (Client ID) and Secret Key (Client Secret) from the application details page. The Secret Key is sensitive and should be stored securely.
-
Note the OAuth endpoints for your marketplace site. The authorization URL follows the format
https://auth.mercadolibre.com.ar/authorization(substitute the domain for your site, e.g..com.bror.com.mx), and the token URL ishttps://api.mercadolibre.com/oauth/token. All API requests use the base URLhttps://api.mercadolibre.com.
For complete details on application registration, OAuth 2.0 authorization, and the advertising endpoints, see the Mercado Libre Developers documentation and the Mercado Ads / Advertising API reference.
Authenticate
Credentials required
| Field | Required | Secret | Description |
|---|---|---|---|
| Authorization URL | No | No | The URL endpoint where users authenticate and authorize access |
| Client ID | Yes | Yes | A unique public identifier assigned to your application |
| Access Scope | No | No | A space-separated list of permissions your application requests |
| Token URL | No | No | The URL endpoint where authorization codes are exchanged for access tokens |
| Client Secret | No | Yes | A private key used to authenticate your application when requesting tokens |
| Base URL | Yes | No | The base URL for the Mercado Ads API. |
Create a credential in Nexla
-
After selecting the data source/destination type, click the Add Credential tile to open the Add New Credential overlay.
-
Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.
-
Enter the Authorization URL for your marketplace site (for example,
https://auth.mercadolibre.com.ar/authorization). This is the endpoint where you authorize Nexla to access your Mercado Ads data. -
Enter your Client ID (App ID) and Client Secret (Secret Key) from the application you registered in Prerequisites. These values identify and authenticate your application when requesting access tokens.
-
Enter the Token URL (
https://api.mercadolibre.com/oauth/token), where authorization codes are exchanged for access tokens. -
In the Access Scope field, enter the space-separated scopes your integration requires (for example,
read write offline_access). Includeoffline_accessso Nexla can refresh the access token for scheduled, unattended flows. -
In the Base URL field, keep the default
https://api.mercadolibre.comunless your account requires a different host. -
Complete the OAuth authorization prompt to grant Nexla access, then click the Save button at the bottom of the overlay. The newly added credential will now appear in a tile on the Authenticate screen during data source/destination creation.
The Client Secret provides access to your Mercado Ads account and should be treated as sensitive information. If it is compromised, revoke or regenerate it in the Mercado Libre developers portal and update your Nexla credential.
For detailed information about OAuth 2.0 authorization, token refresh, and the advertising endpoints, see the Mercado Libre Developers documentation.
Use as a data source
To create a new data flow, navigate to the Integrate section, and click the New Data Flow button. Select the Mercado Ads connector tile, then select the credential that will be used to connect to Mercado Ads, and click Next; or, create a new Mercado Ads credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure data sources to ingest data from common Mercado Ads endpoints. Select the endpoint from which this source will fetch data from the Endpoint pulldown menu. Available endpoint templates are listed in the expandable boxes below.
Once the selected endpoint template has been configured, click the Test button to the right of the endpoint selection menu to retrieve a sample of the data that will be fetched. Sample data will be displayed in the Endpoint Test Result panel on the right, allowing you to verify that the source is configured correctly before saving.
Manual configuration
Mercado Ads data sources can also be manually configured to ingest data from any valid Mercado Ads API endpoint, including endpoints not covered by the pre-built templates, chained API calls, or custom request parameters. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method, endpoint URL, date/time and lookup macros, path to data, metadata, and request headers.
Once all of the relevant settings have been configured, click the Create button in the upper right corner of the screen to save and create the new Mercado Ads data source. Nexla will now begin ingesting data from the configured endpoint and will organize any data that it finds into one or more Nexsets.
Use as a destination
Click the + icon on the Nexset that will be sent to the Mercado Ads destination, and select the Send to Destination option from the menu. Select the Mercado Ads connector from the list of available destination connectors, then select the credential that will be used to connect to Mercado Ads, and click Next; or, create a new Mercado Ads credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure destinations to send data to common Mercado Ads endpoints. Select the endpoint to which data will be sent from the Endpoint pulldown menu. Then, click on the template in the list below to expand it, and follow the instructions to configure additional endpoint settings.
Manual configuration
Mercado Ads destinations can also be manually configured to send data to any valid Mercado Ads API endpoint. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method, data format, endpoint URL, request headers, attribute exclusions, record batching, and response webhooks.
Mercado Ads APIs expect JSON format for most operations. For update operations, include the identifier of the object to be updated (such as the campaign ID) at the end of the URL.
Save & activate
Once all endpoint settings have been configured, click the Done button in the upper right corner of the screen to save and create the destination. To send the data to the configured Mercado Ads endpoint, open the destination resource menu, and select Activate.
The Nexset data will not be sent to the Mercado Ads endpoint until the destination is activated. Destinations can be activated immediately or at a later time, providing full control over data movement.