Skip to content

Commit

Permalink
Merge pull request #1385 from vtex/fix-server-ad-network
Browse files Browse the repository at this point in the history
ad network api: add all servers to global servers
  • Loading branch information
julia-rabello authored Feb 6, 2025
2 parents 2373696 + 0ea17cc commit 3bf7070
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 19 deletions.
36 changes: 18 additions & 18 deletions PostmanCollections/VTEX - Ad Network API.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"_": {
"postman_id": "adec2e55-5086-4d4c-a285-440c2ba1edbe"
"postman_id": "a240a54a-59d7-4844-83b9-a5427021745b"
},
"item": [
{
"id": "9b33d170-b9f4-4200-9639-a75051842a85",
"id": "0c04f098-d6b3-4e54-b300-69d9b16a2606",
"name": "Sponsored products",
"description": {
"content": "",
"type": "text/plain"
},
"item": [
{
"id": "6b17180d-04fb-4920-a833-86bf7576e6e3",
"id": "3bc145e3-b5cb-4d30-b4c0-a17c391b4c9a",
"name": "Get sponsored products for a query",
"request": {
"name": "Get sponsored products for a query",
Expand Down Expand Up @@ -120,7 +120,7 @@
"_": {
"postman_previewlanguage": "json"
},
"id": "761cddf9-3d07-42b4-acf9-54935ec773ec",
"id": "a74c0212-9fe1-45bf-b77b-6bcc7718733d",
"name": "OK",
"originalRequest": {
"url": {
Expand Down Expand Up @@ -223,7 +223,7 @@
{
"listen": "test",
"script": {
"id": "e1f69d83-ebf3-4f87-911c-165f06b34e40",
"id": "e408d398-d159-4f66-b408-480fc8c14fc8",
"type": "text/javascript",
"exec": [
"// Validate status 2xx \npm.test(\"[GET]::/sponsored_products/:facets - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n",
Expand All @@ -242,15 +242,15 @@
"event": []
},
{
"id": "3b26cb01-e82b-4ea1-abae-a8ffc37073bc",
"id": "20ee4110-b844-4df5-a607-1cc3317ab32c",
"name": "Ad events",
"description": {
"content": "",
"type": "text/plain"
},
"item": [
{
"id": "fc068e05-4ea6-44fc-a6f8-fde380bb132c",
"id": "e565af79-cd50-4357-ad14-542f99310011",
"name": "Send ad events",
"request": {
"name": "Send ad events",
Expand Down Expand Up @@ -291,7 +291,7 @@
"_": {
"postman_previewlanguage": "text"
},
"id": "4929d2db-ccda-4423-b31b-7eea49f6eed0",
"id": "31f7f3c4-7358-4373-98f1-0ed005ed8b6e",
"name": "OK",
"originalRequest": {
"url": {
Expand Down Expand Up @@ -332,7 +332,7 @@
{
"listen": "test",
"script": {
"id": "c3926ca3-c235-44df-ad80-7e04e468d677",
"id": "0e26116d-6d3e-4674-8390-e206753a43b9",
"type": "text/javascript",
"exec": [
"// Validate status 2xx \npm.test(\"[POST]::/ads - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n"
Expand All @@ -348,15 +348,15 @@
"event": []
},
{
"id": "ffb8047b-b88e-449d-b5e2-65f755e1d7a9",
"id": "bc7cc151-f82e-439f-bc4d-4507b62acb55",
"name": "Order events",
"description": {
"content": "",
"type": "text/plain"
},
"item": [
{
"id": "c086c9be-235d-4b86-a082-8d7741db09b7",
"id": "62d07c6d-ff29-475d-aa10-b757a7f5bc00",
"name": "Send order events",
"request": {
"name": "Send order events",
Expand Down Expand Up @@ -397,7 +397,7 @@
"_": {
"postman_previewlanguage": "text"
},
"id": "1671fd09-3b40-49c4-af1f-7b02db34e423",
"id": "a2c913ec-f1bf-4e13-94a4-fce9cbeb6c18",
"name": "OK",
"originalRequest": {
"url": {
Expand Down Expand Up @@ -438,7 +438,7 @@
{
"listen": "test",
"script": {
"id": "16a2828a-9216-4634-a24c-2073e6a7e86d",
"id": "01f76078-118d-46b7-a07e-f01757937d80",
"type": "text/javascript",
"exec": [
"// Validate status 2xx \npm.test(\"[POST]::/order - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n"
Expand All @@ -454,15 +454,15 @@
"event": []
},
{
"id": "f0b5bc45-46d3-4fc5-8745-bff9efcab010",
"id": "af986785-411f-4a9e-ae71-8576baabff65",
"name": "Banner",
"description": {
"content": "",
"type": "text/plain"
},
"item": [
{
"id": "8367e0f1-0e3e-4820-bb3f-429be39e9c37",
"id": "591fc44e-f93f-4623-8531-7aed3e38b732",
"name": "Get banner information",
"request": {
"name": "Get banner information",
Expand Down Expand Up @@ -508,7 +508,7 @@
"_": {
"postman_previewlanguage": "json"
},
"id": "5036e0e7-a236-4bc7-a51b-0da0f670b4d9",
"id": "88ea84f8-873d-4f24-98a1-4d5905a3fd7f",
"name": "OK",
"originalRequest": {
"url": {
Expand Down Expand Up @@ -560,7 +560,7 @@
{
"listen": "test",
"script": {
"id": "9be3a9a3-0f5b-42e2-87ee-6aae463dd7c5",
"id": "2dba81bb-86d0-40d0-be63-f4d5425f391e",
"type": "text/javascript",
"exec": [
"// Validate status 2xx \npm.test(\"[POST]::/banner/query - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n",
Expand Down Expand Up @@ -598,7 +598,7 @@
}
],
"info": {
"_postman_id": "adec2e55-5086-4d4c-a285-440c2ba1edbe",
"_postman_id": "a240a54a-59d7-4844-83b9-a5427021745b",
"name": "VTEX Ad Network API",
"version": {
"raw": "0.1.12",
Expand Down
27 changes: 26 additions & 1 deletion VTEX - Ad Network API.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,31 @@
"default": "vtexcommercestable"
}
}
},
{
"url": "https://{accountName}.{environment}.com.br/api/io/_v/api/intelligent-search",
"description": "VTEX Ad Network server URL, integrated with Intelligent Search.",
"variables": {
"accountName": {
"default": "apiexamples",
"description": "Name of the VTEX account. Used as part of the URL."
},
"environment": {
"description": "Environment to use. Used as part of the URL.",
"enum": [
"vtexcommercestable"
],
"default": "vtexcommercestable"
}
}
},
{
"url": "https://af-origin.vtex.com/api/activity-flow",
"description": "VTEX Ad Network Activity Flow server."
},
{
"url": "https://ad-server.vtex.com/api/ad-server/ads/",
"description": "VTEX Ad Network server."
}
],
"paths": {
Expand Down Expand Up @@ -1940,4 +1965,4 @@
"name": "Sponsored products"
}
]
}
}

0 comments on commit 3bf7070

Please sign in to comment.