LinkedIn AdAnalytics 端点
Linkedin AdAnalytics Endpoint
通过 Linkedin Marketing AdAnalytics Endpoint 工作 - 出现以下错误 URL 并且没有关于原因的在线文档 - 有人遇到过这个吗?
endpoint url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions'
错误:
b'{"serviceErrorCode":3,"message":"Missing facet","status":400}'
如果他们的意思是添加帐户或活动 ID,我在下面这样做了,编码和未编码以及以下两个错误:
url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions&account=urn:li:sponsoredAccount:982225479'
错误:
{"serviceErrorCode":0,"message":"Invalid query parameters passed to request","status":400}
编码url:
url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions&account=urn%3Ali%3AsponsoredAccount%3A982225479'
错误:
b'{"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/account]","status":403}'
您在编码中输入错误 URL。它应该是 'accounts' 而不是 'account'。给你:
url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions&accounts=urn%3Ali%3AsponsoredAccount%3A982225479'
我遇到了同样的错误:“传递给请求的查询参数无效”我在 headers 中禁用了“X-Restli-Protocol-Version”并且错误消失了
通过 Linkedin Marketing AdAnalytics Endpoint 工作 - 出现以下错误 URL 并且没有关于原因的在线文档 - 有人遇到过这个吗?
endpoint url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions'
错误:
b'{"serviceErrorCode":3,"message":"Missing facet","status":400}'
如果他们的意思是添加帐户或活动 ID,我在下面这样做了,编码和未编码以及以下两个错误:
url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions&account=urn:li:sponsoredAccount:982225479'
错误:
{"serviceErrorCode":0,"message":"Invalid query parameters passed to request","status":400}
编码url:
url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions&account=urn%3Ali%3AsponsoredAccount%3A982225479'
错误:
b'{"serviceErrorCode":100,"message":"Unpermitted fields present in PARAMETER: Data Processing Exception while processing fields [/account]","status":403}'
您在编码中输入错误 URL。它应该是 'accounts' 而不是 'account'。给你:
url = 'https://api.linkedin.com/v2/adAnalyticsV2?q=analytics&dateRange=(start:(day:1,month:1,year:2020))&timeGranularity=ALL&fields=impressions&accounts=urn%3Ali%3AsponsoredAccount%3A982225479'
我遇到了同样的错误:“传递给请求的查询参数无效”我在 headers 中禁用了“X-Restli-Protocol-Version”并且错误消失了