如何通过API暂停bingAd? [英] How to pause a bingAd via API?
问题描述
全部
我对BingAds相对较新,我有一个快速(希望)的问题。我搜索了这个论坛,找不到任何答案。有没有人知道如何通过bing API暂停广告?
I am relatively new to BingAds and I have a quick (hopefully) question. I searched this forum and could not find any answer. Does anyone know how to pause an Ad via bing API?
我正在尝试执行以下操作
I'm trying to do the following
https://adcenterapi.microsoft .com / Api / Advertiser / v8 / CampaignManagement / CampaignManagementServiceREST.svc / customer / account / campaign / adGroup / ADGROUPID / ad / status / pause?format = json& Id = ADID
https://adcenterapi.microsoft.com/Api/Advertiser/v8/CampaignManagement/CampaignManagementServiceREST.svc/customer/account/campaign/adGroup/ADGROUPID/ad/status/pause?format=json&Id=ADID
ADID和ADGROUPID是我提供的值。我总是得到500(做PUT)
Where ADID and ADGROUPID are values i provide. I always get back a 500 (doing PUT)
{" TrackingId":" 4e20311d-8660-4c78-a460-9a6d653b9c6e""" Errors":{{" Code" ;:0,"详细信息":null,"ErrorCode":"内部错误","消息":"发生内部错误。"}}}
{"TrackingId":"4e20311d-8660-4c78-a460-9a6d653b9c6e","Errors":[{"Code":0,"Detail":null,"ErrorCode":"InternalError","Message":"An internal error has occurred."}]}
哪个不是很有帮助。我知道我的标题设置正确,因为我可以进行其他bing API调用,并且它们工作正常。
Which is not very helpful. I know i have my headers set correctly, because i can do other bing API calls and they work fine.
有人知道我的休息呼叫的格式是否正确以及我是否正在通过通过Url正确地ADID或者它们是否应该通过另一种方式?
Does anyone know if the format of my rest call is correct and if I am passing the ADID correctly via Url or if they should passed another way?
谢谢
Steve
推荐答案
史蒂夫。
我没有  ;最近 尝试通过REST API暂停广告。我记得应该指定一系列AdIds,例如{" AdIds":[ADID]}。此AddCampaigns示例可能有助于比较:
I have not recently tried Pause Ads via REST API. As I recall an array of AdIds should be specified e.g. {"AdIds":[ADID]}. This AddCampaigns sample may help for comparison:
http://social.msdn.microsoft.com/Forums/en-US/5d82f349-5362-4ea6-89d6-f12dce6963ce/rest-api-and-json
我希望这有帮助!
这篇关于如何通过API暂停bingAd?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!