我尝试-POST https://api.linkedin.com/v2/dmpSegments
但出现错误-
{“ serviceErrorCode”:100,“消息”:“没有足够的权限来访问: POST / dmpSegments“,”状态“:403}
我的应用确实具有rw_ads的权限。我可以成功调用一些ads api端点,例如 -邮政https://api.linkedin.com/v2/adSegmentsV2 -邮政https://api.linkedin.com/v2/adCampaignGroupsV2 -邮政https://api.linkedin.com/v2/adCampaignsV2 -邮政https://api.linkedin.com/v2/adCreativesV2
const timeout = new AbortablePromise((resolve, reject, signal) => {
setTimeout(reject, timeToLive, error);
signal.onabort = resolve;
});
Promise.resolve(fn()).then(() => {
timeout.abort();
});
预期收益public string CreateDmpSegment(string token, DmpSegmentsCreateRequest dmpSegmentsCreateRequest, ILogMessages messages)
{
NameValueCollection data = System.Web.HttpUtility.ParseQueryString("");
string url = $@"{LinkedInApiUrl}dmpSegments";
Tuple<NameValueCollection, dynamic> results = RestHelper.JsonApiPOST(url, token, dmpSegmentsCreateRequest);
if (string.Equals(results.Item1["valid"], true.ToString(), StringComparison.InvariantCultureIgnoreCase))
{
return results.Item2["X-LinkedIn-Id"];
}
UpdateErrors(LinkedInErrors.CreateDmpSegmentError, results, messages);
return null;
}
但出现错误-
{“ serviceErrorCode”:100,“ message”:“没有足够的权限访问:POST / dmpSegments”,“ status”:403}