StackAdapt

App · 25 actions

Run StackAdapt programmatic campaigns: manage advertisers, pause and resume campaign groups, campaigns and ads, and report delivery and conversions.

Actions

ActionWhat it does
Archive adsArchive one or more ads, which stops them running.
Archive advertiserArchive an advertiser.
Archive campaignArchive a campaign, which stops it.
Create advertiserAdd an advertiser to your account.
Get accountGet your StackAdapt account's ID and currency.
Get ad deliveryGet each ad's impressions, clicks, conversions, cost and revenue over a period.
Get advertiserGet an advertiser's name, description and excluded domains.
Get advertiser deliveryGet each advertiser's impressions, clicks, conversions, cost and revenue over a period.
Get campaignGet a campaign's status and why, its channel, advertiser and campaign group.
Get campaign deliveryGet each campaign's impressions, clicks, conversions, cost and revenue over a period.
Get campaign groupGet a campaign group's status, budget type, time zone and advertiser.
List adsList ads (creatives), with their review status, size and campaign.
List advertisersList the advertisers in your account, by name or whether they are archived.
List campaign groupsList campaign groups, with their status and advertiser.
List campaignsList campaigns, with their status, channel, advertiser and campaign group.
List conversion pixelsList your account's conversion pixels, with the key each fires with.
Pause adsPause one or more ads.
Pause campaign groupPause a campaign group, which pauses every campaign in it.
Pause campaignsPause one or more campaigns.
Restore advertiserBring back an archived advertiser.
Restore campaignBring back an archived campaign.
Resume adsSet one or more paused ads running again.
Resume campaign groupSet a paused campaign group running again.
Resume campaignsSet one or more paused campaigns running again.
Update advertiserChange an advertiser's name, description or excluded domains.

Archive ads

Archive one or more ads, which stops them running.

Inputs

Adsad_idslistRequired
The ads.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "ads": [
      {
        "brandname": "example",
        "campaign": {
          "id": "example",
          "name": "example"
        },
        "channelType": "example",
        "clickUrl": "example",
        "creativeSize": "example",
        "creativeStatus": {
          "state": "example",
          "status": "example"
        },
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "isRejected": true,
        "name": "example",
        "paused": true
      }
    ],
    "changed": 1
  }
}

Archive advertiser

Archive an advertiser. Restore advertiser brings it back.

Inputs

Advertiseradvertiser_idtextRequired
The advertiser.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "done": true,
    "id": "example"
  }
}

Archive campaign

Archive a campaign, which stops it. Restore campaign brings it back.

Inputs

Campaigncampaign_idtextRequired
The campaign.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "done": true,
    "id": "example"
  }
}

Create advertiser

Add an advertiser to your account.

Inputs

NamenametextRequired
The advertiser's name.
Descriptiondescriptiontext
A description of the advertiser.
Excluded domainsdomain_exclusionslist
Websites the advertiser's ads must never run on.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "description": "example",
    "domainExclusions": [
      "example"
    ],
    "id": "example",
    "isArchived": true,
    "name": "example"
  }
}

Get account

Get your StackAdapt account's ID and currency.

Inputs

None.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "currency": "example",
    "id": "example"
  }
}

Get ad delivery

Get each ad's impressions, clicks, conversions, cost and revenue over a period.

Inputs

Fromstart_datedateRequired
The first day of the report.
Toend_datedateRequired
The last day of the report.
Split bygranularitytext
How to split the period. Leave empty for one total per row.One of: TOTAL (No split (totals)), DAILY (Day), WEEKLY (Week), MONTHLY (Month).
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Campaignscampaign_idslist
Only these campaigns.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "records": [
      {
        "ad": {
          "id": "example",
          "name": "example"
        },
        "campaign": {
          "id": "example",
          "name": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversions": 1,
          "cost": 1,
          "ctr": 1,
          "cvr": 1,
          "ecpa": 1,
          "ecpc": 1,
          "ecpm": 1,
          "impressions": 1,
          "revenue": 1,
          "roas": 1,
          "uniqueImpressions": 1
        },
        "period": {
          "endTime": "example",
          "startTime": "example",
          "type": "example"
        }
      }
    ],
    "totalCount": 1,
    "totalStats": {
      "clicks": 1,
      "conversions": 1,
      "cost": 1,
      "ctr": 1,
      "cvr": 1,
      "ecpa": 1,
      "ecpc": 1,
      "ecpm": 1,
      "impressions": 1,
      "revenue": 1,
      "roas": 1,
      "uniqueImpressions": 1
    }
  }
}

Get advertiser

Get an advertiser's name, description and excluded domains.

Inputs

Advertiseradvertiser_idtextRequired
The advertiser.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "description": "example",
    "domainExclusions": [
      "example"
    ],
    "id": "example",
    "isArchived": true,
    "name": "example"
  }
}

Get advertiser delivery

Get each advertiser's impressions, clicks, conversions, cost and revenue over a period.

Inputs

Fromstart_datedateRequired
The first day of the report.
Toend_datedateRequired
The last day of the report.
Split bygranularitytext
How to split the period. Leave empty for one total per row.One of: TOTAL (No split (totals)), DAILY (Day), WEEKLY (Week), MONTHLY (Month).
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "records": [
      {
        "advertiser": {
          "id": "example",
          "name": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversions": 1,
          "cost": 1,
          "ctr": 1,
          "cvr": 1,
          "ecpa": 1,
          "ecpc": 1,
          "ecpm": 1,
          "impressions": 1,
          "revenue": 1,
          "roas": 1,
          "uniqueImpressions": 1
        },
        "period": {
          "endTime": "example",
          "startTime": "example",
          "type": "example"
        }
      }
    ],
    "totalCount": 1,
    "totalStats": {
      "clicks": 1,
      "conversions": 1,
      "cost": 1,
      "ctr": 1,
      "cvr": 1,
      "ecpa": 1,
      "ecpc": 1,
      "ecpm": 1,
      "impressions": 1,
      "revenue": 1,
      "roas": 1,
      "uniqueImpressions": 1
    }
  }
}

Get campaign

Get a campaign's status and why, its channel, advertiser and campaign group.

Inputs

Campaigncampaign_idtextRequired
The campaign.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "advertiser": {
      "id": "example",
      "name": "example"
    },
    "campaignGroup": {
      "id": "example",
      "name": "example"
    },
    "campaignStatus": {
      "state": "example",
      "status": "example"
    },
    "channelType": "example",
    "createdAt": "example",
    "id": "example",
    "isArchived": true,
    "isDraft": true,
    "name": "example",
    "timezone": "example",
    "updatedAt": "example"
  }
}

Get campaign delivery

Get each campaign's impressions, clicks, conversions, cost and revenue over a period.

Inputs

Fromstart_datedateRequired
The first day of the report.
Toend_datedateRequired
The last day of the report.
Split bygranularitytext
How to split the period. Leave empty for one total per row.One of: TOTAL (No split (totals)), DAILY (Day), WEEKLY (Week), MONTHLY (Month).
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Campaign groupscampaign_group_idslist
Only these campaign groups.
Campaignscampaign_idslist
Only these campaigns.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "records": [
      {
        "campaign": {
          "id": "example",
          "name": "example"
        },
        "metrics": {
          "clicks": 1,
          "conversions": 1,
          "cost": 1,
          "ctr": 1,
          "cvr": 1,
          "ecpa": 1,
          "ecpc": 1,
          "ecpm": 1,
          "impressions": 1,
          "revenue": 1,
          "roas": 1,
          "uniqueImpressions": 1
        },
        "period": {
          "endTime": "example",
          "startTime": "example",
          "type": "example"
        }
      }
    ],
    "totalCount": 1,
    "totalStats": {
      "clicks": 1,
      "conversions": 1,
      "cost": 1,
      "ctr": 1,
      "cvr": 1,
      "ecpa": 1,
      "ecpc": 1,
      "ecpm": 1,
      "impressions": 1,
      "revenue": 1,
      "roas": 1,
      "uniqueImpressions": 1
    }
  }
}

Get campaign group

Get a campaign group's status, budget type, time zone and advertiser.

Inputs

Campaign groupcampaign_group_idtextRequired
The campaign group.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "advertiser": {
      "id": "example",
      "name": "example"
    },
    "budgetType": "example",
    "campaignGroupStatus": {
      "state": "example",
      "status": "example"
    },
    "createdAt": "example",
    "id": "example",
    "isArchived": true,
    "name": "example",
    "timezone": "example"
  }
}

