node-adwords
node-adwords copied to clipboard
Status on adgroups doesn't work
No matter what, I get the status enabled, even if the adgroupad is deleted. I'm missing the status: disapprove or removed.
I use: following:
let campaignService = user.getService('AdGroupAdService', 'v201809')
let selector = {
fields: ['AdvertisingId', 'Status'],
paging: { startIndex: 0, numberResults: AdwordsConstants.RECOMMENDED_PAGE_SIZE }
}
campaignService.get({ serviceSelector: selector }, (error, result) => {
console.log(error)
if (result && result.entries && result.entries.length > 0) return cb(result.entries)
return cb()
})