![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@aexol/searchads-js
Advanced tools
TODO
npm install @aexol/searchads-js
SearchAds API
Request
Queries on acl
endpoint in SearchAds API.
Request
Make request on adgroups/${id}
endpoint.
Request
Make request on adgroups
endpoint.
Request
Make request on campaigns/${id}
endpoint.
Request
Make request on campaigns
endpoint.
Request
Make request on find
endpoint.
Request to SearchAds API.
Base query with request.
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))
Request
Queries on acl
endpoint in SearchAds API.
Kind: global class
Extends: Request
Request
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of AclQuery
Promise
Get on endpoint.
Kind: instance method of AclQuery
Promise
Post on endpoint.
Kind: instance method of AclQuery
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of AclQuery
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of AclQuery
Request
Make request on adgroups/${id}
endpoint.
Kind: global class
Extends: Request
Request
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of AdGroupQuery
Promise
Get on endpoint.
Kind: instance method of AdGroupQuery
Promise
Post on endpoint.
Kind: instance method of AdGroupQuery
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of AdGroupQuery
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of AdGroupQuery
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. |
Request
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of AdGroupsQuery
Promise
Get on endpoint.
Kind: instance method of AdGroupsQuery
Promise
Post on endpoint.
Kind: instance method of AdGroupsQuery
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of AdGroupsQuery
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of AdGroupsQuery
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. |
SearchAds API.
Param | Description |
---|---|
auth | SearchAds API auth certificates. |
Request
Make request on campaigns/${id}
endpoint.
Kind: global class
Extends: Request
Properties
Name | Type | Description |
---|---|---|
adgroups | AdGroups | Get adgroups for campaign |
Request
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of CampaignQuery
Promise
Get on endpoint.
Kind: instance method of CampaignQuery
Promise
Post on endpoint.
Kind: instance method of CampaignQuery
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of CampaignQuery
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of CampaignQuery
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. |
Request
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of CampaignsQuery
Promise
Get on endpoint.
Kind: instance method of CampaignsQuery
Promise
Post on endpoint.
Kind: instance method of CampaignsQuery
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of CampaignsQuery
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of CampaignsQuery
Request
Make request on find
endpoint.
Kind: global class
Extends: Request
Request
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of FindQuery
Promise
Get on endpoint.
Kind: instance method of FindQuery
Promise
Post on endpoint.
Kind: instance method of FindQuery
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of FindQuery
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of FindQuery
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. |
Promise
Promise
Promise
Promise
String
Promise
Delete on endpoint.
Kind: instance method of Request
Promise
Get on endpoint.
Kind: instance method of Request
Promise
Post on endpoint.
Kind: instance method of Request
Param | Type | Description |
---|---|---|
data | any | post payload |
Promise
Put on endpoint.
Kind: instance method of Request
Param | Type | Description |
---|---|---|
data | any | put payload |
String
Get endpoint url
Kind: instance method of Request
Base query with request.
Kind: instance property of QueryBase
Properties
Name | Type | Description |
---|---|---|
request | Request | returns object for this endpoint. |
FAQs
searchads api wrapper
The npm package @aexol/searchads-js receives a total of 1 weekly downloads. As such, @aexol/searchads-js popularity was classified as not popular.
We found that @aexol/searchads-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.