@andrewstoliarov/apple-search-ads

1.4.1 • Public • Published

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)
                }
            });
        },
    })

Package Sidebar

Install

npm i @andrewstoliarov/apple-search-ads

Weekly Downloads

40

Version

1.4.1

License

CC-BY-4.0

Unpacked Size

25.6 kB

Total Files

8

Last publish

Collaborators

  • andrewstoliarov