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.17 to 1.1.1

19

AdvertisingClient.js

@@ -127,5 +127,10 @@ const querystring = require("querystring");

}
getCampaign(campaignId) {
return this.apiRequest(`v2/sp/campaigns/${campaignId}`, null, "GET");
getCampaign(baseEndpoint, campaignId, isExtended = false) {
const resource = isExtended ? "campaigns/extended/" : "campaigns/";
const endpoint = `${baseEndpoint}/${resource}${campaignId}`;
return this.apiRequest(endpoint, null, "GET");
}
getCampaignEx(campaignId) {

@@ -499,5 +504,4 @@ return this.apiRequest(

if (this.options.profileId) {
requestOptions.headers[
"Amazon-Advertising-API-Scope"
] = this.options.profileId;
requestOptions.headers["Amazon-Advertising-API-Scope"] =
this.options.profileId;
}

@@ -570,5 +574,4 @@

if (this.options.profileId) {
requestOptions.headers[
"Amazon-Advertising-API-Scope"
] = this.options.profileId;
requestOptions.headers["Amazon-Advertising-API-Scope"] =
this.options.profileId;
}

@@ -575,0 +578,0 @@

{
"name": "amazon-ppc-api",
"version": "1.0.17",
"version": "1.1.1",
"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