How do I get the campaign ID in a UWP app?

Jay 100 Reputation points
2024-09-20T05:59:49.9866667+00:00

Hi Microsoft Team,

In our app, we are fetching the campaign ID using the code provided by Microsoft, and we are getting a result like this:

CampaignId : storeBingAd_ec6594e9b0f2191046fbf10f55fb0122

The ExtendedJsonData looks like this:

{
  "productAddOns": [],
  "productId": "XXXXX",
  "skuId": "0000",
  "isActive": true,
  "isTrial": false,
  "isTrialOwnedByThisUser": false,
  "isDiscLicense": false,
  "expiration": "9999-12-31 00:00:00",
  "trialTimeRemaining": "10675199.02:48:05.477581"
}

Is this data correct? If so, could you please help us understand how to retrieve data using this campaign ID?

Ref Link:

https://learn.microsoft.com/en-us/windows/apps/publish/create-a-custom-app-promotion-campaign#code-example

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 33,366 Reputation points Microsoft Vendor
    2024-09-20T07:55:38.26+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Is this data correct?

    If there is no error code, then the extended data should be correct.

    If so, could you please help us understand how to retrieve data using this campaign ID?

    What kind of data do you want to get using the code? The code on the document is just used to get the custom campaign ID only if the customer clicked your URL with the embedded campaign ID. You could check the campaign ID to know from which URL the customer clicks and installed your app.

    If you are looking for the data about how many conversions from your URL which embedded campaign ID, please go and check the Acquisitions report.

    Besides, please note that this only works for customers on Windows 10. Customers using other operating systems can still follow the link to your app's listing, but data about those customers' activities will not be included.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.