ETLMCPData Conveyance Works
Log in Start free
Docs

Microsoft Advertising connector: what is synced and how

What a Microsoft Advertising sync pulls: two daily reports, the columns behind conversions and value, how far back it reaches and how many days it re-pulls.

Coming This connector is coming.

When the Microsoft Advertising connector is available, each sync asks Microsoft's Reporting API for two daily reports on the ad account you picked: the ad performance report and the campaign performance report. Your table gets one row per day and ad, with cost, impressions, clicks, conversions and conversion value, plus a campaign-level row wherever the ad rows fall short of the campaign's own totals. The conversions column is Microsoft's ConversionsQualified and conversion_value is its Revenue. A routine sync pulls the last 31 days again, so late changes Microsoft makes to recent days still reach your table. For the full list of columns and where each comes from, see the Microsoft Advertising connector reference.

What you grant

When you connect, etlmcp sends you to Microsoft's sign-in page and asks for two scopes:

  • msads.manage, the scope Microsoft's consent guide tells apps to request for access to Microsoft Advertising accounts. etlmcp asks for no other Ads scope.
  • offline_access, which the same guide says makes Microsoft include a refresh token, so scheduled syncs keep working after the short-lived access token runs out.

The connector's calls only ask who you are, list the ad accounts you can reach, and request and download reports. It makes no call that creates or changes a campaign. etlmcp asks the sign-in page to show its account selection step every time, so a browser that is already signed in to one account does not connect it without asking.

Which accounts you can choose

etlmcp lists every ad account your Microsoft user can see. Active and paused accounts can be chosen. Accounts that are inactive, drafts, pending or suspended are listed with the reason and cannot be chosen. An account that Microsoft reports in a mode other than Expert Mode cannot be chosen either. See the account picker for how the list works across platforms.

Why two reports

etlmcp does not assume that the ad report covers every campaign in full, so for each window of dates, etlmcp asks for the ad report, which gives the rows, and then the campaign report, which gives the totals. It compares the two for every campaign, day and metric:

  • If the ad rows add up to the campaign's figures, give or take rounding, you get the ad rows alone.
  • If the campaign holds more than its ad rows, the difference becomes one extra row for that campaign and day, with the ad group and ad columns empty and row_level set to campaign in the extra column.
  • If the ad rows hold more than the campaign for any metric, no remainder can be right, so the campaign's own row replaces them for that day.

Either way, for each campaign and day that the campaign report holds, the sum of your table equals what Microsoft reports for the campaign, give or take rounding. Ad rows for a campaign and day that the campaign report does not hold are kept as they are. etlmcp fills ad_name with the ad's title, else its title parts joined, else its headline.

What each figure means

  • cost is Spend, which Microsoft defines as the cost of each click added up. etlmcp records it in the ad account's currency, as a decimal amount rather than micros.
  • conversions is ConversionsQualified. Microsoft deprecated the older Conversions column in 2022 and now returns zero in it, so etlmcp never reads it. Microsoft tells developers to expect a decimal number in the qualified column, whether or not any offline conversions were attributed in part.
  • conversion_value is Revenue, the value you optionally report with your conversions. Microsoft leaves out goals set to be excluded from bidding; those appear only in its separate AllRevenue column, which etlmcp does not pull. If value from such a goal is missing from your table, that setting is the reason.
  • campaign_type lands in the extra column whenever Microsoft fills it, and ad_type does the same on ad rows.

Dates and time zone

Microsoft's Reporting guide says downloaded report data is always relative to UTC, though its column reference describes the Date column as being in the campaign's time zone. The report's time zone setting decides which date counts as today, and so what a range such as yesterday means. etlmcp sets it to London time, which is never behind UTC, and never asks for a day after today's date in UTC.

How far back a sync can reach

Microsoft keeps daily data for the ad and campaign performance reports for 36 months, according to its retention table. etlmcp refuses a range that starts before that, rather than returning empty days that would look like days without delivery. Your plan's history window may be shorter: see backfills.

How a long range is fetched

etlmcp splits a long range into windows of a fixed number of days. For each window it submits a report job, waits for Microsoft to finish building it, checking at growing intervals up to a time limit, and downloads the file once it is ready. Within a sync the jobs run one after another, never several at once. If Microsoft has not finished a report by the time limit, or reports that it could not build one, the run fails in a way etlmcp treats as able to pass, so it is retried with a fresh report request. If a report file is too large to hold, the window is cut in half and asked for again, down to a single day; see Microsoft Advertising errors for what happens when one day is still too large.

Late changes and the re-pull

Microsoft says a click can take up to two hours to reach reports and a conversion up to three, and that in rare cases adjustments for invalid traffic can take a week or more to settle. Each routine sync therefore pulls the last 31 days again and replaces them in your table. A change Microsoft makes to a day older than that reaches your table only after you backfill those days. See the trailing window for how the re-pull works on every platform.

Related

Sources

  1. Report Attributes and Performance Statistics - Microsoft Advertising API — learn.microsoft.com, checked
  2. Reporting Data Retention Time Periods - Microsoft Advertising API — learn.microsoft.com, checked
  3. Reports - Microsoft Advertising API — learn.microsoft.com, checked
  4. Request user consent - Microsoft Advertising API — learn.microsoft.com, checked