问题描述
大家好!
当我尝试将其显示的否定关键字显示为 目标VM发生异常:无效的客户端数据。请帮助我!!
Hi All!
when Im trying to get the negative keywords its showing as Exception occurred in target VM: Invalid client data. Help me please!!
GetNegativeKeywordsByEntityIdsResponse adgrpNegkwd1 = null;
GetNegativeKeywordsByEntityIdsResponse adgrpNegkwd1=null;
adgrpNegkwd1 = getNegativeKeywordsByEntityIds(msnAdGrpIds,accid);
adgrpNegkwd1 = getNegativeKeywordsByEntityIds(msnAdGrpIds, accid);
public GetNegativeKeywordsByEntityIdsResponse getNegativeKeywordsByEntityIds(ArrayOflong seAdgrpIds,Long accid){
      字符串adgrpIds ="" ;;
     试试
      {
          if(msnService!= null){
              log.info("从MSN获取部分广告组...");
              if(campaignManagement == null){
              campaignManagement =(ICampaignManagementService)msnService.getService(MsnServices.CAMPAIGN_SERVICE); // 这里我们提取服务即,devloper令牌,accountid,customerid,authtoken&刷新
令牌
              }¥b $ b               GetNegativeKeywordsByEntityIdsRequest getnegkwdsreq = new GetNegativeKeywordsByEntityIdsRequest();
                getnegkwdsreq.setEntityType(" AdGroups");
              getnegkwdsreq.setEntityIds(seAdgrpIds);
              getnegkwdsreq.setParentEntityId(accid);
               log.info("提取部分广告组从MSN完成的否定关键字");
              adGrpNegkwd1 = campaignManagement.getNegativeKeywordsByEntityIds(getnegkwdsreq); //在此行获取例外
  ;               }
             返回adGrpNegkwd1;
           }
public GetNegativeKeywordsByEntityIdsResponse getNegativeKeywordsByEntityIds(ArrayOflong seAdgrpIds,Long accid ){
String adgrpIds = "";
try
{
if(msnService != null){
log.info("Fetching Partial Adgroups From MSN...");
if(campaignManagement == null) {
campaignManagement = (ICampaignManagementService) msnService.getService(MsnServices.CAMPAIGN_SERVICE); //Here we are fetching service ie.,devloper token,accountid,customerid,authtoken&refresh tokens
}
GetNegativeKeywordsByEntityIdsRequest getnegkwdsreq = new GetNegativeKeywordsByEntityIdsRequest();
getnegkwdsreq.setEntityType("AdGroups");
getnegkwdsreq.setEntityIds(seAdgrpIds);
getnegkwdsreq.setParentEntityId(accid);
log.info("Fetching Partial Adgroups Negative keywords From MSN Completed");
adGrpNegkwd1 = campaignManagement.getNegativeKeywordsByEntityIds(getnegkwdsreq); //Getting exception at this line
}
return adGrpNegkwd1;
}
跟踪ID为:
推荐答案
请注意,如果你是将实体类型设置为AdGroup(而非广告组),则ParentEntityId应为广告系列ID(不是帐户ID)。
如果你继续观察" ; 无效的客户端数据。检查SOAP故障详细信息以获取更多信息"消息,它将帮助审查
SOAP请求和响应。有关捕获SOAP详细信息的详细信息,请参阅 疑难解答
Java应用程序。例如,我目前正在使用Spring Framework和Apache CXF Options来捕获SOAP详细信息。如果您有任何其他问题,请联系。
If you continue to observe the "Invalid client data. Check the SOAP fault details for more information" message, it will help to review the SOAP request and response. For more information about capturing the SOAP details, please see Troubleshooting Java Applications. For example I'm currently using Spring Framework and Apache CXF Options to capture the SOAP details. Please reach out if you have any other questions.
我们还有一个否定关键字示例 GitHub上的
。
我希望这有帮助!
I hope this helps!
这篇关于目标VM发生异常:无效的客户端数据。有关更多信息,请查看SOAP故障详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!