- DarkLight
Bing Ads Query Authentication Guide
- DarkLight
Overview
This is a step-by-step guide to creating an OAuth entry, acquiring credentials and authorising the Bing Ads Query connector for use in Matillion ETL.
Important Information
- The Bing Ads Query connector uses an OAuth for third-party authentication.
- While connector properties may differ between Cloud Data Warehouses, the authentication process remains the same.
- Most third-party apps and services that connect to Microsoft data can be setup for use in Matillion ETL through the Microsoft Azure Portal using much of the same process.
Creating an OAuth Entry in Matillion ETL
In Matillion ETL, on the top left of the screen, click Project → Manage OAuth.
Please Note
If a Bing Ads Query connector has already been added to an Orchestration Job, the Manage OAuth window may also be accessed using the following method:
- Click the connector icon to open the Properties panel at the bottom of the screen.
- Click ... next to the Authentication input, and finally click Manage in the pop-up window.
Copy the Callback URL in the field at the top of the window as this will be required in Acquiring Third-Party Credentials.
Click + in the bottom left of the window to open the Create OAuth Entry window.
Click the Service dropdown menu and select Bing Ads. Then, provide a name for the OAuth in the Name field and click OK.
On returning to the Manage OAuth window, check the list of OAuths to ensure the new entry is listed.
Please Note
This entry is Not Configured. Configuration of the OAuth entry will be discussed in Authorising for use in Matillion ETL.
Acquiring Third-Party Credentials
Navigate to the Microsoft Azure Portal. The Microsoft Azure login screen will appear immediately. Enter valid login credentials to continue. The browser will then redirect to the Microsoft Azure dashboard. Click App registrations on the Azure services menu at the top of the screen.
Please Note
If App registrations is not available on the Azure services menu, simply click More services, on the right of the menu, for a longer list of options.
On the App registrations page, click + New registrations on the menu at the top of the screen.
Now, in the Register an application window, provide details for the following fields:
- Name – provide a name for the app
- Supported account types – tick Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts
- Redirect URI (optional) – paste the Callback URL (copied from the Manage OAuth window in Matillion ETL earlier), then click Register
The browser will then redirect to the Overview window on the app's newly created dashboard. From here, copy the Application (client) ID as it will be required in Authorising for use in Matillion ETL.
Please Note
When copying the code, some browsers may add a space to the end of the code. Watch out for this as it will cause the credentials to fail.
Next, click Certificates & secrets on the sidebar on the left. Then, in the main window, click + New client secret.
The Add a client secret pop-up window will then appear. Provide details for the following fields:
- Description – provide a description of the client secret
- Expires – tick the checkbox next to when the client secret should expire, then click Add
Returning to the Certificates & secrets window, the new client secret will appear on the list in the Client secrets section. Copy the relevant client secret as it will be required in Authorising for use in Matillion ETL.
Please Note
- Make sure to copy the client secret right away as it may appear only once.
- Additionally, when copying the client secret, some browsers may add a space to the end of the code. Watch out for this as it will cause the credentials to fail.
Navigate to the Microsoft Advertising Developer Account page. The browser should automatically open on the Microsoft Advertising account dashboard. From here, copy the code next to Developer token as it will be required in Authorising for use in Matillion ETL.
Please Note
If the browser does not automatically log in to the Microsoft Advertising Developer Account, simply click Log in and enter valid login credentials to continue. Super Admin role login credentials are required.
Next, navigate to the Microsoft Advertising Developer Portal. It will open on the Campaigns page. This page's URL will contain the Customer ID (after
cid=
) followed by the Account ID (afteraid=
). Copy both codes as they will be required in Authorising for use in Matillion ETL.Example
https://ui.ads.microsoft.com/Campaign/Campaigns.m?cid=CustomerID&aid=AccountID#/customer/CustomerID/account/AccountID/overview
Authorising for Use in Matillion ETL
Return to the Manage OAuth window in Matillion ETL and click ⚙ next to the previously created OAuth entry. This will open the Configure OAuth window.
Using the codes copied from the Microsoft Azure Portal earlier, provide details for the following fields:
- Client ID – enter the Application (client) ID
- Client Secret – enter the Client secret
- Developer Token – enter the Developer Token
- Customer ID – enter the Customer ID
- Account ID – enter the Account ID, then click Next
The next window will have an Authorization link. Click the link to authorise Matillion ETL to use the acquired credentials.
The browser will then redirect to a window to confirm valid login credentials, before requesting access to data in the associated Microsoft account. Click Yes to confirm.
If all is successful, the browser will return to Matillion ETL with a window stating, "Authorization Successful".