本文介绍了SetTargetToCampaignRequest:ReplaceAssociation = true被忽略了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我正在尝试使用Bing Ads API(Java客户端)覆盖广告系列的目标。我正在使用SetTargetToCampaignRequest,并将ReplaceAssociation设置为true。但我仍然得到错误"目标已经与实体相关联"。 (1427)。
我做错了什么?
b

跟踪ID:3408f1e1-8dd6-45dd-ad7b-18c9974c0808



Markus

Hello,

I am trying to overwrite the target of a campaign using the Bing Ads API (Java client). I am using SetTargetToCampaignRequest with ReplaceAssociation set to true. But I still get the error "A target is already associated with the entity" (1427). What am I doing wrong?

Tracking-ID: 3408f1e1-8dd6-45dd-ad7b-18c9974c0808

Markus

推荐答案

我无法使用Campaign重现问题管理服务版本9或10.这是一个有效的V10 SOAP请求。

I am not able to repro the issue using Campaign Management service version 9 or 10. Here is a working V10 SOAP request.

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:ApplicationToken i:nil="true" xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
    <h:AuthenticationToken xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">***</h:AuthenticationToken>
    <h:CustomerAccountId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">***</h:CustomerAccountId>
    <h:CustomerId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">***</h:CustomerId>
    <h:DeveloperToken xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">***</h:DeveloperToken>
    <h:Password i:nil="true" xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
    <h:UserName i:nil="true" xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
  </s:Header>
  <s:Body>
    <SetTargetToCampaignRequest xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
      <CampaignId>***</CampaignId>
      <TargetId>***</TargetId>
      <ReplaceAssociation>true</ReplaceAssociation>
    </SetTargetToCampaignRequest>
  </s:Body>
</s:Envelope>

如果您仍然被阻止,请随时分享您的SOAP请求并以
回复。我们很高兴看一看!

If you are still blocked, please feel free to share your SOAP request and response withsupport. We would be happy to take a look!

祝你好运,

Eric


这篇关于SetTargetToCampaignRequest:ReplaceAssociation = true被忽略了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:25