Issue getting Campaign using GetCampaignsByAccountIdAsync RRS feed

  • Question

  • I have 2 account one of them has campaign and using below code:

                        CampaignManagementExampleHelper CMEH = new CampaignManagementExampleHelper(
                        OutputStatusMessageDefault: this.OutputStatusMessage);
                        CMEH.CampaignManagementService = new ServiceClient<ICampaignManagementService>(
                        authorizationData: authorizationData,
                        environment: environment);

                        var campaignInfo = (await CMEH.GetCampaignsByAccountIdAsync(accountID, Microsoft.BingAds.V12.CampaignManagement.CampaignType.Search,Microsoft.BingAds.V12.CampaignManagement.CampaignAdditionalField.FinalUrlSuffix));

    The issue is with the account with no campaign it returns the object as [0] which is correct for the one with campaign i am getting :

    Invalid client data. Check the SOAP fault details for more information

    Thursday, March 28, 2019 9:38 AM


All replies