amazon-ppc-api
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -369,5 +369,6 @@ const querystring = require("querystring"); | ||
} | ||
requestSnapshot(campaignType, recordType, data, apiVersion = "v2") { | ||
requestSnapshot(campaignType, recordType, data) { | ||
const mainEndpoint = campaignType != "sd" ? "v2" : ""; | ||
return this.apiRequest( | ||
`${apiVersion}/${campaignType}/${recordType}/snapshot`, | ||
`${mainEndpoint}/${campaignType}/${recordType}/snapshot`, | ||
data, | ||
@@ -378,3 +379,3 @@ `POST` | ||
async getSnapshot(campaignType, snapshotId, apiVersion = "v2") { | ||
async getSnapshot(campaignType, snapshotId) { | ||
if (!snapshotId) { | ||
@@ -387,4 +388,6 @@ throw "No valid snapshotId"; | ||
while (true) { | ||
const mainEndpoint = campaignType != "sd" ? "v2" : ""; | ||
let snapshotRequest = await this.apiRequest( | ||
`${apiVersion}/${campaignType}/snapshots/${snapshotId}`, | ||
`${mainEndpoint}/${campaignType}/snapshots/${snapshotId}`, | ||
{}, | ||
@@ -391,0 +394,0 @@ "GET" |
{ | ||
"name": "amazon-ppc-api", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "This class helps you interfacing the Amazon Advertising API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
49087
561
4