使用API​​ V10向Campagn添加否定关键字 [英] Adding Negative Keywords to a Campagn with API V10

查看:60
本文介绍了使用API​​ V10向Campagn添加否定关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

当我使用API​​的V9为广告系列添加额外的否定关键字时,我首先会从API获取当前列表,然后进行合并我们想申请新的否定,然后调用SetNegativeKeywordsToCampaigns,这将有效地
删除旧列表并重新应用我的新合并列表

When i added extra negative keywords to a campaign with V9 of the API i would firstly go and fetch the current list from the API and then do a merge with new negatives we wanted to apply and then call SetNegativeKeywordsToCampaigns which would effectively delete the old list and re apply my new merged list

使用新的V10 API,它们看起来像是有效的使用新操作AddNegativeKeywordsToEntities,这里的文档,https://msdn.microsoft.com/en-US/library/bing-ads-campaign-management-addnegativekeywordstoentities.aspx  ;,
表示" 指定的否定关键字将附加到任何现有否定关键字.... "。因此,我目前的实现
获取完整的否定关键字列表,然后在发送Set操作之前合并在我身边,我说得对,我必须先删除该广告系列的否定关键字然后再发送Set操作?

With the new V10 API things look like they work slightly differently in that with the new operation AddNegativeKeywordsToEntities, the documentation here, https://msdn.microsoft.com/en-US/library/bing-ads-campaign-management-addnegativekeywordstoentities.aspx , says "The specified negative keywords will be appended to any existing negative keywords....". So with my current implementation of getting the complete negative keyword list and then merging on my side before sending the Set operation, am i right in saying that i would have to Delete the negative keywords for that campaign first before sending the Set operation?

此外,这可能会影响我的V10实施 - 如果我尝试发送合并列表而不首先执行删除会发生什么 - 即如果我尝试添加否定关键字广告系列中已存在否定关键字的广告系列

Also, and this may influence my V10 implementation - what would happen if i attempted to send the merged list without doing a Delete first- ie if i tried to add a negative keyword to a campaign where that negative Keyword already existed on the campaign

非常感谢提前

Giles

推荐答案

Hi Giles。

Hi Giles.

如果打算删除任何否定关键字,则必须使用DeleteNegativeKeywordsFromEntities。如果您只想附加到现有列表,则可以使用AddNegativeKeywordsToEntities。在调用AddNegativeKeywordsToEntities时,如果负
关键字已经存在(或者如果您在同一个调用中指定重复项),则服务操作将返回与该索引对应的CampaignServiceDuplicateNegativeKeyword批处理错误。其他否定关键字会成功,假设
没有其他问题。如下所示,每个否定关键字都可以独立于批次中的其他关键字失败或成功。

If the intention is to delete any negative keywords, then you must use DeleteNegativeKeywordsFromEntities. If you only want to append to an existing list you can use AddNegativeKeywordsToEntities. When calling AddNegativeKeywordsToEntities, if the negative keyword already exists (or if you specify duplicates in the same call), the service operation will return a CampaignServiceDuplicateNegativeKeyword batch error corresponding to that index. The other negative keywords would succeed, assuming there are no other issues. As shown below, each negative keyword can fail or succeed independently of the others in the batch.

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:TrackingId xmlns:h="https://bingads.microsoft.com/CampaignManagement/v10">2f4af31b-2a84-42e8-afe2-3114907bf451</h:TrackingId>
  </s:Header>
  <s:Body>
    <AddNegativeKeywordsToEntitiesResponse xmlns="https://bingads.microsoft.com/CampaignManagement/v10">
      <NegativeKeywordIds xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <IdCollection>
          <Ids xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <a:long>***70</a:long>
            <a:long>0</a:long>
          </Ids>
        </IdCollection>
      </NegativeKeywordIds>
      <NestedPartialErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <BatchErrorCollection>
          <BatchErrors>
            <BatchError>
              <Code>4345</Code>
              <Details i:nil="true" />
              <ErrorCode>CampaignServiceDuplicateNegativeKeyword</ErrorCode>
              <FieldPath i:nil="true" />
              <ForwardCompatibilityMap i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
              <Index>1</Index>
              <Message>Duplicate negative keyword are not allowed.</Message>
              <Type>BatchError</Type>
            </BatchError>
          </BatchErrors>
          <Code i:nil="true" />
          <Details i:nil="true" />
          <ErrorCode i:nil="true" />
          <FieldPath i:nil="true" />
          <ForwardCompatibilityMap i:nil="true" xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
          <Index>0</Index>
          <Message i:nil="true" />
          <Type>BatchErrorCollection</Type>
        </BatchErrorCollection>
      </NestedPartialErrors>
    </AddNegativeKeywordsToEntitiesResponse>
  </s:Body>
</s:Envelope>

我希望这有帮助!


这篇关于使用API​​ V10向Campagn添加否定关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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