linkedin-api

"Parameter 'dateRange' is required", when 'dateRange' is provided, what format should it be?

"Parameter 'dateRange' is required", when 'dateRange' is provided, what format should it be? Question: I’m trying to get some data from the following API https://api.linkedin.com/v2/adAnalyticsV2?q=analytics. Here is the code I’m using to do it def get_ad_analytics_v2(token: str) -> str: url = ‘https://api.linkedin.com/v2/adAnalyticsV2?q=analytics’ headers = { ‘Authorization’: f’Bearer {token}’, ‘cache-control’: ‘no-cache’, ‘X-Restli-Protocol-Version’: ‘2.0.0’, ‘pivot’: ‘ACCOUNT’, ‘dateRange’: …

Total answers: 2