none
Using CID to get 95% Earning Rate RRS feed

  • Question

  • We've implemented a CID parameter into our website links to our apps on the Windows Store, hoping to get a 95% earning rate instead of 85%.  However, Microsoft Support says that we also need to "Programmatically retrieve the custom campaign ID for an app and run the intended API."  Does anyone know what this means?  We aren't sure why we need to retrieve the CID from within the app, but they say it's necessary.  Does anyone know what the "intended API" is?  Thanks in advance!
    • Edited by golddev Wednesday, October 16, 2019 3:16 PM
    Wednesday, October 16, 2019 3:13 PM

All replies

  • Hi,

    You could retrieve the campaign ID according to the document here:Programmatically retrieve the custom campaign ID for an app.

    Code example:

    StoreContext context = StoreContext.GetDefault();
    
            // Try to get the campaign ID for users with a recognized Microsoft account.
            StoreProductResult result = await context.GetStoreProductForCurrentAppAsync();
            if (result.Product != null)
            {
                StoreSku sku = result.Product.Skus.FirstOrDefault(s => s.IsInUserCollection);
    
                if (sku != null)
                {
                    return sku.CollectionData.CampaignId;
                }
            }

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, October 22, 2019 3:12 AM