diff --git a/src/amazon-marketplace.ts b/src/amazon-marketplace.ts index 2bc6d171..473970ce 100644 --- a/src/amazon-marketplace.ts +++ b/src/amazon-marketplace.ts @@ -60,6 +60,7 @@ export enum AmazonMarketplaceAdvertisingCountryCode { FR = 'FR', IT = 'IT', JP = 'JP', + MX = 'MX', UK = 'UK', // Not a real country code, but such is life. See https://github.com/ScaleLeap/amazon-marketplaces/issues/122 US = 'US', } diff --git a/src/marketplaces/mx.ts b/src/marketplaces/mx.ts index 517a05d1..fcce2172 100644 --- a/src/marketplaces/mx.ts +++ b/src/marketplaces/mx.ts @@ -1,8 +1,11 @@ import { AmazonMarketplace, + AmazonMarketplaceAdvertisingCountryCode, AmazonMarketplaceAdvertisingCurrency, + AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' +import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' export const MX = new AmazonMarketplace({ countryCode: AmazonMarketplaceCountryCode.MX, @@ -11,4 +14,20 @@ export const MX = new AmazonMarketplace({ name: 'Mexico', uri: 'https://www.amazon.com.mx', webServiceUri: 'https://mws.amazonservices.com.mx', + advertising: { + countryCode: AmazonMarketplaceAdvertisingCountryCode.MX, + region: marketplaceAdvertisingRegions.NA, + // TODO: don't know for sure about the bids as there is no official documentation for that + bids: { + sponsoredBrands: { + min: 10, + max: 4900, + }, + sponsoredProducts: { + min: 2, + max: 100000, + }, + }, + timeZone: AmazonMarketplaceAdvertisingTimeZone.AMERICA_LOS_ANGELES, + }, }) diff --git a/test/__snapshots__/marketplaces.test.ts.snap b/test/__snapshots__/marketplaces.test.ts.snap index 1256a40b..cf42377a 100644 --- a/test/__snapshots__/marketplaces.test.ts.snap +++ b/test/__snapshots__/marketplaces.test.ts.snap @@ -334,6 +334,27 @@ AmazonMarketplace { exports[`marketplace MX should match snapshot 1`] = ` AmazonMarketplace { + "advertising": Object { + "bids": Object { + "sponsoredBrands": Object { + "max": 4900, + "min": 10, + }, + "sponsoredProducts": Object { + "max": 100000, + "min": 2, + }, + }, + "countryCode": "MX", + "region": AmazonMarketplaceAdvertisingRegion { + "accessTokenUri": "https://api.amazon.com/auth/o2/token", + "authorizationUri": "https://www.amazon.com/ap/oa", + "code": "NA", + "endpoint": "https://advertising-api.amazon.com", + "name": "North America", + }, + "timeZone": "America/Los_Angeles", + }, "countryCode": "MX", "currency": "MXN", "id": "A1AM78C64UM0Y8",