MicrosoftDocs / Advertising-docs

Creative Commons Attribution 4.0 International
15 stars 59 forks source link

API not recognizing 'measurement' columns #680

Closed denisthedeveloper closed 4 years ago

denisthedeveloper commented 5 years ago

I'm sending a POST request to https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/v13/ReportingService.svc and it works ok when I include many different 'dimensions' and 'measurements' in the Columns tag of the request body. But when I include ONLY 1 dimension column (AccountName) and the columns that are marked as restricted here in the "Impression Share Performance Statistics" column (https://docs.microsoft.com/en-us/advertising/guides/reports?view=bingads-13#columnrestrictions) the API throws this error:

"[NoMeasureSelected] The specified report request does not specify measurement columns (at least one is required). Please submit a report request with the required columns for this report type, and optionally additional columns that are to be included in the report."

It looks like the API doesn't recognize these columns that I'm requesting ARE measurement columns.

These are the columns that I'm sending (part of the SOAP request body):

<AccountPerformanceReportColumn>AbsoluteTopImpressionSharePercent</AccountPerformanceReportColumn> <AccountPerformanceReportColumn>ClickSharePercent</AccountPerformanceReportColumn> <AccountPerformanceReportColumn>ImpressionSharePercent</AccountPerformanceReportColumn> <AccountPerformanceReportColumn>ExactMatchImpressionSharePercent</AccountPerformanceReportColumn> <AccountPerformanceReportColumn>ImpressionLostToBudgetPercent</AccountPerformanceReportColumn> <AccountPerformanceReportColumn>ImpressionLostToRankAggPercent</AccountPerformanceReportColumn> <AccountPerformanceReportColumn>AccountName</AccountPerformanceReportColumn>


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

eric-urban commented 5 years ago

@denisthedeveloper The service actually expects at least one non-impression share measure for these reports. We need a better message to convey this error. For now you can be assured this is by design. Thank you.

eric-urban commented 4 years ago

@denisthedeveloper the documentation is updated: "The report must include the following columns. As a general rule, each report must include at least one non-impression share attribute column and at least one performance statistics column." Thanks for your patience!