Microsoft Advertising rest API: Why encoding of query params are not supported for the LinkedIn Ad Analytics Rest API

Sudhakar 20 Reputation points
2024-11-19T10:56:00.59+00:00

Why below Microsoft Linkedin rest api don't expect the encoding of reserved characters for query param value ?Ex: dateRange query param value

Sample request given by the Microsoft
GET https://api.linkedin.com/rest/adAnalytics?q=statistics&pivots=List(CAMPAIGN)&dateRange=(start:(year:2021,month:1,day:1))&timeGranularity=DAILY&campaigns=List(urn:li:sponsoredCampaign:1234567)

As per the below RFC ':' should be encoded as '%3A' .
https://www.ietf.org/rfc/rfc1738.txt (Page 3)
https://www.rfc-editor.org/rfc/rfc3986#section-2.2

Refer the doc link: https://learn.microsoft.com/en-us/linkedin/marketing/integrations/ads-reporting/ads-reporting?view=li-lms-2024-01&tabs=http#statistics-finder

If we try to encode the query param value according to above RFC then getting bad request error.

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.
428 questions
Microsoft Advertising
Microsoft Advertising
A platform for Microsoft's advertising efforts designed to manage all advertising and reporting for partner advertisers. Previously known as Bing Ads and adCenter.
83 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.