List ads

List ads (creatives), with their review status, size and campaign.

Inputs

Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Campaignscampaign_idslist
Only these campaigns.
Statusstateslist
Only ads in these states.One or more of: LIVE, APPROVED (Not started), PENDING (Ads pending review), PAUSED, ENDED, REJECTED (Ads rejected), DRAFT, ERROR (Has a problem).
Name or ID containssearchtext
Only those whose name or ID contains this text.
Archivedarchivedtrue/false
On for only archived ones, off for only active ones. Leave empty for both.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "nodes": [
      {
        "brandname": "example",
        "campaign": {
          "id": "example",
          "name": "example"
        },
        "channelType": "example",
        "clickUrl": "example",
        "creativeSize": "example",
        "creativeStatus": {
          "state": "example",
          "status": "example"
        },
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "isRejected": true,
        "name": "example",
        "paused": true
      }
    ],
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "totalCount": 1
  }
}

List advertisers

List the advertisers in your account, by name or whether they are archived.

Inputs

Name or ID containssearchtext
Only those whose name or ID contains this text.
Archivedarchivedtrue/false
On for only archived ones, off for only active ones. Leave empty for both.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "nodes": [
      {
        "description": "example",
        "domainExclusions": [
          "example"
        ],
        "id": "example",
        "isArchived": true,
        "name": "example"
      }
    ],
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "totalCount": 1
  }
}

List campaign groups

List campaign groups, with their status and advertiser.

Inputs

Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Statusgroup_stateslist
Only groups in these states.One or more of: LIVE, PAUSED, ENDED, INACTIVE, EMPTY (No campaigns).
Name or ID containssearchtext
Only those whose name or ID contains this text.
Archivedarchivedtrue/false
On for only archived ones, off for only active ones. Leave empty for both.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "nodes": [
      {
        "advertiser": {
          "id": "example",
          "name": "example"
        },
        "budgetType": "example",
        "campaignGroupStatus": {
          "state": "example",
          "status": "example"
        },
        "createdAt": "example",
        "id": "example",
        "isArchived": true,
        "name": "example",
        "timezone": "example"
      }
    ],
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "totalCount": 1
  }
}

List campaigns

List campaigns, with their status, channel, advertiser and campaign group.

Inputs

Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Campaign groupscampaign_group_idslist
Only these campaign groups.
Statusstateslist
Only campaigns in these states.One or more of: LIVE, PENDING (Ads pending review), APPROVED (Not started), PAUSED, ENDED, REJECTED (Ads rejected), DRAFT, ERROR (Has a problem).
Channelschannelslist
Only campaigns on these channels.One or more of: NATIVE, DISPLAY, VIDEO, CTV (Connected TV), AUDIO, DOOH (Digital out-of-home).
Name or ID containssearchtext
Only those whose name or ID contains this text.
Archivedarchivedtrue/false
On for only archived ones, off for only active ones. Leave empty for both.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "nodes": [
      {
        "advertiser": {
          "id": "example",
          "name": "example"
        },
        "campaignGroup": {
          "id": "example",
          "name": "example"
        },
        "campaignStatus": {
          "state": "example",
          "status": "example"
        },
        "channelType": "example",
        "createdAt": "example",
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "name": "example",
        "timezone": "example",
        "updatedAt": "example"
      }
    ],
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "totalCount": 1
  }
}

List conversion pixels

List your account's conversion pixels, with the key each fires with.

Inputs

Name or key containssearchtext
Only pixels whose name or key contains this text.
Limitfirstnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Afteraftertext
The endCursor of the previous page, for the next page.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "nodes": [
      {
        "advertiserIds": [
          "example"
        ],
        "description": "example",
        "id": "example",
        "isLegacyPixel": true,
        "name": "example",
        "uniqueKey": "example"
      }
    ],
    "pageInfo": {
      "endCursor": "example",
      "hasNextPage": true
    },
    "totalCount": 1
  }
}

Pause ads

Pause one or more ads.

Inputs

Adsad_idslistRequired
The ads.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "ads": [
      {
        "brandname": "example",
        "campaign": {
          "id": "example",
          "name": "example"
        },
        "channelType": "example",
        "clickUrl": "example",
        "creativeSize": "example",
        "creativeStatus": {
          "state": "example",
          "status": "example"
        },
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "isRejected": true,
        "name": "example",
        "paused": true
      }
    ],
    "changed": 1
  }
}

