Issue Retrieving Campaign ID (cid) in Microsoft Store app

Joel 0 Reputation points
2024-11-22T09:39:02.9733333+00:00

I am encountering an issue with retrieving the CampaignId (cid) parameter programmatically in an application installed from a Microsoft Store following Create a custom app promotion campaign guide. To retrieve the CampaignId, I am using code provided in the mentioned guide, but sku.CollectionData.CampaignId is always empty.

I have tried both of url formats:

Unfortunately, neither of them worked.

The application was published via Package Flight and via regular publishing with Direct Link availability mode. Tested both on Win10 and Win11 PCs.

I would greatly appreciate guidance on how to resolve this issue.

Thanks in advance for your assistance

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

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.