REST API:广告系列更新方法现在返回状态500(无正文) [英] REST API: Campaign update method now returning status 500 (no body)

查看:83
本文介绍了REST API:广告系列更新方法现在返回状态500(无正文)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周末,我开始遇到以前正在运行的代码的问题。当尝试通过REST api更新活动时,它现在返回状态500而没有其他指示出错的地方(响应正文为空)。

Over the weekend I started experiencing an issue with previously working code. When attempting to update a campaign through the REST api it is now returning a status of 500 with no other indication of what's going wrong (the response body is empty).

我正在调用REST api使用此URL:

I'm calling the REST api using this url:

https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementServiceREST.svc/customer/account/<ACCOUNT_ID>/campaign

https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementServiceREST.svc/customer/account/<ACCOUNT_ID>/campaign

以下是请求正文:

" Campaigns" ;: [{" NegativeKeywords":[]," Name":" Moines,IA","TimeZoneEnabled":真实,"TimeZone":"MountainTime_US_Canada","ConversionTrackingScript":null,"ConversionTrackingEnabled":false,"Description":"Des Moines,IA"," ; BudgetType":1," NegativeSiteUrls":
[]," Id":< CAMPAIGN_ID>," DaylightSaving":true," MonthlyBudget":" 100"" DailyBudget": " 100&q uot;}]}'

"Campaigns": [{"NegativeKeywords": [], "Name": "Des Moines, IA", "TimeZoneEnabled": true, "TimeZone": "MountainTime_US_Canada", "ConversionTrackingScript": null, "ConversionTrackingEnabled": false, "Description": "Des Moines, IA", "BudgetType": 1, "NegativeSiteUrls": [], "Id": <CAMPAIGN_ID>, "DaylightSaving": true, "MonthlyBudget": "100", "DailyBudget": "100"}]}'

这是我尝试通过PUT更新的现有广告系列。此代码在过去正常运行。

This is an existing campaign that I'm attempting to update via PUT. This code worked correctly in the past.

是否有更改的内容?我的请求有什么问题吗?请帮忙!

Is there something that has changed? Is there something wrong in my request? Help please!

谢谢,

尼克

 

 

 

推荐答案

对所有API调用都会发生这种情况。世界上到底是什么?任何人?我们拨打的每一个电话都会产生500.我们的结果没有任何改变,世界上发生了什么?

This is happening for ALL calls to the API. What in the world is going here? Anyone? Every call we make is resulting in a 500. Nothing has changed on our end, what in the WORLD is going on here?

Nick


这篇关于REST API:广告系列更新方法现在返回状态500(无正文)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