Ad Analytics call is failing with error "Too many fields requested." even with exactly 20 fields

Sunil Chepuri 0 Reputation points
2025-02-06T02:48:45.73+00:00

rest/adAnalytics call is failing by throwing an exception says {"message":"Too many fields requested. Maximum possible fields to request: 20","status":400}

But I'm passing only 20 fields in the call. Earlier it used to work fine I'm using version "202403"

These are the url params I was sending

?q=analytics&pivot=(value:CAMPAIGN)&accounts=List(urn%3Ali%3AsponsoredAccount%3AXXXXXXX)&timeGranularity=(value:DAILY)&dateRange=(start:(year:2024,month:11,day:06),end:(year:2025,month:02,day:07))&fields=viralPostClickJobApplyClicks,viralVideoCompletions,viralVideoFirstQuartileCompletions,viralVideoStarts,viralVideoThirdQuartileCompletions,viralVideoViews,externalWebsitePostClickConversions,externalWebsitePostViewConversions,oneClickLeadFormOpens,validWorkEmailLeads,fullScreenPlays,sends,headlineClicks,viralPostClickRegistrations,headlineImpressions,talentLeads,jobApplyClicks,jobApplications,dateRange,pivotValues&sortBy=(field:IMPRESSIONS,order:DESCENDING)

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,088 questions
Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
443 questions
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.