Microsoft Ads Offline Conversions - Bing MSCLKID Tracking
Pricing
from $0.01 / 1,000 results
Microsoft Ads Offline Conversions - Bing MSCLKID Tracking
Upload offline conversions to Microsoft Advertising (Bing Ads) using MSCLKID click tracking and enhanced conversions for campaign attribution. Upload conversions with MSCLKID Upload with hashed PII Conversion Goals List all conversion goals Get goal details Create new goal Check upload status
Pricing
from $0.01 / 1,000 results
Rating
0.0
(0)
Developer
The Howlers
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
13 days ago
Last modified
Categories
Features
Share
Upload offline conversions to Microsoft Advertising (Bing Ads) using MSCLKID click tracking and enhanced conversions for campaign attribution.
BYOK (Bring Your Own Key): you provide your own API credentials.
Before You Start
This actor works with your own Microsoft Advertising API access. It calls the Campaign Management API v13 (REST). You need:
- A Microsoft Advertising developer token (Developer Portal, ads.microsoft.com).
- A Microsoft Entra (Azure) app registration: its client ID, its client secret if it is a web app (leave the secret empty for a desktop/mobile app), and a refresh token issued for the
https://ads.microsoft.com/msads.managescope withoffline_access. Settenantonly if your app is single-tenant. - The customer ID (manager account) and the ad account ID the conversions belong to.
- An offline conversion goal. Create one with
create_conversion_goal(or in the Microsoft Advertising UI), then wait two hours before the first upload, as Microsoft requires.
Quick Start
Upload an offline conversion
{"task": "upload_conversions","developerToken": "YOUR_DEVELOPER_TOKEN","clientId": "YOUR_CLIENT_ID","clientSecret": "YOUR_CLIENT_SECRET","refreshToken": "YOUR_REFRESH_TOKEN","customerId": "123456789","accountId": "987654321","conversionGoalName": "Offline Purchase","msclkid": "f894f652ea334e739002f7167ab8f8e3","conversionTime": "2026-11-10T19:30:00Z","conversionValue": 120,"currencyCode": "USD"}
Tasks
| Task | What it does |
|---|---|
upload_conversions | Sends offline conversions by MSCLKID (ApplyOfflineConversions), one or up to 1,000 per request through conversions; larger arrays go in batches. |
upload_enhanced_conversions | Same, matched on the customer's email and/or phone (SHA-256 hashed before upload), with or without an MSCLKID. |
list_conversion_goals | Lists the account's offline conversion goals. |
get_conversion_goal | Reads one offline conversion goal (conversionGoalId). |
create_conversion_goal | Creates an offline conversion goal (conversionGoalName, goalCategory; 30-day window, count All, variable revenue). |
get_upload_status | Microsoft's offline conversion upload report for the last 7 days: per goal when conversionGoalId is set, else for the account. |
Uploads go to the goal named in each row's conversionName, else conversionGoalName, else the name of conversionGoalId. Each run returns one dataset item: accepted and failed counts, and every rejected conversion with Microsoft's error code.
Input Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
task | string | "upload_conversions" | Yes | The operation to perform |
developerToken | string | - | Yes | Microsoft Advertising API developer token |
clientId | string | - | Yes | Client (application) ID of your app registration |
clientSecret | string | - | Web apps | Client secret (leave empty for a public desktop/mobile app) |
refreshToken | string | - | Yes | OAuth 2.0 refresh token (msads.manage scope) |
tenant | string | "common" | No | Identity tenant for the token refresh |
customerId | string | - | Yes (runtime) | Microsoft Advertising customer (manager account) ID |
accountId | string | - | Yes (runtime) | Microsoft Advertising ad account ID |
conversionGoalId | string | - | No | ID of an offline conversion goal |
conversionGoalName | string | - | No | Goal the uploads belong to, or the name of a new goal |
goalCategory | string | "Purchase" | No | Category of a new goal |
conversions | string | - | No | JSON array of conversions: msclkid, conversionTime, conversionValue, currencyCode, email, phone, conversionName |
msclkid | string | - | No | Microsoft click ID from URL parameter |
conversionTime | string | - | For uploads | When the conversion occurred, UTC ISO 8601, within the last 90 days |
conversionValue | number | - | No | Monetary value of the conversion |
currencyCode | string | "USD" | No | ISO 4217 currency code |
email | string | - | No | Customer email (trimmed, lowercased, SHA-256 hashed) |
phone | string | - | No | Customer phone (E.164, SHA-256 hashed) |
countryCode | string | "US" | No | Country used to put local phone numbers into E.164 |
firstName | string | - | No | Not sent (Microsoft takes only email and phone) |
lastName | string | - | No | Not sent (Microsoft takes only email and phone) |
isAlreadyHashed | boolean | false | No | Set to true if email/phone are already SHA-256 hashed |
webhookUrl | string | - | No | URL to receive results via webhook |
Pricing
This actor uses pay-per-event billing:
| Event | When it is charged | Price |
|---|---|---|
| Actor start | Once when the run starts, one event per GB of memory (minimum one). At the default 256 MB of memory that is one event ($0.10) per run | $0.10 per GB |
| Upload Conversions | Upload click-based offline conversions using msclkid | $0.01 |
| Upload Enhanced Conversions | Upload conversions with hashed customer data for better matching | $0.01 |
| List Conversion Goals | List all offline conversion goals in the account | $0.01 |
| Get Conversion Goal | Get details of a specific conversion goal | $0.01 |
| Create Conversion Goal | Create a new offline conversion goal in Microsoft Advertising | $0.01 |
| Get Upload Status | Check the status of a conversion upload batch | $0.01 |
| Result | Each item written to the default dataset | $0.00001 |
Troubleshooting
"developerToken, clientId and refreshToken are required"
Add your Microsoft Advertising developer token and OAuth 2.0 credentials. A run without them stops before any API call.
"Microsoft OAuth token refresh ... failed"
invalid_grant: the refresh token expired or was revoked; sign in again to get a new one. invalid_client / AADSTS7000215: the client secret is wrong. AADSTS700025: the app is a public client, so leave clientSecret empty. AADSTS50194: the app is single-tenant, so set tenant to your tenant ID.
"InvalidCredentials" or "CustomerIdInvalid" / "AccountIdInvalid"
Check the developer token and that customerId is the manager account and accountId is the ad account ID (not the account number) the signed-in user can reach.
Conversions listed under failures
Microsoft rejected those rows (for example an unknown MSCLKID, a conversion time older than 90 days, or a goal name that does not exist). Each failure carries Microsoft's error code; the other rows were accepted. Accepted conversions show in reporting within about 6 hours.
Can I see the output format before connecting my account?
Set demoMode to true. The run returns a labeled sample shaped like real output (every item includes demo: true and a _notice field), makes no API calls and charges no task events. Your developer token and OAuth 2.0 credentials are required inputs, so the form asks for them even in Demo Mode. A run without them is rejected before it starts.
Built by John Rippy | Actor Arsenal