Socket
Socket
Sign inDemoInstall

amazon-ppc-api

Package Overview
Dependencies
12
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.13 to 1.0.14

11

AdvertisingClient.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc