Skip to main content

campaigns

The merchant’s advertising campaigns, ordered by name, as a cursor connection. Spans every one of their accounts — including accounts on platforms they have not connected — unless one is named.

campaigns(
first: Int
after: String
last: Int
before: String
accountId: ID
): CampaignConnection!

Arguments

campaigns.first ● Int scalar

How many items to return from the start of the page, at most 50. Either first or last is required — a connection never guesses a page size.

campaigns.after ● String scalar

Return the items after this cursor. Use with first.

campaigns.last ● Int scalar

How many items to return from the end of the page, at most 50. Either first or last is required — a connection never guesses a page size.

campaigns.before ● String scalar

Return the items before this cursor. Use with last.

campaigns.accountId ● ID scalar

Restricts the page to one ad account’s campaigns, by its global object identifier. Omit it for every account.

Type

CampaignConnection object

One page of the merchant’s advertising campaigns.