diff --git a/src/amazon-marketplace.ts b/src/amazon-marketplace.ts index 96e996ed..dac20757 100644 --- a/src/amazon-marketplace.ts +++ b/src/amazon-marketplace.ts @@ -69,6 +69,7 @@ export enum AmazonMarketplaceAdvertisingCountryCode { JP = 'JP', MX = 'MX', NL = 'NL', + PL = 'PL', SE = 'SE', SG = 'SG', UK = 'UK', // Not a real country code, but such is life. See https://github.com/ScaleLeap/amazon-marketplaces/issues/122 @@ -90,6 +91,7 @@ export enum AmazonMarketplaceAdvertisingTimeZone { EUROPE_LONDON = 'Europe/London', EUROPE_PARIS = 'Europe/Paris', EUROPE_STOCKHOLM = 'Europe/Stockholm', + EUROPE_WARSAW = 'Europe/Warsaw', } export interface AmazonMarketplaceAdvertising { diff --git a/src/marketplaces/pl.ts b/src/marketplaces/pl.ts index 987d5074..54311300 100644 --- a/src/marketplaces/pl.ts +++ b/src/marketplaces/pl.ts @@ -1,9 +1,12 @@ import { AmazonMarketplace, + AmazonMarketplaceAdvertisingCountryCode, AmazonMarketplaceAdvertisingCurrency, + AmazonMarketplaceAdvertisingTimeZone, AmazonMarketplaceCountryCode, } from '../amazon-marketplace' import { amazonVendorCentralUriFactory } from '../amazon-vendor-central-uri-factory' +import { marketplaceAdvertisingRegions } from '../marketplace-advertising-regions' import { sellingPartnerRegions } from '../selling-partner-api-regions' export const PL = new AmazonMarketplace({ @@ -15,6 +18,21 @@ export const PL = new AmazonMarketplace({ sellerCentralUri: 'https://sellercentral.amazon.pl', vendorCentralUri: amazonVendorCentralUriFactory(AmazonMarketplaceCountryCode.PL), webServiceUri: 'https://mws-eu.amazonservices.com', + advertising: { + countryCode: AmazonMarketplaceAdvertisingCountryCode.PL, + region: marketplaceAdvertisingRegions.EU, + bids: { + sponsoredBrands: { + min: 2, + max: 20000, + }, + sponsoredProducts: { + min: 200, + max: 200000000, + }, + }, + timeZone: AmazonMarketplaceAdvertisingTimeZone.EUROPE_WARSAW, + }, sellingPartner: { region: sellingPartnerRegions.EU, }, diff --git a/test/__snapshots__/marketplaces.test.ts.snap b/test/__snapshots__/marketplaces.test.ts.snap index 3899a10c..c298c45e 100644 --- a/test/__snapshots__/marketplaces.test.ts.snap +++ b/test/__snapshots__/marketplaces.test.ts.snap @@ -606,6 +606,27 @@ AmazonMarketplace { exports[`marketplace PL should match snapshot 1`] = ` AmazonMarketplace { + "advertising": Object { + "bids": Object { + "sponsoredBrands": Object { + "max": 20000, + "min": 2, + }, + "sponsoredProducts": Object { + "max": 200000000, + "min": 200, + }, + }, + "countryCode": "PL", + "region": AmazonMarketplaceAdvertisingRegion { + "accessTokenUri": "https://api.amazon.co.uk/auth/o2/token", + "authorizationUri": "https://eu.account.amazon.com/ap/oa", + "code": "EU", + "endpoint": "https://advertising-api-eu.amazon.com", + "name": "Europe", + }, + "timeZone": "Europe/Warsaw", + }, "countryCode": "PL", "currency": "PLN", "id": "A1C3SOZRARQ6R3",