Issue Retrieving Campaign ID (cid) in Microsoft Store app
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:
- https://www.microsoft.com/store/apps/skype/9wzdncrfj364?cid=custom\_campaign
- ms-windows-store://pdp/?PRODUCTID=9wzdncrfj364&cid=custom_campaign
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