npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aexol/searchads-js

v0.1.6

Published

searchads api wrapper

Downloads

17

Readme

Apple SearchAds api wrapper

About

TODO

Installation

npm install @aexol/searchads-js

Usage

API Reference

Modules

Classes

@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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

aclQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of AclQuery

| Param | Type | Description | | --- | --- | --- | | data | any | put 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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

adGroupQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of AdGroupQuery

| Param | Type | Description | | --- | --- | --- | | data | any | put 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

| Name | Type | Description | | --- | --- | --- | | find | FindQuery | Get find for adgroups. | | [id] | AdGroup | Get 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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

adGroupsQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of AdGroupsQuery

| Param | Type | Description | | --- | --- | --- | | data | any | put payload |

adGroupsQuery.url() ⇒ String

Get endpoint url

Kind: instance method of AdGroupsQuery

Api

Kind: global class
Properties

| Name | Type | Description | | --- | --- | --- | | campaigns | CampaignsQuery | Instance of {CampaignsQuery} for this api obejct. | | acl | AclQuery | Instance of {AclQuery} for this api object. |

new Api(auth)

SearchAds API.

| Param | Description | | --- | --- | | auth | SearchAds API auth certificates. |

CampaignQuery ⇐ Request

Make request on campaigns/${id} endpoint.

Kind: global class
Extends: Request
Properties

| Name | Type | Description | | --- | --- | --- | | adgroups | AdGroups | Get 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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

campaignQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of CampaignQuery

| Param | Type | Description | | --- | --- | --- | | data | any | put 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

| Name | Type | Description | | --- | --- | --- | | find | FindQuery | Get find for campaigns | | [id] | Campaign | Get 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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

campaignsQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of CampaignsQuery

| Param | Type | Description | | --- | --- | --- | | data | any | put 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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

findQuery.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of FindQuery

| Param | Type | Description | | --- | --- | --- | | data | any | put payload |

findQuery.url() ⇒ String

Get endpoint url

Kind: instance method of FindQuery

Request

Request to SearchAds API.

Kind: global class
Properties

| Name | Type | Description | | --- | --- | --- | | endpoint | String | Search ads api endpoint. | | auth | ICertAuth | Search ads api auth. | | headers | Headers | Search 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

| Param | Type | Description | | --- | --- | --- | | data | any | post payload |

request.put(data) ⇒ Promise

Put on endpoint.

Kind: instance method of Request

| Param | Type | Description | | --- | --- | --- | | data | any | put 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

| Name | Type | Description | | --- | --- | --- | | request | Request | returns object for this endpoint. |