Google Ads

Interact with Google Ads API

Actions17

Campaign → Get All

AI-generated

Summary

Retrieve a list of Google Ads campaigns using an optional GAQL query to filter results and a limit to control the maximum number of campaigns returned.

Inputs

  • Query — GAQL query to filter the campaigns returned, overriding the default selection of campaign ID, name, and status.
  • Limit — Maximum number of campaign results to return, minimum 1, defaulting to 50.

Output shape

a list of campaign objects each containing details according to the GAQL query fields (default fields are campaign id, name, and status).

The GAQL query, if provided, overrides the default query. The number of results is limited by the Limit parameter. Authentication via Google Ads API credentials is required. Errors may be returned per item if continueOnFail is enabled.

Examples

Example 1: Fetch all campaigns up to a limit

Set Query to empty string and Limit to desired max number e.g. 50 to retrieve up to 50 campaigns with default fields.

Example 2: Fetch campaigns with custom filters

Specify a GAQL query in the Query input to filter campaigns, for example retrieving only enabled campaigns, and set a Limit to restrict result size.

Links

Discussion