Socket
Socket
Sign inDemoInstall

@andrewstoliarov/apple-search-ads

Package Overview
Dependencies
56
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andrewstoliarov/apple-search-ads

Apple search ads api client.


Version published
Maintainers
1
Weekly downloads
1
decreased by-50%
Bundle size
330.2 kB
Minified + gzipped

Weekly downloads

Readme

Source

AppleSearchAds

Installation

$ npm install @andrewstoliarov/apple-search-ads

Example usage

The usual boilerplate:

const asa = require('@andrewstoliarov/apple-search-ads');

var username = 'UNAME';
var password = 'PASS';
var appId = 1448103572;

    const instance = new AppleSearchAds(username, password, {
        errorCallback: function(e) {
            console.log('Error logging in: ' + e);
        },
        successCallback: function(d) {
            console.log('Logged in');

            const query = asa.AppleSearchAdsQuery(asa.queryTypes.keywordsRecommendation)
                .keywordText("lightroom")
                .appId(appId)
                .storefronts(["US"])
                .build()

            instance.request(query, function(error, result) {
                if (error) {
                    console.log(error)
                } else {
                    console.log(result.data)
                }
            });
        },
    })

Keywords

FAQs

Last updated on 06 Dec 2023

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.

Install

Related posts

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