Microsoft Ads Offline Conversions - Bing MSCLKID Tracking avatar

Microsoft Ads Offline Conversions - Bing MSCLKID Tracking

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Microsoft Ads Offline Conversions - Bing MSCLKID Tracking

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

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

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.manage scope with offline_access. Set tenant only 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

TaskWhat it does
upload_conversionsSends offline conversions by MSCLKID (ApplyOfflineConversions), one or up to 1,000 per request through conversions; larger arrays go in batches.
upload_enhanced_conversionsSame, matched on the customer's email and/or phone (SHA-256 hashed before upload), with or without an MSCLKID.
list_conversion_goalsLists the account's offline conversion goals.
get_conversion_goalReads one offline conversion goal (conversionGoalId).
create_conversion_goalCreates an offline conversion goal (conversionGoalName, goalCategory; 30-day window, count All, variable revenue).
get_upload_statusMicrosoft'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

ParameterTypeDefaultRequiredDescription
taskstring"upload_conversions"YesThe operation to perform
developerTokenstring-YesMicrosoft Advertising API developer token
clientIdstring-YesClient (application) ID of your app registration
clientSecretstring-Web appsClient secret (leave empty for a public desktop/mobile app)
refreshTokenstring-YesOAuth 2.0 refresh token (msads.manage scope)
tenantstring"common"NoIdentity tenant for the token refresh
customerIdstring-Yes (runtime)Microsoft Advertising customer (manager account) ID
accountIdstring-Yes (runtime)Microsoft Advertising ad account ID
conversionGoalIdstring-NoID of an offline conversion goal
conversionGoalNamestring-NoGoal the uploads belong to, or the name of a new goal
goalCategorystring"Purchase"NoCategory of a new goal
conversionsstring-NoJSON array of conversions: msclkid, conversionTime, conversionValue, currencyCode, email, phone, conversionName
msclkidstring-NoMicrosoft click ID from URL parameter
conversionTimestring-For uploadsWhen the conversion occurred, UTC ISO 8601, within the last 90 days
conversionValuenumber-NoMonetary value of the conversion
currencyCodestring"USD"NoISO 4217 currency code
emailstring-NoCustomer email (trimmed, lowercased, SHA-256 hashed)
phonestring-NoCustomer phone (E.164, SHA-256 hashed)
countryCodestring"US"NoCountry used to put local phone numbers into E.164
firstNamestring-NoNot sent (Microsoft takes only email and phone)
lastNamestring-NoNot sent (Microsoft takes only email and phone)
isAlreadyHashedbooleanfalseNoSet to true if email/phone are already SHA-256 hashed
webhookUrlstring-NoURL to receive results via webhook

Pricing

This actor uses pay-per-event billing:

EventWhen it is chargedPrice
Actor startOnce 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 ConversionsUpload click-based offline conversions using msclkid$0.01
Upload Enhanced ConversionsUpload conversions with hashed customer data for better matching$0.01
List Conversion GoalsList all offline conversion goals in the account$0.01
Get Conversion GoalGet details of a specific conversion goal$0.01
Create Conversion GoalCreate a new offline conversion goal in Microsoft Advertising$0.01
Get Upload StatusCheck the status of a conversion upload batch$0.01
ResultEach 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