Pause campaign group

Pause a campaign group, which pauses every campaign in it.

Inputs

Campaign groupcampaign_group_idtextRequired
The campaign group.
Reasonreasontext
Why it is paused, for StackAdapt's records. Leave empty for other.One of: PERFORMANCE, GOAL_REACHED (Goal reached), BRAND_LIFT (Brand lift study), RECREATING (Being recreated), OTHER.
Notereason_texttext
A note on why it is paused.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "advertiser": {
      "id": "example",
      "name": "example"
    },
    "budgetType": "example",
    "campaignGroupStatus": {
      "state": "example",
      "status": "example"
    },
    "createdAt": "example",
    "id": "example",
    "isArchived": true,
    "name": "example",
    "timezone": "example"
  }
}

Pause campaigns

Pause one or more campaigns.

Inputs

Campaignscampaign_idslistRequired
The campaigns.
Reasonreasontext
Why it is paused, for StackAdapt's records. Leave empty for other.One of: PERFORMANCE, GOAL_REACHED (Goal reached), BRAND_LIFT (Brand lift study), RECREATING (Being recreated), OTHER.
Notereason_texttext
A note on why it is paused.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "campaigns": [
      {
        "advertiser": {
          "id": "example",
          "name": "example"
        },
        "campaignGroup": {
          "id": "example",
          "name": "example"
        },
        "campaignStatus": {
          "state": "example",
          "status": "example"
        },
        "channelType": "example",
        "createdAt": "example",
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "name": "example",
        "timezone": "example",
        "updatedAt": "example"
      }
    ],
    "changed": 1
  }
}

Restore advertiser

Bring back an archived advertiser.

Inputs

Advertiseradvertiser_idtextRequired
The archived advertiser.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "done": true,
    "id": "example"
  }
}

Restore campaign

Bring back an archived campaign.

Inputs

Campaigncampaign_idtextRequired
The archived campaign.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "done": true,
    "id": "example"
  }
}

Resume ads

Set one or more paused ads running again.

Inputs

Adsad_idslistRequired
The ads.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "ads": [
      {
        "brandname": "example",
        "campaign": {
          "id": "example",
          "name": "example"
        },
        "channelType": "example",
        "clickUrl": "example",
        "creativeSize": "example",
        "creativeStatus": {
          "state": "example",
          "status": "example"
        },
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "isRejected": true,
        "name": "example",
        "paused": true
      }
    ],
    "changed": 1
  }
}

Resume campaign group

Set a paused campaign group running again.

Inputs

Campaign groupcampaign_group_idtextRequired
The campaign group.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "advertiser": {
      "id": "example",
      "name": "example"
    },
    "budgetType": "example",
    "campaignGroupStatus": {
      "state": "example",
      "status": "example"
    },
    "createdAt": "example",
    "id": "example",
    "isArchived": true,
    "name": "example",
    "timezone": "example"
  }
}

Resume campaigns

Set one or more paused campaigns running again.

Inputs

Campaignscampaign_idslistRequired
The campaigns.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "campaigns": [
      {
        "advertiser": {
          "id": "example",
          "name": "example"
        },
        "campaignGroup": {
          "id": "example",
          "name": "example"
        },
        "campaignStatus": {
          "state": "example",
          "status": "example"
        },
        "channelType": "example",
        "createdAt": "example",
        "id": "example",
        "isArchived": true,
        "isDraft": true,
        "name": "example",
        "timezone": "example",
        "updatedAt": "example"
      }
    ],
    "changed": 1
  }
}

Update advertiser

Change an advertiser's name, description or excluded domains. Fields left empty stay as they are.

Inputs

Advertiseradvertiser_idtextRequired
The advertiser.
Namenametext
The new name.
Descriptiondescriptiontext
The new description.
Excluded domainsdomain_exclusionslist
The full list of websites the advertiser's ads must never run on.

Outputs

dataobject
The response from StackAdapt.
Example output
{
  "data": {
    "description": "example",
    "domainExclusions": [
      "example"
    ],
    "id": "example",
    "isArchived": true,
    "name": "example"
  }
}

On this page