Skip to main content

Microsoft Bing Ads Connector

Microsoft Bing Ads Microsoft Advertising is a pay-per-click (PPC) advertising platform used to display ads based on the keywords used in a search query. The Bing Ads API provides programmatic access to Microsoft Advertising for managing large campaigns or integrating marketing with other systems.

This component allows you to add external conversions to Ads campaigns.

API Documentation

This component was built using the Bing Ads API currently utilizing v13.

Connections

OAuth 2.0

Authenticate using OAuth 2.0.

This component uses OAuth 2.0 to connect to the Microsoft Bing Ads API. Create a connection of type OAuth 2.0 to authenticate.

Prerequisites

Setup Steps

Obtain a Developer Token:

  1. Sign in with Super Admin credentials at the Microsoft Advertising Developer Portal account tab.
  2. Select the user to associate with the developer token. Typically an application only needs one universal token regardless of how many users are supported.
  3. 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.

  1. Navigate to the Azure portal - App registrations page. Sign in using either a personal Microsoft Account or a Work or School Account.
  2. Select New registration.
  3. 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.
  4. Select Register to create the application.
  5. On the app Overview page, find the Application (client) ID value and record it.
  6. Select the Add a Redirect URI link to open the Redirect URIs page. Add the callback URL: https://oauth2.integrations.acme.com/callback
  7. 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
Using the Sandbox Environment

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.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Client IDThe client ID of the registered OAuth application for Microsoft Bing Ads.
Client Secret ValueThe client secret value of the registered OAuth application for Microsoft Bing Ads.
Developer TokenThe developer token from the Account Manager account used for API authentication.
Use SandboxWhen true, uses the Microsoft Advertising sandbox environment (api.sandbox.bingads.microsoft.com) instead of production.false

Actions

Initiates the client link process to manage the accounts of another customer. Sends a link request from one customer to another customer or account.

InputCommentsDefault
Client Entity IDThe identifier of the client advertiser account or client customer to manage.
ConnectionThe Microsoft Bing Ads connection to use.
Customer Link PermissionDetermines 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 EmailThe email address of the user who created the client link request.
Inviter NameThe name of the parent customer of the user who created the client link request.
Inviter PhoneThe phone number of the user who created the client link request.
Is Bill To ClientDetermines whether the owner of the client advertiser account or the managing customer is responsible for billing payments.false
Managing Customer IDThe identifier of the customer who manages or is requesting to manage the client advertiser account.
NameThe friendly name that can be used to reference this client link. The name can contain a maximum of 40 characters.
NoteOptional message from the requestor providing context and details about the client link invitation.
Suppress NotificationDetermines 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
TypeDetermines whether the link is to a client advertiser account or a client customer.AccountLink

Add Offline Conversions Goal

Creates a new offline conversions goal.

InputCommentsDefault
Account IDThe 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
Conversion Goal NameThe 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.
Conversion Goal CategoryThe category that best describes the conversion goal. The category must be a valid Microsoft Advertising category.
Conversion Window In MinutesThe 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).
Count TypeDetermines how conversions are recorded within the chosen conversion window.All
Exclude From BiddingDetermines whether or not to exclude data otherwise related to this conversion goal from a subset of performance report columns.false
Is Enhanced Conversions EnabledDetermines whether enhanced conversions are enabled for a conversion goal.false
ScopeDetermines 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.
StatusDefines 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.
Is Externally AttributedWhen true, the offline conversion goal uses a custom attribution model and allows importing fractional credit for each MSCLKID.false
Customer IDThe identifier of the manager account (customer) the user is accessing or operating from. A user can have access to multiple manager accounts.
ConnectionThe Microsoft Bing Ads connection to use.

Apply Offline Conversions

Applies offline conversions to a Microsoft Bing Ads account.

InputCommentsDefault
Offline Conversions BodyThe JSON body that contains the offline conversions to apply to the Bing Ads account.
Customer Account IdThe 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
Customer IDThe identifier of the manager account (customer) the user is accessing or operating from. A user can have access to multiple manager accounts.
ConnectionThe Microsoft Bing Ads connection to use.

Get Account Info

Gets the identifiers, names, and numbers of accounts that are accessible from the specified customer.

InputCommentsDefault
ConnectionThe Microsoft Bing Ads connection to use.
Customer IDThe 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.

Get Customer

Gets the details of a customer.

InputCommentsDefault
ConnectionThe Microsoft Bing Ads connection to use.
Customer IDThe identifier of the customer whose information you want to get.

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.

InputCommentsDefault
ConnectionThe Microsoft Bing Ads connection to use.
Customer Name FilterA 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 NumberA nonzero positive integer that specifies the number of customers to return in the result.5

Get Linked Accounts And Customers Info

Gets the customer and account hierarchy under the specified customer.

InputCommentsDefault
ConnectionThe Microsoft Bing Ads connection to use.
Customer IDThe identifier of the customer whose hierarchy you want to get.
Only Parent AccountsDetermines 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

Raw Request

Sends a raw HTTP request to Microsoft Bing Ads.

InputCommentsDefault
Account IDThe unique identifier for the advertiser account.
ConnectionThe Microsoft Bing Ads connection to use.
Customer IDThe unique identifier for the customer.
SOAP ActionAfter selecting the Microsoft Bing API Web Service, the SOAP Action is the method or endpoint to call.
SOAP Body RequestThe 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 APIBing Ads API Version 13 includes the following web service addresses.CUSTOMER_MANAGEMENT_API

Search Accounts

Searches for accounts that match the request criteria.

InputCommentsDefault
Account IDUse this field to search the Id element of the AdvertiserAccount.
Account Life Cycle StatusUse this field to search the AccountLifeCycleStatus element of the AdvertiserAccount.
Account NameThe name to search for in the Name element of the AdvertiserAccount.
Account NumberThe number to search for in the Number element of the AdvertiserAccount.
ConnectionThe Microsoft Bing Ads connection to use.
OrderingDetermines the order of results by the specified property of an account.
Customer IDUse this field to search the Id element of the Customer.
User IDThe unique identifier for the user to search for.

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.

InputCommentsDefault
Client Account IDSearch for advertiser account ClientLink objects by the client advertiser account identifier.
Client Customer IDSearch for customer ClientLink objects by the client customer identifier.
ConnectionThe Microsoft Bing Ads connection to use.
Direct Managing Customer IDSearch 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 IDSearch 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.
OrderingDetermines the order of results by the specified property of an account.

Send User Invitation

Sends an email invitation for a user to sign up for Microsoft Advertising. The invitation limits account access and permissions.

InputCommentsDefault
Account IDAn 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.
ConnectionThe Microsoft Bing Ads connection to use.
Customer IDThe identifier of the customer this user is invited to manage. The AccountIds element determines which customer accounts the user can manage.
EmailThe email address corresponding to the user's Microsoft account. The address can contain a maximum of 100 characters.
First NameThe first name of the user. The first name is limited to 40 characters.
Last NameThe last name of the user. The last name is limited to 40 characters.
LCIDThe locale to use when sending correspondence to the user by email or postal mail.EnglishUS
Role IDThe role that the user has for each customer or list of accounts.