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-19T11:05:41.88+00:00

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.

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.