Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 937 Bytes

campaigns.md

File metadata and controls

55 lines (44 loc) · 937 Bytes

List Campaigns

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": ""
  }
]

Get Campaign

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": ""
  }