FacebookAds.updateAdSet()

update an ad set

changes an ad set

Usage

Hover over inputs/exits for more info.

var FacebookAds = require('machinepack-facebookads');


// update an ad set

FacebookAds.updateAdSet({

adCampaignId: '3213213124',

dailyBudget: '100',

accessToken: 'CAACEdEose0cBACBhZA7DJbYapwM7oZBt1EWhPiGqibBZAZAZCZCe6IOkfDRzrs1jyZCS93zSuj9GaNQQtxbny0jeSCqyBNaQUl3ocDiD3lO4GSboFm5B7NogSHFzTGYw0rdpndDKolQcfsS5nYeYwZAIKXF1WPzgGaGxNIDh36oZBHuazcN3WSNmL9jGyO9YmYlZBmZCcigBuMFvtXj4XlzNWyb',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// minimum budget needs to be greater than 100 cents. However, 0 is an acceptable value.

budgetError: function (result) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

adCampaignId required

this is the Ad Set Id

'3213213124'
dailyBudget required

daily budget, string, in cents

'100'
accessToken required

this is the facebook issued access token for a given user and app pair

'CAACEdEose0cBACBhZA7DJbYapwM7oZBt1EWhPiGqibBZAZAZCZCe6IOkfDRzrs1jyZCS93zSuj9GaNQQtxbny0jeSCqyBNaQUl3ocDiD3lO4GSboFm5B7NogSHFzTGYw0rdpndDKolQcfsS5nYeYwZAIKXF1WPzgGaGxNIDh36oZBHuazcN3WSNmL9jGyO9YmYlZBmZCcigBuMFvtXj4XlzNWyb'

Exits

error

An unexpected error occurred.

{}
budgetError

minimum budget needs to be greater than 100 cents. However, 0 is an acceptable value.

{}
success

OK.

{}