How the integration works
With the Microsoft Ads integration, you import your monthly ad spend from Microsoft Advertising as project expenses in Project Flow, so you can invoice it to your customers.
- A file import. Project Flow doesn't connect to Microsoft. Each month you make an Excel file with the spend per ad account and campaign, and either upload it in Project Flow or place it on Project Flow's SFTP server.
- One expense per row. Each row in the file becomes one expense on the project that has the row's ad account ID.
- One direction. Nothing is sent to Microsoft.
- Same as the other ad platforms. Facebook Ads, Google Ads, LinkedIn Ads, Snapchat Ads and DV360 work the same way, but with CSV files. They are described in their own articles.
Set up the integration
Step 1: Prepare the projects
- Create a custom field on projects, for example Microsoft Ads account ID.
- On each project that should get ad spend, fill in the customer's Microsoft Ads account ID in that field.
- One project per account ID. If several projects have the same account ID, the expense goes to the newest project.
- Use the full ID. Project Flow looks for a project whose field contains the account ID. A short ID such as
123also matches a project with91234. - Campaigns as activities (optional). If the project has an activity with exactly the same name as the campaign, the expense goes to that activity.
Step 2: Add the integration in Project Flow
- Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner). You need administrator access.
- Click + Create integration and choose Microsoft Ads (on the API tab).
- Fill in the fields below, tick Enabled and save.
| Field (EN / NB) | Description |
|---|---|
| SFTP / Upload files (Opplasting av filer) | How you deliver the files. SFTP is the default. See Step 3. |
| User name, Password / Brukernavn, Passord | Only for SFTP. Your login on Project Flow's SFTP server. Required. |
| Root folder / Rotmappe | Only for SFTP. The folder on the SFTP server where the files are delivered. Default MicrosoftAds; leave it unless it has been changed on the server. |
| Customer ID | The project custom field from Step 1. Required. |
| Expense activity / Utleggsaktivitet | The activity the expenses go to when no activity matches the campaign name. Default Imported expenses. It is created on the project if it doesn't exist. Required. |
| Book keeping account / Bokføringskonto | The bookkeeping account the expenses get. Required. |
| Make imported expenses billable / Importerte utlegg markeres som fakturerbare | Tick this to make the expenses billable. Off by default. A price model on the activity that sets imported expenses as billable decides first. |
| Surcharge, {company currency} / Påslag | Surcharge in percent on expenses in your company currency. |
| Surcharge, other currency / Påslag, annen valuta | Surcharge in percent on expenses in other currencies. |
| Coworkers to notify, Emails to notify | Only for SFTP. Who gets an e-mail when a file can't be imported. |
- Surcharge not set? Then the surcharge from the activity's price model is used.
- Project Flow plan. The integration isn't available on the Start plan. If it has a monthly cost, the form shows it.
Step 3: Choose how you deliver the files
- Upload files: you upload each month's file yourself in Project Flow (see Import the file). Simplest if you make the file by hand.
- SFTP: the file is placed on Project Flow's SFTP server, in the folder
incoming/{root folder}/parse/, and Project Flow imports it automatically. Contact Project Flow support for the SFTP details.
The file
- An Excel file (
.xlsx), for example a monthly report downloaded from Microsoft Advertising. CSV files aren't accepted for Microsoft Ads. - Named
microsoft_YYYYMM.xlsxfor the month of the spend, for examplemicrosoft_202609.xlsx. You can add text after the month:microsoft_202609_agency.xlsx. - Only the current or previous year is accepted.
- Only the first sheet is read.
Layout
- Row 10, column A must contain exactly
Month. This is the header row. Rows 1–9 are skipped. - The data starts on row 11, and Project Flow reads until the first row where column A is empty.
- All the columns below must have a value on every data row. An empty cell in one of them stops the whole file.
| Column | Content | Example |
|---|---|---|
| A | Month (only checked for not being empty) | 2026-09 |
| B | Campaign or account name | Autumn sale |
| C | Microsoft Ads account ID | 123456789 |
| D | Country code, two letters. Project Flow uses the country's currency. | NO → NOK |
| E–H | Not used | |
| I | Cost, as a number, or as text with a period as decimal separator | 3999.95 |
- Currency from the country. There is no currency column. For a country with more than one currency, Project Flow takes the first one, so check the currency on the expenses.
- Rows with cost 0 or empty are skipped.
- Account ID as text. If Excel stores the account ID as a number, it can be read with
.0at the end. Format column C as text.
Import the file
With Upload files
- Go to the expenses overview, open the cog menu and choose Import of ad provider expenses (Import av annonseleverandørutlegg). You need permission to create project expenses.
- Drag the file into Upload an ad provider file, or click to choose it. Upload one file at a time.
- Click Import. You get "All expenses registered successfully", or a message telling you what went wrong.
With SFTP
Project Flow picks up new files from the folder automatically. Imported files are moved to parsed/.
The expenses
Each row becomes one project expense:
| What | Value |
|---|---|
| Project | The project with the ad account ID |
| Activity | The activity with the campaign name, or the Expense activity |
| Title | Month and year, for example September 2026. On the expense activity: "{campaign}, September 2026" |
| Date | The last day of the month. The period is the whole month. |
| Amount | The cost, as price excluding VAT, quantity 1, in the file's currency |
| Account | The Book keeping account |
| Billable and surcharge | As set in the integration or the price model |
- No VAT is added. The cost is used as it is.
- Not updated later. If the spend changes after the import, change the expense in Project Flow. Expenses aren't deleted either.
- Each file once. A file with the same name as one already imported is rejected: "This file is already uploaded".
Check the log
Go to Company → Logs and choose the category MicrosoftAds. Each row is logged, for example "Imported expense microsoft_202609-11 into project 1001.", or why it wasn't imported.
| Message | What to do |
|---|---|
| "File name is invalid" | Name the file microsoft_YYYYMM.xlsx. |
| "Only current or previous year is allowed" | Check the year in the file name. |
| "Could not parse file" | Check that the file is an .xlsx file, that row 10 starts with Month in column A, and that columns A–D and I have a value on every data row. |
| "This file is already uploaded" | The month has been imported. See the Q&A below. |
| "Cannot find project with {field} = {account ID}" | Fill in the account ID in the custom field on the right project, and import that row again. |
| "Invalid amount" | Correct the cost in column I on that row. |
| "Invalid currency" | The country code in column D isn't a valid two-letter country code. Correct it. |
| "Not all expenses were imported from file … See more information in the company log" | Some rows were imported and some weren't. Check the log for the rows that failed. |
| "The uploaded file cannot be processed by any enabled integration" | Check the file name, and that the integration is enabled with Upload files. |
E-mail. With SFTP, the people to notify get an e-mail titled "Moment could not import data from MicrosoftAds" when a file can't be imported. Rows without a project are only in the log.
Q&A
Q: Some rows weren't imported. How do I import them?
A: The rows that worked are already in Project Flow. Fix the cause, make a new file with only the missing rows, give it a different name, for example microsoft_202609_2.xlsx, keep the first ten rows, and import it. Don't import the whole file again, or the other rows are imported twice.
Q: The expense went to the wrong project.
A: Check the custom field on your projects. The account ID must be on one project only, and be the full ID.
Q: The expenses aren't billable.
A: Tick Make imported expenses billable in the integration, or set it in the activity's price model. This only applies to new imports.
Q: Can Project Flow get the spend from Microsoft Advertising automatically?
A: No. Project Flow imports the file you deliver. With SFTP, the import itself is automatic once the file is in the folder.
Q: The spend for a month changed after the import.
A: Change the expense in Project Flow. A new file for the same month is rejected as already uploaded.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article