Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@honkandgo/googleads

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honkandgo/googleads - npm Package Compare versions

Comparing version 15.0.0 to 17.0.0

2

dist/googleads.js

@@ -1,2 +0,2 @@

var e,t=(e=require("node-fetch"))&&"object"==typeof e&&"default"in e?e.default:e,r=["clientId","clientSecret","developerToken"];module.exports=function(e){void 0===e&&(e={});var n=function(e){var n=e.clientId,o=e.clientSecret,s=e.developerToken,u=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(o[r]=e[r]);return o}(e,r),i=function(e){void 0===e&&(e=3600);var t={},r=function(e){var r=t[e];if(r){var n=Date.now();if(r.inserted+1e3*r.maxAge>n)return r.value;delete t[e]}};return{get:r,set:function(r,n,o){t[r]={value:n,maxAge:o||e,inserted:Date.now()}},has:function(e){return void 0!==r(e)}}}(1800),c=function(e,r,c,a){try{return void 0===a&&(a=u.refreshToken),Promise.resolve(function(e){try{return i.has(e)||i.set(e,function(e){try{return Promise.resolve(t("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:n,client_secret:o,refresh_token:e,grant_type:"refresh_token"})}).then(function(e){return e.json()}).then(function(e){return e.access_token}))}catch(e){return Promise.reject(e)}}(e)),Promise.resolve(i.get(e))}catch(e){return Promise.reject(e)}}(a)).then(function(n){var o="https://googleads.googleapis.com/v15"+(r.startsWith("/")?"":"/")+r;return o="GET"===e&&c?o+"?"+new URLSearchParams(c):o,Promise.resolve(t(o,{method:e,headers:{"Content-Type":"application/json",Authorization:"Bearer "+n,"Developer-Token":s},body:c&&"GET"!==e?JSON.stringify(c):null})).then(function(e){return Promise.resolve(e.json()).then(function(e){if(e.error)throw new Error(JSON.stringify(e.error));return e})})})}catch(e){return Promise.reject(e)}};return{get:function(e,t,r){return c("GET",e,t,r)},post:function(e,t,r){return c("POST",e,t,r)}}}(e),o=n.get,s=n.post;return{suggestGeoTargetConstants:function(e,t){return s("/geoTargetConstants:suggest",e,t)},listAccessibleCustomers:function(e){return o("/customers:listAccessibleCustomers",null,e)},get:o,post:s,mutateBatchJob:function(e,t,r){return s("/customers/"+e+"/batchJobs:mutate",t,r)},listResults:function(e,t,r){return o(e+":listResults",t,r)},addOperations:function(e,t,r){return s(e+":addOperations",t,r)},runBatchJob:function(e,t){return s(e+":run",null,t)},search:function(e,t,r){return s("/customers/"+e+"/googleAds:search",t,r)},searchStream:function(e,t,r){return s("/customers/"+e+"/googleAds:searchStream",t,r)},mutate:function(e,t,r){return s("/customers/"+e+"/googleAds:mutate",t,r)},mutateCampaigns:function(e,t,r){return s("/customers/"+e+"/campaigns:mutate",t,r)},mutateCustomAudiences:function(e,t,r){return s("/customers/"+e+"/customAudiences:mutate",t,r)}}};
var e,t=(e=require("node-fetch"))&&"object"==typeof e&&"default"in e?e.default:e,r=["clientId","clientSecret","developerToken"];module.exports=function(e){void 0===e&&(e={});var n=function(e){var n=e.clientId,o=e.clientSecret,s=e.developerToken,u=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(o[r]=e[r]);return o}(e,r),i=function(e){void 0===e&&(e=3600);var t={},r=function(e){var r=t[e];if(r){var n=Date.now();if(r.inserted+1e3*r.maxAge>n)return r.value;delete t[e]}};return{get:r,set:function(r,n,o){t[r]={value:n,maxAge:o||e,inserted:Date.now()}},has:function(e){return void 0!==r(e)}}}(1800),c=function(e,r,c,a){try{return void 0===a&&(a=u.refreshToken),Promise.resolve(function(e){try{return i.has(e)||i.set(e,function(e){try{return Promise.resolve(t("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:n,client_secret:o,refresh_token:e,grant_type:"refresh_token"})}).then(function(e){return e.json()}).then(function(e){return e.access_token}))}catch(e){return Promise.reject(e)}}(e)),Promise.resolve(i.get(e))}catch(e){return Promise.reject(e)}}(a)).then(function(n){var o="https://googleads.googleapis.com/v17"+(r.startsWith("/")?"":"/")+r;return o="GET"===e&&c?o+"?"+new URLSearchParams(c):o,Promise.resolve(t(o,{method:e,headers:{"Content-Type":"application/json",Authorization:"Bearer "+n,"Developer-Token":s},body:c&&"GET"!==e?JSON.stringify(c):null})).then(function(e){return Promise.resolve(e.json()).then(function(e){if(e.error)throw new Error(JSON.stringify(e.error));return e})})})}catch(e){return Promise.reject(e)}};return{get:function(e,t,r){return c("GET",e,t,r)},post:function(e,t,r){return c("POST",e,t,r)}}}(e),o=n.get,s=n.post;return{suggestGeoTargetConstants:function(e,t){return s("/geoTargetConstants:suggest",e,t)},listAccessibleCustomers:function(e){return o("/customers:listAccessibleCustomers",null,e)},get:o,post:s,mutateBatchJob:function(e,t,r){return s("/customers/"+e+"/batchJobs:mutate",t,r)},listResults:function(e,t,r){return o(e+":listResults",t,r)},addOperations:function(e,t,r){return s(e+":addOperations",t,r)},runBatchJob:function(e,t){return s(e+":run",null,t)},search:function(e,t,r){return s("/customers/"+e+"/googleAds:search",t,r)},searchStream:function(e,t,r){return s("/customers/"+e+"/googleAds:searchStream",t,r)},mutate:function(e,t,r){return s("/customers/"+e+"/googleAds:mutate",t,r)},mutateCampaigns:function(e,t,r){return s("/customers/"+e+"/campaigns:mutate",t,r)},mutateCustomAudiences:function(e,t,r){return s("/customers/"+e+"/customAudiences:mutate",t,r)}}};
//# sourceMappingURL=googleads.js.map

@@ -1,2 +0,2 @@

import e from"node-fetch";const t=["clientId","clientSecret","developerToken"];export default function(s={}){const{get:o,post:n}=(s=>{let{clientId:o,clientSecret:n,developerToken:r}=s,a=function(e,t){if(null==e)return{};var s,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)t.indexOf(s=r[o])>=0||(n[s]=e[s]);return n}(s,t);const c=((e=3600)=>{const t={},s=e=>{const s=t[e];if(s){const o=Date.now();if(s.inserted+1e3*s.maxAge>o)return s.value;delete t[e]}};return{get:s,set:(s,o,n)=>{t[s]={value:o,maxAge:n||e,inserted:Date.now()}},has:e=>void 0!==s(e)}})(1800),i=async(t,s,i,u=a.refreshToken)=>{const l=await(async t=>(c.has(t)||c.set(t,(async t=>e("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:o,client_secret:n,refresh_token:t,grant_type:"refresh_token"})}).then(e=>e.json()).then(e=>e.access_token))(t)),c.get(t)))(u);let g=`https://googleads.googleapis.com/v15${s.startsWith("/")?"":"/"}${s}`;g="GET"===t&&i?g+"?"+new URLSearchParams(i):g;const m=await e(g,{method:t,headers:{"Content-Type":"application/json",Authorization:"Bearer "+l,"Developer-Token":r},body:i&&"GET"!==t?JSON.stringify(i):null}),d=await m.json();if(d.error)throw new Error(JSON.stringify(d.error));return d};return{get:async(e,t,s)=>i("GET",e,t,s),post:async(e,t,s)=>i("POST",e,t,s)}})(s);return{suggestGeoTargetConstants:(e,t)=>n("/geoTargetConstants:suggest",e,t),listAccessibleCustomers:e=>o("/customers:listAccessibleCustomers",null,e),get:o,post:n,mutateBatchJob:(e,t,s)=>n(`/customers/${e}/batchJobs:mutate`,t,s),listResults:(e,t,s)=>o(e+":listResults",t,s),addOperations:(e,t,s)=>n(e+":addOperations",t,s),runBatchJob:(e,t)=>n(e+":run",null,t),search:(e,t,s)=>n(`/customers/${e}/googleAds:search`,t,s),searchStream:(e,t,s)=>n(`/customers/${e}/googleAds:searchStream`,t,s),mutate:(e,t,s)=>n(`/customers/${e}/googleAds:mutate`,t,s),mutateCampaigns:(e,t,s)=>n(`/customers/${e}/campaigns:mutate`,t,s),mutateCustomAudiences:(e,t,s)=>n(`/customers/${e}/customAudiences:mutate`,t,s)}}
import e from"node-fetch";const t=["clientId","clientSecret","developerToken"];export default function(s={}){const{get:o,post:n}=(s=>{let{clientId:o,clientSecret:n,developerToken:r}=s,a=function(e,t){if(null==e)return{};var s,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)t.indexOf(s=r[o])>=0||(n[s]=e[s]);return n}(s,t);const c=((e=3600)=>{const t={},s=e=>{const s=t[e];if(s){const o=Date.now();if(s.inserted+1e3*s.maxAge>o)return s.value;delete t[e]}};return{get:s,set:(s,o,n)=>{t[s]={value:o,maxAge:n||e,inserted:Date.now()}},has:e=>void 0!==s(e)}})(1800),i=async(t,s,i,u=a.refreshToken)=>{const l=await(async t=>(c.has(t)||c.set(t,(async t=>e("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:o,client_secret:n,refresh_token:t,grant_type:"refresh_token"})}).then(e=>e.json()).then(e=>e.access_token))(t)),c.get(t)))(u);let g=`https://googleads.googleapis.com/v17${s.startsWith("/")?"":"/"}${s}`;g="GET"===t&&i?g+"?"+new URLSearchParams(i):g;const m=await e(g,{method:t,headers:{"Content-Type":"application/json",Authorization:"Bearer "+l,"Developer-Token":r},body:i&&"GET"!==t?JSON.stringify(i):null}),d=await m.json();if(d.error)throw new Error(JSON.stringify(d.error));return d};return{get:async(e,t,s)=>i("GET",e,t,s),post:async(e,t,s)=>i("POST",e,t,s)}})(s);return{suggestGeoTargetConstants:(e,t)=>n("/geoTargetConstants:suggest",e,t),listAccessibleCustomers:e=>o("/customers:listAccessibleCustomers",null,e),get:o,post:n,mutateBatchJob:(e,t,s)=>n(`/customers/${e}/batchJobs:mutate`,t,s),listResults:(e,t,s)=>o(e+":listResults",t,s),addOperations:(e,t,s)=>n(e+":addOperations",t,s),runBatchJob:(e,t)=>n(e+":run",null,t),search:(e,t,s)=>n(`/customers/${e}/googleAds:search`,t,s),searchStream:(e,t,s)=>n(`/customers/${e}/googleAds:searchStream`,t,s),mutate:(e,t,s)=>n(`/customers/${e}/googleAds:mutate`,t,s),mutateCampaigns:(e,t,s)=>n(`/customers/${e}/campaigns:mutate`,t,s),mutateCustomAudiences:(e,t,s)=>n(`/customers/${e}/customAudiences:mutate`,t,s)}}
//# sourceMappingURL=googleads.modern.js.map

@@ -1,2 +0,2 @@

import e from"node-fetch";var t=["clientId","clientSecret","developerToken"];export default function(r){void 0===r&&(r={});var n=function(r){var n=r.clientId,o=r.clientSecret,s=r.developerToken,u=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(o[r]=e[r]);return o}(r,t),i=function(e){void 0===e&&(e=3600);var t={},r=function(e){var r=t[e];if(r){var n=Date.now();if(r.inserted+1e3*r.maxAge>n)return r.value;delete t[e]}};return{get:r,set:function(r,n,o){t[r]={value:n,maxAge:o||e,inserted:Date.now()}},has:function(e){return void 0!==r(e)}}}(1800),c=function(t,r,c,a){try{return void 0===a&&(a=u.refreshToken),Promise.resolve(function(t){try{return i.has(t)||i.set(t,function(t){try{return Promise.resolve(e("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:n,client_secret:o,refresh_token:t,grant_type:"refresh_token"})}).then(function(e){return e.json()}).then(function(e){return e.access_token}))}catch(e){return Promise.reject(e)}}(t)),Promise.resolve(i.get(t))}catch(e){return Promise.reject(e)}}(a)).then(function(n){var o="https://googleads.googleapis.com/v15"+(r.startsWith("/")?"":"/")+r;return o="GET"===t&&c?o+"?"+new URLSearchParams(c):o,Promise.resolve(e(o,{method:t,headers:{"Content-Type":"application/json",Authorization:"Bearer "+n,"Developer-Token":s},body:c&&"GET"!==t?JSON.stringify(c):null})).then(function(e){return Promise.resolve(e.json()).then(function(e){if(e.error)throw new Error(JSON.stringify(e.error));return e})})})}catch(e){return Promise.reject(e)}};return{get:function(e,t,r){return c("GET",e,t,r)},post:function(e,t,r){return c("POST",e,t,r)}}}(r),o=n.get,s=n.post;return{suggestGeoTargetConstants:function(e,t){return s("/geoTargetConstants:suggest",e,t)},listAccessibleCustomers:function(e){return o("/customers:listAccessibleCustomers",null,e)},get:o,post:s,mutateBatchJob:function(e,t,r){return s("/customers/"+e+"/batchJobs:mutate",t,r)},listResults:function(e,t,r){return o(e+":listResults",t,r)},addOperations:function(e,t,r){return s(e+":addOperations",t,r)},runBatchJob:function(e,t){return s(e+":run",null,t)},search:function(e,t,r){return s("/customers/"+e+"/googleAds:search",t,r)},searchStream:function(e,t,r){return s("/customers/"+e+"/googleAds:searchStream",t,r)},mutate:function(e,t,r){return s("/customers/"+e+"/googleAds:mutate",t,r)},mutateCampaigns:function(e,t,r){return s("/customers/"+e+"/campaigns:mutate",t,r)},mutateCustomAudiences:function(e,t,r){return s("/customers/"+e+"/customAudiences:mutate",t,r)}}}
import e from"node-fetch";var t=["clientId","clientSecret","developerToken"];export default function(r){void 0===r&&(r={});var n=function(r){var n=r.clientId,o=r.clientSecret,s=r.developerToken,u=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)t.indexOf(r=s[n])>=0||(o[r]=e[r]);return o}(r,t),i=function(e){void 0===e&&(e=3600);var t={},r=function(e){var r=t[e];if(r){var n=Date.now();if(r.inserted+1e3*r.maxAge>n)return r.value;delete t[e]}};return{get:r,set:function(r,n,o){t[r]={value:n,maxAge:o||e,inserted:Date.now()}},has:function(e){return void 0!==r(e)}}}(1800),c=function(t,r,c,a){try{return void 0===a&&(a=u.refreshToken),Promise.resolve(function(t){try{return i.has(t)||i.set(t,function(t){try{return Promise.resolve(e("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:n,client_secret:o,refresh_token:t,grant_type:"refresh_token"})}).then(function(e){return e.json()}).then(function(e){return e.access_token}))}catch(e){return Promise.reject(e)}}(t)),Promise.resolve(i.get(t))}catch(e){return Promise.reject(e)}}(a)).then(function(n){var o="https://googleads.googleapis.com/v17"+(r.startsWith("/")?"":"/")+r;return o="GET"===t&&c?o+"?"+new URLSearchParams(c):o,Promise.resolve(e(o,{method:t,headers:{"Content-Type":"application/json",Authorization:"Bearer "+n,"Developer-Token":s},body:c&&"GET"!==t?JSON.stringify(c):null})).then(function(e){return Promise.resolve(e.json()).then(function(e){if(e.error)throw new Error(JSON.stringify(e.error));return e})})})}catch(e){return Promise.reject(e)}};return{get:function(e,t,r){return c("GET",e,t,r)},post:function(e,t,r){return c("POST",e,t,r)}}}(r),o=n.get,s=n.post;return{suggestGeoTargetConstants:function(e,t){return s("/geoTargetConstants:suggest",e,t)},listAccessibleCustomers:function(e){return o("/customers:listAccessibleCustomers",null,e)},get:o,post:s,mutateBatchJob:function(e,t,r){return s("/customers/"+e+"/batchJobs:mutate",t,r)},listResults:function(e,t,r){return o(e+":listResults",t,r)},addOperations:function(e,t,r){return s(e+":addOperations",t,r)},runBatchJob:function(e,t){return s(e+":run",null,t)},search:function(e,t,r){return s("/customers/"+e+"/googleAds:search",t,r)},searchStream:function(e,t,r){return s("/customers/"+e+"/googleAds:searchStream",t,r)},mutate:function(e,t,r){return s("/customers/"+e+"/googleAds:mutate",t,r)},mutateCampaigns:function(e,t,r){return s("/customers/"+e+"/campaigns:mutate",t,r)},mutateCustomAudiences:function(e,t,r){return s("/customers/"+e+"/customAudiences:mutate",t,r)}}}
//# sourceMappingURL=googleads.module.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("node-fetch")):"function"==typeof define&&define.amd?define(["node-fetch"],t):(e=e||self).googleads=t(e.nodeFetch)}(this,function(e){e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var t=["clientId","clientSecret","developerToken"];return function(n){void 0===n&&(n={});var r=function(n){var r=n.clientId,o=n.clientSecret,s=n.developerToken,u=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}(n,t),i=function(e){void 0===e&&(e=3600);var t={},n=function(e){var n=t[e];if(n){var r=Date.now();if(n.inserted+1e3*n.maxAge>r)return n.value;delete t[e]}};return{get:n,set:function(n,r,o){t[n]={value:r,maxAge:o||e,inserted:Date.now()}},has:function(e){return void 0!==n(e)}}}(1800),c=function(t,n,c,a){try{return void 0===a&&(a=u.refreshToken),Promise.resolve(function(t){try{return i.has(t)||i.set(t,function(t){try{return Promise.resolve(e("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:r,client_secret:o,refresh_token:t,grant_type:"refresh_token"})}).then(function(e){return e.json()}).then(function(e){return e.access_token}))}catch(e){return Promise.reject(e)}}(t)),Promise.resolve(i.get(t))}catch(e){return Promise.reject(e)}}(a)).then(function(r){var o="https://googleads.googleapis.com/v15"+(n.startsWith("/")?"":"/")+n;return o="GET"===t&&c?o+"?"+new URLSearchParams(c):o,Promise.resolve(e(o,{method:t,headers:{"Content-Type":"application/json",Authorization:"Bearer "+r,"Developer-Token":s},body:c&&"GET"!==t?JSON.stringify(c):null})).then(function(e){return Promise.resolve(e.json()).then(function(e){if(e.error)throw new Error(JSON.stringify(e.error));return e})})})}catch(e){return Promise.reject(e)}};return{get:function(e,t,n){return c("GET",e,t,n)},post:function(e,t,n){return c("POST",e,t,n)}}}(n),o=r.get,s=r.post;return{suggestGeoTargetConstants:function(e,t){return s("/geoTargetConstants:suggest",e,t)},listAccessibleCustomers:function(e){return o("/customers:listAccessibleCustomers",null,e)},get:o,post:s,mutateBatchJob:function(e,t,n){return s("/customers/"+e+"/batchJobs:mutate",t,n)},listResults:function(e,t,n){return o(e+":listResults",t,n)},addOperations:function(e,t,n){return s(e+":addOperations",t,n)},runBatchJob:function(e,t){return s(e+":run",null,t)},search:function(e,t,n){return s("/customers/"+e+"/googleAds:search",t,n)},searchStream:function(e,t,n){return s("/customers/"+e+"/googleAds:searchStream",t,n)},mutate:function(e,t,n){return s("/customers/"+e+"/googleAds:mutate",t,n)},mutateCampaigns:function(e,t,n){return s("/customers/"+e+"/campaigns:mutate",t,n)},mutateCustomAudiences:function(e,t,n){return s("/customers/"+e+"/customAudiences:mutate",t,n)}}}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("node-fetch")):"function"==typeof define&&define.amd?define(["node-fetch"],t):(e=e||self).googleads=t(e.nodeFetch)}(this,function(e){e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var t=["clientId","clientSecret","developerToken"];return function(n){void 0===n&&(n={});var r=function(n){var r=n.clientId,o=n.clientSecret,s=n.developerToken,u=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}(n,t),i=function(e){void 0===e&&(e=3600);var t={},n=function(e){var n=t[e];if(n){var r=Date.now();if(n.inserted+1e3*n.maxAge>r)return n.value;delete t[e]}};return{get:n,set:function(n,r,o){t[n]={value:r,maxAge:o||e,inserted:Date.now()}},has:function(e){return void 0!==n(e)}}}(1800),c=function(t,n,c,a){try{return void 0===a&&(a=u.refreshToken),Promise.resolve(function(t){try{return i.has(t)||i.set(t,function(t){try{return Promise.resolve(e("https://www.googleapis.com/oauth2/v4/token",{method:"POST",body:JSON.stringify({client_id:r,client_secret:o,refresh_token:t,grant_type:"refresh_token"})}).then(function(e){return e.json()}).then(function(e){return e.access_token}))}catch(e){return Promise.reject(e)}}(t)),Promise.resolve(i.get(t))}catch(e){return Promise.reject(e)}}(a)).then(function(r){var o="https://googleads.googleapis.com/v17"+(n.startsWith("/")?"":"/")+n;return o="GET"===t&&c?o+"?"+new URLSearchParams(c):o,Promise.resolve(e(o,{method:t,headers:{"Content-Type":"application/json",Authorization:"Bearer "+r,"Developer-Token":s},body:c&&"GET"!==t?JSON.stringify(c):null})).then(function(e){return Promise.resolve(e.json()).then(function(e){if(e.error)throw new Error(JSON.stringify(e.error));return e})})})}catch(e){return Promise.reject(e)}};return{get:function(e,t,n){return c("GET",e,t,n)},post:function(e,t,n){return c("POST",e,t,n)}}}(n),o=r.get,s=r.post;return{suggestGeoTargetConstants:function(e,t){return s("/geoTargetConstants:suggest",e,t)},listAccessibleCustomers:function(e){return o("/customers:listAccessibleCustomers",null,e)},get:o,post:s,mutateBatchJob:function(e,t,n){return s("/customers/"+e+"/batchJobs:mutate",t,n)},listResults:function(e,t,n){return o(e+":listResults",t,n)},addOperations:function(e,t,n){return s(e+":addOperations",t,n)},runBatchJob:function(e,t){return s(e+":run",null,t)},search:function(e,t,n){return s("/customers/"+e+"/googleAds:search",t,n)},searchStream:function(e,t,n){return s("/customers/"+e+"/googleAds:searchStream",t,n)},mutate:function(e,t,n){return s("/customers/"+e+"/googleAds:mutate",t,n)},mutateCampaigns:function(e,t,n){return s("/customers/"+e+"/campaigns:mutate",t,n)},mutateCustomAudiences:function(e,t,n){return s("/customers/"+e+"/customAudiences:mutate",t,n)}}}});
//# sourceMappingURL=googleads.umd.js.map
{
"name": "@honkandgo/googleads",
"version": "15.0.0",
"version": "17.0.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -31,3 +31,3 @@ import fetch from 'node-fetch'

const accessToken = await getCachedAccessToken(refreshToken)
let url = `https://googleads.googleapis.com/v15${
let url = `https://googleads.googleapis.com/v17${
endpoint.startsWith('/') ? '' : '/'

@@ -34,0 +34,0 @@ }${endpoint}`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc