For the complete documentation index, see llms.txt. This page is also available as Markdown.

Microsoft Advertising

Manage Microsoft Advertising campaigns, keywords, bids, exclusions, and performance reports.

Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

Connector
Authentication

Microsoft Advertising

OAuth sign-in

Microsoft Advertising

Connect Microsoft Advertising to manage campaigns, keywords, bids, negative keywords, and performance reports.

Set up in Microsoft Advertising

  1. Use a Microsoft Advertising account with access to the records and operations that your workflow needs.

  2. If your organization restricts application access or user consent, have its administrator approve the connection before you sign in.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select Microsoft Advertising.

  2. Select Connect, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.

  3. Complete the fields marked for use after sign-in, such as the business or account selection.

  4. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

Microsoft Advertising Account

Optional / as applicable

The ad account used by actions and reports. Select this after signing in.

Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

Use an action

  1. Add the required Microsoft Advertising action to the workflow.

  2. Select a connection when the action requests one.

  3. Complete the required fields. Use the reference picker when a value comes from another workflow step.

  4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

Actions

Create Campaigns

Create up to 100 Microsoft Advertising search campaigns with daily budgets and bidding strategies.

Required permissions: https://ads.microsoft.com/msads.manage.

Inputs

Field
Type
Required
Description

Campaigns

textarea

Yes

One campaign name, daily budget, bidding strategy, and status per line.

Outputs

Field
Type
Description

Campaign results

object_array

Per-row campaign IDs or validation errors.

Campaigns created

integer

Number of campaigns successfully created.

Tracking ID

string

Microsoft request identifier for support and troubleshooting.

Retrieve Performance Report

Generate campaign-level or keyword-level performance metrics for a date range.

Required permissions: https://ads.microsoft.com/msads.manage.

Inputs

Field
Type
Required
Description

Report level

select (string)

No

Whether each row summarizes a campaign or an individual keyword. Available values: Campaign, Keyword. Default: Campaign.

Start date

date

Yes

First date to include in the report.

End date

date

Yes

Last date to include in the report.

Aggregation

select (string)

No

Time interval represented by each metrics row. Available values: Daily, Weekly, Monthly, Summary. Default: Daily.

Only complete data

boolean

No

Wait for Microsoft to finish processing all data in the date range. Default: true.

Maximum rows

integer

No

Maximum metric rows to return to the workflow. Minimum: 1. Maximum: 5000. Default: 1000.

Outputs

Field
Type
Description

Performance rows

object_array

Structured campaign or keyword metric rows from the generated report.

Row count

integer

Number of performance rows returned.

Rows truncated

boolean

Whether the generated report contained more rows than returned.

Report request ID

string

Microsoft identifier for the generated report job.

Tracking ID

string

Microsoft request identifier from the final report poll.

Add Keywords

Add one or more search keywords to an existing ad group.

Required permissions: https://ads.microsoft.com/msads.manage.

Inputs

Field
Type
Required
Description

Campaign

select (string)

Yes

Search campaign that contains the target ad group. Options load from the selected connection.

Ad group

select (string)

Yes

Ad group that will receive the keywords. Options load from the selected connection.

Keywords

string

Yes

Comma-separated keyword phrases to add.

Match type

select (string)

No

How closely a search must match each keyword. Available values: Broad, Phrase, Exact. Default: Broad.

Keyword bid

number

No

Optional maximum CPC bid applied to every new keyword.

Outputs

Field
Type
Description

Keyword IDs

string_array

Microsoft Advertising IDs of the created keywords.

Keywords added

integer

Number of keywords successfully added.

Tracking ID

string

Microsoft request identifier for support and troubleshooting.

Update Keyword Bids

Set or clear the CPC bid override for a selected keyword.

Required permissions: https://ads.microsoft.com/msads.manage.

Inputs

Field
Type
Required
Description

Campaign

select (string)

Yes

Search campaign that contains the target keyword. Options load from the selected connection.

Ad group

select (string)

Yes

Ad group that contains the target keyword. Options load from the selected connection.

Keyword

select (string)

Yes

Keyword whose bid should change. Options load from the selected connection.

Use ad-group bid

boolean

No

Clear the keyword override and inherit the ad group's CPC bid. Default: false.

Keyword bid

number

No

New maximum CPC bid in the ad account's currency.

Outputs

Field
Type
Description

Keyword ID

string

Microsoft Advertising ID of the updated keyword.

Uses ad-group bid

boolean

Whether the keyword now inherits its ad group's bid.

Tracking ID

string

Microsoft request identifier for support and troubleshooting.

Add Negative Keywords

Block wasteful searches by adding negative keywords to a campaign or ad group.

Required permissions: https://ads.microsoft.com/msads.manage.

Inputs

Field
Type
Required
Description

Apply to

select (string)

Yes

Whether to block searches for a whole campaign or one ad group. Available values: Campaign, Ad group. Default: Campaign.

Campaign

select (string)

Yes

Campaign that receives the exclusions or contains the selected ad group. Options load from the selected connection.

Ad group

select (string)

No

Ad group that receives the exclusions. Options load from the selected connection.

Negative keywords

string

Yes

Comma-separated search phrases to block.

Match type

select (string)

No

How closely a query must match before it is blocked. Available values: Phrase, Exact. Default: Phrase.

Outputs

Field
Type
Description

Negative keyword IDs

string_array

Microsoft Advertising IDs of the added negative keywords.

Negative keywords added

integer

Number of negative keywords successfully added.

Tracking ID

string

Microsoft request identifier for support and troubleshooting.

Important behavior

If an operation is denied, check the connection’s granted permissions and the account’s access in the provider. Reauthorize the connection when it needs additional permissions.

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.

Last updated

Was this helpful?