Microsoft Advertising Connector
Description
Microsoft Advertising (formerly Bing Ads) is a pay-per-click (PPC) advertising platform used to display ads based on the keywords used in a search query. The Microsoft Advertising API provides programmatic access to Microsoft Advertising for managing large campaigns or integrating marketing with other systems.
This component lets you manage campaigns, ad groups, ads, keywords, budgets, and audiences, along with customer accounts, client links, and offline conversions.
API Documentation
This component was built using the Microsoft Advertising API currently utilizing v13.
Microsoft documents many frequently asked questions that aid in troubleshooting.
REST and SOAP APIs
This component uses the Microsoft Advertising REST API for most operations. REST is the go-forward standard for Microsoft Advertising, so new features should be built on REST whenever the endpoint is available.
A handful of operations are not yet offered in the REST API and continue to use Microsoft's legacy SOAP services (Campaign Management and Customer Management). These SOAP-based features are the exception. Each SOAP-based action ends its description with "Utilizes the SOAP API." so it is identifiable in the Prismatic UI. They currently cover most account, customer, client-link, user, and offline-conversion operations, plus the Raw Request (SOAP) action (use Raw Request (REST) for REST calls).
As these operations become available over REST, they should be migrated and the "Utilizes the SOAP API." note removed from their descriptions.
Connections
OAuth 2.0
key: oauthThis component uses OAuth 2.0 to connect to the Microsoft Advertising API. Create a connection of type OAuth 2.0 to authenticate.
Prerequisites
- A Microsoft Advertising account
- Super Admin credentials for obtaining a developer token
- Access to the Azure portal for app registration
Setup Steps
Obtain a Developer Token:
- Sign in with Super Admin credentials at the Microsoft Advertising Developer Portal account tab.
- Select the user to associate with the developer token. Typically an application only needs one universal token regardless of how many users are supported.
- Click the Request Token button and copy the token value.
Register an Azure Application:
Microsoft Advertising uses the Microsoft identity platform endpoint and the OAuth 2.0 protocol to authenticate work or school accounts from Azure Active Directory (AAD) and personal Microsoft accounts (MSA), such as hotmail.com, outlook.com, and msn.com.
- Navigate to the Azure portal - App registrations page. Sign in using either a personal Microsoft Account or a Work or School Account.
- Select New registration.
- On the Register an application page, enter the registration information:
- In the Name section, enter a meaningful application name.
- In the Supported account types section, select Accounts in any organizational directory and personal Microsoft accounts.
- Select Register to create the application.
- On the app Overview page, find the Application (client) ID value and record it.
- Select the Add a Redirect URI link to open the Redirect URIs page. Add the callback URL:
https://oauth2.prismatic.io/callback - Select Certificates & secrets under Manage. Click the New client secret button. Enter a value in Description, select an option for Expires, and choose Add. Copy the client secret value before leaving the page. Refer to the Microsoft OAuth token documentation for additional details.
Configure the Connection
- Enter the Client ID from the Azure app registration Overview page
- Enter the Client Secret Value generated in the Certificates & secrets section
- Enter the Developer Token obtained from the Microsoft Advertising Developer Portal
- Optionally, enable Use Sandbox to connect to the Microsoft Advertising sandbox environment instead of production
The Use Sandbox toggle switches the connection to the Microsoft Advertising sandbox environment (api.sandbox.bingads.microsoft.com) instead of production.
This is useful for testing without affecting live campaign data.
A separate sandbox developer token is required for sandbox access, which is different from the production developer token obtained from the Microsoft Advertising Developer Portal.
App Verification and Admin Consent
Microsoft requires Azure AD app registrations used in multi-tenant deployments to complete a publisher verification process. This review confirms the app developer's identity, giving end users confidence that they are authorizing a legitimate, verified application.
Azure AD app registrations have two distinct verification concepts that affect how users experience the authentication flow.
Publisher Verification
Complete publisher verification before deploying to end users. Without it, the Microsoft consent screen displays "Unverified" next to the app name. This reduces user trust and may prevent users in organizations with strict Azure AD policies from being able to authorize the app at all.
To verify the publisher:
- Ensure the organization has a Microsoft Partner Network (MPN) account
- In the Microsoft Entra Admin Center, open the app registration
- Under Branding & properties, click Add a verified publisher
- Enter the MPN ID and confirm
Once verified, the consent screen displays the organization name with a verified badge instead of "Unverified."
Admin Consent
Apps requesting application permissions (permissions that act without a signed-in user) or high-privilege delegated permissions require admin consent before any user in a Microsoft 365 tenant can authenticate. Without admin consent, users see a "Need admin approval" error.
A tenant administrator can grant consent using either method:
Method 1 — Admin Consent URL:
Navigate to the following URL, replacing {tenant} with the Directory tenant ID and {client_id} with the Application client ID:
https://login.microsoftonline.com/{tenant}/adminconsent?client_id={client_id}
Method 2 — Microsoft Entra Admin Center:
- Navigate to Microsoft Entra Admin Center → Enterprise applications
- Select the app registration
- Under Permissions, click Grant admin consent for [organization name]
Delegated permissions (user-level) typically do not require admin consent unless they are classified as high privilege. Application permissions always require admin consent. Review the Microsoft Graph permissions reference to identify which permissions require consent.
| Input | Notes | Example |
|---|---|---|
| Authorize URL | The OAuth 2.0 Authorization URL for Microsoft Advertising. | https://login.microsoftonline.com/common/oauth2/v2.0/authorize |
| Client ID | The client ID of the registered OAuth application for Microsoft Advertising. | |
| Client Secret Value | The client secret value of the registered OAuth application for Microsoft Advertising. | |
| Developer Token | The developer token from the Account Manager account used for API authentication. | |
| Scopes | The permission scopes for the Microsoft Advertising OAuth application. | https://ads.microsoft.com/msads.manage offline_access |
| Token URL | The OAuth 2.0 Token URL for Microsoft Advertising. | https://login.microsoftonline.com/common/oauth2/v2.0/token |
| Use Sandbox | When true, uses the Microsoft Advertising sandbox environment (api.sandbox.bingads.microsoft.com) instead of production. | false |
Data Sources
Select Account ID
Gets the account identifiers that are accessible from the specified customer. | key: selectAccountId | type: picklist
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Select Account ID⤓
Select Ad Group ID
Gets the ad groups that belong to the specified campaign. | key: selectAdGroupId | type: picklist
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Select Ad Group ID⤓
Select Campaign ID
Gets the campaigns that belong to the specified account. | key: selectCampaignId | type: picklist
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Select Campaign ID⤓
Select Customer ID
Gets the customer identifiers that are accessible to the current authenticated user. | key: selectCustomerId | type: picklist
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. |
Example Payload for Select Customer ID⤓
Actions
Add Ad Groups
Creates one or more ad groups within the specified campaign. | key: addAdGroups
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Groups | A JSON array of ad groups to create. Each object follows the Microsoft Advertising AdGroup object schema. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Add Ad Groups⤓
Add Ads
Creates one or more ads within the specified ad group. | key: addAds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Ads | A JSON array of ads to create. Each ad needs a Type discriminator using the short AdType value (e.g. ResponsiveSearch, ExpandedText, AppInstall). For a ResponsiveSearch ad, Headlines (3-15) and Descriptions (2-4) are arrays of asset links, each wrapping a text asset whose own Type is the full "TextAsset" value. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Add Ads⤓
Add Audiences
Creates one or more audiences within the account. | key: addAudiences
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Audiences | A JSON array of audiences to create. Each object needs a Type discriminator (e.g. CustomerList, RemarketingList) and ParentId (the account ID when Scope is Account, otherwise the customer ID). A RemarketingList additionally requires a valid UET TagId and a Rule. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Add Audiences⤓
Add Budgets
Creates one or more shared budgets within the account. | key: addBudgets
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Budgets | A JSON array of budgets to create. Each object follows the Microsoft Advertising Budget object schema. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Add Budgets⤓
Add Campaigns
Creates one or more campaigns within the specified account. | key: addCampaigns
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaigns | A JSON array of campaigns to create. Each campaign object follows the Microsoft Advertising Campaign object schema. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Add Campaigns⤓
Add Client Link
Initiates the client link process to manage the accounts of another customer. Sends a link request from one customer to another customer or account. Utilizes the SOAP API. | key: addClientLinks
| Input | Notes | Example |
|---|---|---|
| Client Entity ID | The identifier of the client advertiser account or client customer to manage. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer Link Permission | Determines whether the user's access to the accounts is restricted by customer hierarchy i.e., customer level client linking. This element is only applicable if Type is set to CustomerLink. In that case, the possible values include Administrative and Standard. Otherwise this field should be nil or empty. | |
| Inviter Email | The email address of the user who created the client link request. | john.doe@example.com |
| Inviter Name | The name of the parent customer of the user who created the client link request. | |
| Inviter Phone | The phone number of the user who created the client link request. | |
| Is Bill To Client | Determines whether the owner of the client advertiser account or the managing customer is responsible for billing payments. | false |
| Managing Customer ID | The identifier of the customer who manages or is requesting to manage the client advertiser account. | |
| Name | The friendly name that can be used to reference this client link. The name can contain a maximum of 40 characters. | |
| Note | Optional message from the requestor providing context and details about the client link invitation. | |
| Suppress Notification | Determines whether or not to send email notification of the client link invitation to the primary user of the client advertiser account. If set to true the client will not receive an email and otherwise, since the default value is false, the client will receive an email notification. | false |
| Type | Determines whether the link is to a client advertiser account or a client customer. | AccountLink |
Example Payload for Add Client Link⤓
Add Keywords
Creates one or more keywords within the specified ad group. | key: addKeywords
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Keywords | A JSON array of keywords to create. Each object follows the Microsoft Advertising Keyword object schema. |
Example Payload for Add Keywords⤓
Add Offline Conversions Goal
Creates a new offline conversions goal. Utilizes the SOAP API. | key: addOfflineConversionsGoal
| Input | Notes | Example |
|---|---|---|
| Account ID | The identifier of the ad account that owns or is associated with the entities in the request. This header element must have the same value as the AccountId body element when both are required | |
| Connection | The Microsoft Advertising connection to use. | |
| Conversion Goal Category | The category that best describes the conversion goal. The category must be a valid Microsoft Advertising category. | Purchase |
| Scope | Determines if the goal applies to all accounts or only the account specified in the required CustomerAccountId header element. When multiple Microsoft Advertising accounts exist, conversions can be tracked across all of them. If associated with one account, conversions will be tracked for that account only. | |
| Status | Defines the possible user-determined status values of a conversion goal. These are the status values that a user can decide to set, for example a goal can be set to Paused to stop tracking conversions for that goal. | |
| Conversion Window In Minutes | The length of time in minutes after a click to track conversions. For example, setting this value to 43200 minutes (30 days) means conversions that happen within 30 days after a click are tracked. Past conversions are not affected. The default value is 43200. The minimum value supported is 1 minute, although a shorter conversion window will reduce the number of conversions recorded. The maximum value supported is 129600 minutes (90 days). | 129600 |
| Count Type | Determines how conversions are recorded within the chosen conversion window. | All |
| Customer ID | The identifier of the manager account (customer) the user is accessing or operating from. A user can have access to multiple manager accounts. | |
| Exclude From Bidding | Determines whether or not to exclude data otherwise related to this conversion goal from a subset of performance report columns. | false |
| Is Enhanced Conversions Enabled | Determines whether enhanced conversions are enabled for a conversion goal. | false |
| Is Externally Attributed | When true, the offline conversion goal uses a custom attribution model and allows importing fractional credit for each MSCLKID. | false |
| Conversion Goal Name | The conversion goal name. The maximum length of the name is 100, and the name must be unique among all conversion goals belonging to the same customer. | My Conversion Goal |
Example Payload for Add Offline Conversions Goal⤓
Apply Offline Conversions
Applies offline conversions to a Microsoft Advertising account. Utilizes the SOAP API. | key: applyOfflineConversions
| Input | Notes | Example |
|---|---|---|
| Customer Account Id | The identifier of the ad account that owns or is associated with the entities in the request. This header element must have the same value as the AccountId body element when both are required | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The identifier of the manager account (customer) the user is accessing or operating from. A user can have access to multiple manager accounts. | |
| Offline Conversions Body | The JSON body that contains the offline conversions to apply to the Microsoft Advertising account. |
Example Payload for Apply Offline Conversions⤓
Delete Ad Groups
Deletes one or more ad groups from the specified campaign. | key: deleteAdGroups
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group IDs | An array of ad group identifiers to delete. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Delete Ad Groups⤓
Delete Ads
Deletes one or more ads from the specified ad group. | key: deleteAds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Ad IDs | An array of ad identifiers to delete. | 7012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Delete Ads⤓
Delete Audiences
Deletes one or more audiences from the account. | key: deleteAudiences
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Audience IDs | An array of audience identifiers to delete. | 5012345 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Delete Audiences⤓
Delete Budgets
Deletes one or more shared budgets from the account. | key: deleteBudgets
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Budget IDs | An array of budget identifiers to delete. | 8901234 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Delete Budgets⤓
Delete Campaigns
Deletes one or more campaigns from the specified account. | key: deleteCampaigns
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaign IDs | An array of campaign identifiers to delete. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Delete Campaigns⤓
Delete Keywords
Deletes one or more keywords from the specified ad group. | key: deleteKeywords
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Keyword IDs | An array of keyword identifiers to delete. | 6012345 |
Example Payload for Delete Keywords⤓
Get Accounts Info
Gets the identifiers, names, and numbers of accounts that are accessible from the specified customer. Utilizes the SOAP API. | key: getAccountsInfo
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The identifier of the customer used to get the account information. This request element is optional. If not set, the user's credentials are used to determine the customer. |
Example Payload for Get Accounts Info⤓
Get Ad Groups By Campaign ID
Gets the ad groups that belong to the specified campaign. | key: getAdGroupsByCampaignId
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Ad Groups By Campaign ID⤓
Get Ad Groups By IDs
Gets the specified ad groups within the specified campaign. | key: getAdGroupsByIds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group IDs | An array of ad group identifiers to retrieve. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Ad Groups By IDs⤓
Get Ads By Ad Group ID
Gets the ads that belong to the specified ad group. | key: getAdsByAdGroupId
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Ad Types | The type(s) of ads to return for the specified ad group. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Ads By Ad Group ID⤓
Get Ads By IDs
Gets the specified ads within the specified ad group. | key: getAdsByIds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Ad IDs | An array of ad identifiers to retrieve. | 7012345 |
| Ad Types | The type(s) of ads to return for the specified ad group. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Ads By IDs⤓
Get Audiences By IDs
Gets the specified audiences. When Audience IDs is empty, an Audience Type is required and all audiences of that type in the account are returned. | key: getAudiencesByIds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Audience IDs | An array of audience identifiers. Leave empty to return all customer- and account-scoped audiences in the account. | 5012345 |
| Audience Type | The audience type to return. Required when Audience IDs is empty — the API needs a type to know which audiences to return. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Audiences By IDs⤓
Get Budgets By IDs
Gets the specified budgets. Leave Budget IDs empty to return all budgets available in the account. | key: getBudgetsByIds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Budget IDs | An array of budget identifiers. Leave empty to return all budgets available in the account. | 8901234 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Get Budgets By IDs⤓
Get Campaigns By Account ID
Gets the campaigns that belong to the specified account. | key: getCampaignsByAccountId
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaign Type | The type(s) of campaigns to return. Defaults to Search when omitted. Specify additional types to include non-Search campaigns. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Campaigns By Account ID⤓
Get Campaigns By IDs
Gets the specified campaigns within the specified account. | key: getCampaignsByIds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaign IDs | An array of campaign identifiers to retrieve. | 542512145 |
| Campaign Type | The type(s) of campaigns to return. Defaults to Search when omitted. Specify additional types to include non-Search campaigns. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Campaigns By IDs⤓
Get Customer
Gets the details of a customer. Utilizes the SOAP API. | key: getCustomer
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The identifier of the customer whose information you want to get. |
Example Payload for Get Customer⤓
Get Customers Info
Gets the identifiers and names of customers that are accessible to the current authenticated user. The results are filtered by customer name. Utilizes the SOAP API. | key: getCustomersInfo
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. | |
| Customer Name Filter | A partial or full name of the customers to retrieve. The operation includes the customer in the result if the customer's name begins with the specified filter name. This element is optional. To skip filtering by customer name, set this element to an empty string. | |
| Top Number | A nonzero positive integer that specifies the number of customers to return in the result. | 5 |
Example Payload for Get Customers Info⤓
Get Keywords By Ad Group ID
Gets the keywords that belong to the specified ad group. | key: getKeywordsByAdGroupId
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Keywords By Ad Group ID⤓
Get Keywords By IDs
Gets the specified keywords within the specified ad group. | key: getKeywordsByIds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Keyword IDs | An array of keyword identifiers to retrieve. | 6012345 |
| Return Additional Fields | A space-delimited list of additional properties to include in each returned entity. Allowed values depend on the resource and API version. |
Example Payload for Get Keywords By IDs⤓
Get Linked Accounts And Customers Info
Gets the customer and account hierarchy under the specified customer. Utilizes the SOAP API. | key: getLinkedAccountsAndCustomersInfo
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The identifier of the customer whose hierarchy you want to get. | |
| Only Parent Accounts | Determines whether to return only the advertiser accounts that belong to the customer or to also return linked customers and linked advertiser accounts under other customers. To limit the results to advertiser accounts directly under the specified customer, set this element to true, and otherwise leave it empty or set the property to false. The default value is false. | false |
Example Payload for Get Linked Accounts And Customers Info⤓
Raw Request (REST)
Send a raw HTTP request to the Microsoft Advertising REST API. | key: rawRestRequest
| Input | Notes | Example |
|---|---|---|
| Connection | The Microsoft Advertising connection to use. | |
| Data | The HTTP body payload to send to the URL. | {"exampleKey": "Example Data"} |
| File Data | File Data to be sent as a multipart form upload. | [{key: "example.txt", value: "My File Contents"}] |
| File Data File Names | File names to apply to the file data inputs. Keys must match the file data keys above. | |
| Form Data | The Form Data to be sent as a multipart form upload. | [{"key": "Example Key", "value": new Buffer("Hello World")}] |
| Header | A list of headers to send with the request. | User-Agent: curl/7.64.1 |
| Max Retry Count | The maximum number of retries to attempt. Specify 0 for no retries. | 0 |
| Method | The HTTP method to use. | |
| Query Parameter | A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2. | |
| Response Type | The type of data you expect in the response. You can request json, text, or binary data. | json |
| Retry On All Errors | If true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors. | false |
| Retry Delay (ms) | The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled. | 0 |
| Timeout | The maximum time that a client will await a response to its request | 2000 |
| URL | Input the path only (/Campaigns/QueryByAccountId), The base URL is already included (https://campaign.api.bingads.microsoft.com/CampaignManagement/v13). For example, to connect to https://campaign.api.bingads.microsoft.com/CampaignManagement/v13/Campaigns/QueryByAccountId, only /Campaigns/QueryByAccountId is entered in this field. | /Campaigns/QueryByAccountId |
| Use Exponential Backoff | Specifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored. | false |
Raw Request (SOAP)
Send a raw SOAP request to the Microsoft Advertising SOAP API. | key: rawRequest
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| SOAP Action | After selecting the Microsoft Advertising API Web Service, the SOAP Action is the method or endpoint to call. | GetCustomer |
| SOAP Body Request | The required SOAP Body element contains the actual SOAP message intended for the ultimate endpoint of the message. Immediate child elements of the SOAP Body element may be namespace-qualified. | |
| Web Service API | Microsoft Advertising API Version 13 includes the following web service addresses. | CUSTOMER_MANAGEMENT_API |
Search Accounts
Searches for accounts that match the request criteria. Utilizes the SOAP API. | key: searchAccounts
| Input | Notes | Example |
|---|---|---|
| Account ID | Use this field to search the Id element of the AdvertiserAccount. | |
| Account Life Cycle Status | Use this field to search the AccountLifeCycleStatus element of the AdvertiserAccount. | |
| Account Name | The name to search for in the Name element of the AdvertiserAccount. | |
| Account Number | The number to search for in the Number element of the AdvertiserAccount. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | Use this field to search the Id element of the Customer. | |
| Ordering | Determines the order of results by the specified property of an account. | |
| User ID | The unique identifier for the user to search for. |
Example Payload for Search Accounts⤓
Search Client Links
Searches for the client links for the customer of the current authenticated user, filtered by the search criteria. The operation returns the most recent link for each unique combination of agency customer and client account. Utilizes the SOAP API. | key: searchClientLinks
| Input | Notes | Example |
|---|---|---|
| Client Account ID | Search for advertiser account ClientLink objects by the client advertiser account identifier. | |
| Client Customer ID | Search for customer ClientLink objects by the client customer identifier. | |
| Connection | The Microsoft Advertising connection to use. | |
| Direct Managing Customer ID | Search for both customer and advertiser account ClientLink objects by the agency's managing customer identifier. If other customers also link to the client customer, the results will not include those client links. | |
| Managing Customer ID | Search for advertiser account ClientLink objects by the agency's managing customer identifier. If other customers also link to the client advertiser account, the results will include those client links. This predicate value is deprecated in favor of the DirectManagingCustomerId predicate. | |
| Ordering | Determines the order of results by the specified property of an account. |
Example Payload for Search Client Links⤓
Send User Invitation
Sends an email invitation for a user to sign up for Microsoft Advertising. The invitation limits account access and permissions. Utilizes the SOAP API. | key: sendUserInvitation
| Input | Notes | Example |
|---|---|---|
| Account ID | An array of identifiers of the accounts that the user can manage. To specify that the user can manage all current and future accounts of the customer to which the user belongs, set to NULL. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The identifier of the customer this user is invited to manage. The AccountIds element determines which customer accounts the user can manage. | |
The email address corresponding to the user's Microsoft account. The address can contain a maximum of 100 characters. | john.doe@example.com | |
| First Name | The first name of the user. The first name is limited to 40 characters. | John |
| Last Name | The last name of the user. The last name is limited to 40 characters. | Doe |
| LCID | The locale to use when sending correspondence to the user by email or postal mail. | EnglishUS |
| Role ID | The role that the user has for each customer or list of accounts. |
Example Payload for Send User Invitation⤓
Update Ad Groups
Updates one or more ad groups within the specified campaign. | key: updateAdGroups
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Groups | A JSON array of ad groups to update. Each object must include its Id. All other fields are optional — include only what you want to change. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Update Ad Groups⤓
Update Ads
Updates one or more ads within the specified ad group. | key: updateAds
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Ads | A JSON array of ads to update. Each object must include its Id and Type discriminator (the short AdType value, e.g. ResponsiveSearch). All other fields are optional — include only what you want to change. | |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Update Ads⤓
Update Audiences
Updates one or more audiences within the account. | key: updateAudiences
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Audiences | A JSON array of audiences to update. Each object must include its Id (returned when the audience was created) and its Type discriminator (e.g. CustomerList). ParentId is read-only and cannot be changed. All other fields are optional — include only what you want to change. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Update Audiences⤓
Update Budgets
Updates one or more shared budgets within the account. | key: updateBudgets
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Budgets | A JSON array of budgets to update. Each object must include its Id. All other fields are optional — include only what you want to change. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Update Budgets⤓
Update Campaigns
Updates one or more campaigns within the specified account. | key: updateCampaigns
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Campaigns | A JSON array of campaigns to update. Each object must include its Id. All other fields are optional — include only what you want to change. | |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. |
Example Payload for Update Campaigns⤓
Update Keywords
Updates one or more keywords within the specified ad group. | key: updateKeywords
| Input | Notes | Example |
|---|---|---|
| Account ID | The unique identifier for the advertiser account. | |
| Ad Group ID | The identifier of the ad group. | 9012345 |
| Campaign ID | The identifier of the campaign. | 542512145 |
| Connection | The Microsoft Advertising connection to use. | |
| Customer ID | The unique identifier for the customer. | |
| Keywords | A JSON array of keywords to update. Each object must include its Id. All other fields are optional — include only what you want to change. |
Example Payload for Update Keywords⤓
Changelog
2026-07-02
Rebranded the Bing Ads component to Microsoft Advertising to reflect current branding and added Campaign Management REST actions:
- Added actions to create, update, delete, and retrieve Campaigns, Ad Groups, Ads, Keywords, Budgets, and Audiences
- Added a Raw Request (REST) action for arbitrary Campaign Management REST calls
- Added inline data sources to select campaigns and ad groups
2026-04-30
Updated spectral version
2026-04-21
Fixed Add Offline Conversions Goal action where IsExternallyAttributed was placed mid-sequence in the SOAP request, causing the strict xs:sequence parser to report ConversionGoalNameNotPassed; moved the element to the end so derived OfflineConversionGoal fields follow all base ConversionGoal fields per schema inheritance order
2026-04-16
Fixed Add Offline Conversions Goal action that was entirely non-functional due to malformed SOAP request payloads, causing all calls to fail with server-side parse errors
2026-04-14
Added sandbox environment toggle to the OAuth 2.0 connection for switching between production and sandbox API endpoints
2025-04-30
Added global debug and inline data source features for enhanced debugging and data selection capabilities