Microsoft Advertising rest API: Why encoding of query params are not supported for the LinkedIn Ad Analytics Rest API
Why Microsoft Linked-In rest api don't support the encoding of query params ? ex: dateRange query param value is not encoded.
Refer sample request 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, all reserved characters should be encoded. It means ':' 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 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 reserved characters then getting bad request error.