New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aexol/searchads-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aexol/searchads-js

searchads api wrapper

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Apple SearchAds api wrapper

About

TODO

Installation

npm install @aexol/searchads-js

Usage

API Reference

Modules

@aexol/searchads-js

SearchAds API

Classes

AclQueryRequest

Queries on acl endpoint in SearchAds API.

AdGroupQueryRequest

Make request on adgroups/${id} endpoint.

AdGroupsQueryRequest

Make request on adgroups endpoint.

Api
CampaignQueryRequest

Make request on campaigns/${id} endpoint.

CampaignsQueryRequest

Make request on campaigns endpoint.

FindQueryRequest

Make request on find endpoint.

Request

Request to SearchAds API.

QueryBase

Base query with request.

@aexol/searchads-js

SearchAds API

Example

import Api from '@aexol/searchads-js'
import fs from 'fs'

const auth = {
  pem: fs.readFileSync('cert.pem'),
  key: fs.readFileSync('cert.key'),
  orgId: 1
}
const api = new Api(auth)
api.campaigns.get().then(console.log).catch(e => console.log(e.message))

AclQuery ⇐ Request

Queries on acl endpoint in SearchAds API.

Kind: global class
Extends: Request

aclQuery.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of AclQuery

aclQuery.get() ⇒ Promise

Get on endpoint.

Kind: instance method of AclQuery

aclQuery.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of AclQuery

ParamTypeDescription
dataanypost payload

aclQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of AclQuery

ParamTypeDescription
dataanyput payload

aclQuery.url() ⇒ String

Get endpoint url

Kind: instance method of AclQuery

AdGroupQuery ⇐ Request

Make request on adgroups/${id} endpoint.

Kind: global class
Extends: Request

adGroupQuery.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of AdGroupQuery

adGroupQuery.get() ⇒ Promise

Get on endpoint.

Kind: instance method of AdGroupQuery

adGroupQuery.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of AdGroupQuery

ParamTypeDescription
dataanypost payload

adGroupQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of AdGroupQuery

ParamTypeDescription
dataanyput payload

adGroupQuery.url() ⇒ String

Get endpoint url

Kind: instance method of AdGroupQuery

AdGroupsQuery ⇐ Request

Make request on adgroups endpoint.

Kind: global class
Extends: Request
Properties

NameTypeDescription
findFindQueryGet find for adgroups.
[id]AdGroupGet adgroup by id.

adGroupsQuery.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of AdGroupsQuery

adGroupsQuery.get() ⇒ Promise

Get on endpoint.

Kind: instance method of AdGroupsQuery

adGroupsQuery.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of AdGroupsQuery

ParamTypeDescription
dataanypost payload

adGroupsQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of AdGroupsQuery

ParamTypeDescription
dataanyput payload

adGroupsQuery.url() ⇒ String

Get endpoint url

Kind: instance method of AdGroupsQuery

Api

Kind: global class
Properties

NameTypeDescription
campaignsCampaignsQueryInstance of {CampaignsQuery} for this api obejct.
aclAclQueryInstance of {AclQuery} for this api object.

new Api(auth)

SearchAds API.

ParamDescription
authSearchAds API auth certificates.

CampaignQuery ⇐ Request

Make request on campaigns/${id} endpoint.

Kind: global class
Extends: Request
Properties

NameTypeDescription
adgroupsAdGroupsGet adgroups for campaign

campaignQuery.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of CampaignQuery

campaignQuery.get() ⇒ Promise

Get on endpoint.

Kind: instance method of CampaignQuery

campaignQuery.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of CampaignQuery

ParamTypeDescription
dataanypost payload

campaignQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of CampaignQuery

ParamTypeDescription
dataanyput payload

campaignQuery.url() ⇒ String

Get endpoint url

Kind: instance method of CampaignQuery

CampaignsQuery ⇐ Request

Make request on campaigns endpoint.

Kind: global class
Extends: Request
Properties

NameTypeDescription
findFindQueryGet find for campaigns
[id]CampaignGet campaign by id.

campaignsQuery.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of CampaignsQuery

campaignsQuery.get() ⇒ Promise

Get on endpoint.

Kind: instance method of CampaignsQuery

campaignsQuery.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of CampaignsQuery

ParamTypeDescription
dataanypost payload

campaignsQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of CampaignsQuery

ParamTypeDescription
dataanyput payload

campaignsQuery.url() ⇒ String

Get endpoint url

Kind: instance method of CampaignsQuery

FindQuery ⇐ Request

Make request on find endpoint.

Kind: global class
Extends: Request

findQuery.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of FindQuery

findQuery.get() ⇒ Promise

Get on endpoint.

Kind: instance method of FindQuery

findQuery.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of FindQuery

ParamTypeDescription
dataanypost payload

findQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of FindQuery

ParamTypeDescription
dataanyput payload

findQuery.url() ⇒ String

Get endpoint url

Kind: instance method of FindQuery

Request

Request to SearchAds API.

Kind: global class
Properties

NameTypeDescription
endpointStringSearch ads api endpoint.
authICertAuthSearch ads api auth.
headersHeadersSearch ads api request headers.

request.delete() ⇒ Promise

Delete on endpoint.

Kind: instance method of Request

request.get() ⇒ Promise

Get on endpoint.

Kind: instance method of Request

request.post(data) ⇒ Promise

Post on endpoint.

Kind: instance method of Request

ParamTypeDescription
dataanypost payload

request.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of Request

ParamTypeDescription
dataanyput payload

request.url() ⇒ String

Get endpoint url

Kind: instance method of Request

QueryBase

Base query with request.

Kind: global class

queryBase.request

Kind: instance property of QueryBase
Properties

NameTypeDescription
requestRequestreturns object for this endpoint.

Keywords

FAQs

Package last updated on 28 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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