Microsoft Advertising rest API: Why encoding of query params are not supported for the LinkedIn Ad Analytics Rest API
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.