listCampaigns(campaignType, data = {}, extended = false)
Accepts campaignType, filter and extended
await client.listCampaigns('sponsoredBrands');
[
{
"campaignId": 1234567890,
"name": "Campaign Name",
"budget": 1,
"budgetType": "",
"bidOptimization": true,
"state": "enabled",
"adFormat": "",
"startDate": "20200101",
"servingStatus": "",
"landingPage": ""
}
]
getCampaign(campaignType, campaignId, extended = false)
Accepts campaignType, campaignId and extended
await client.listCampaigns('sponsoredBrands', 1111111);
{
"campaignId": 1234567890,
"name": "Campaign Name",
"budget": 1,
"budgetType": "",
"bidOptimization": true,
"state": "enabled",
"adFormat": "",
"startDate": "20200101",
"servingStatus": "",
"landingPage": ""
}