您所在位置: 首页 > > 商品API
  • gome.goods.itemAd.update根据产品ID修改商品广告语

  • 简要描述
  • 系统级输入参数
  • 应用级输入参数
  • 请求示例
  • 返回结果参数
  • 返回示例
  • 异常码
  • 系统级异常码
  • API工具
  • 名称 类型 必须 描述
    $app String 应用的app_key
    $method String API接口名称
    $sign String 签名
    $token String 采用OAuth授权方式为必填参数
    $v String API协议版本,可选值:1.0.0
  • 名称 类型 必须 示例值 描述
    productId String A00001134265,A0000163452 国美产品编码的串 以英文逗号隔开,如A00001134265,A0000163452
    gift String 降 价 促 销 长期促销语长度不能超过100个字符
    phaseAdver String 短期促销语 长度不能超过100个字符
    startPhaseTime String 2011-10-26 14:15:54 促销语起始时间-(只对短期促销语)格式yyyy-MM-dd HH:mm:ss
    endPhaseTime String 2011-10-26 14:15:54 促销语的结束时间-(只对短期促销语)格式yyyy-MM-dd HH:mm:ss
  • Java


    GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
    GomeGoodsItemAdUpdateRequest request = new GomeGoodsItemAdUpdateRequest();
      //详细参数信息请参考API详情页面。
        request.setProductId("A00001134265,A0000163452");
        request.setGift("降 价 促 销");
        request.setPhaseAdver("");
        request.setStartPhaseTime("2011-10-26 14:15:54");
        request.setEndPhaseTime("2011-10-26 14:15:54");
    GomeGoodsItemAdUpdateResponse response = client.execute(request);
    System.out.println(response.getBody());


    PHP


    require_once('GmosSdk.php');
    
    $client = new GmosClient;
      $client -> appkey = "";
      $client -> secretKey = "";
      $client -> session = "";
      $client -> gatewayUrl = "";
    
      $request = new GomeGoodsItemAdUpdateRequest;
      //详细参数信息请参考API详情页面。
        $request -> setProductId("A00001134265,A0000163452");
        $request -> setGift("降 价 促 销");
        $request -> setPhaseAdver("");
        $request -> setStartPhaseTime("2011-10-26 14:15:54");
        $request -> setEndPhaseTime("2011-10-26 14:15:54");
    $response = $client -> execute($request);


    Net


    IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
    GomeGoodsItemAdUpdateRequest request = new GomeGoodsItemAdUpdateRequest();
    
    request.ProductId="A00001134265,A0000163452";
    request.Gift="降 价 促 销";
    request.PhaseAdver="";
    request.StartPhaseTime="2011-10-26 14:15:54";
    request.EndPhaseTime="2011-10-26 14:15:54";
    
    GomeGoodsItemAdUpdateResponse response = client.Execute(request);
  • 错误码 错误消息
  • 错误码 错误消息
    10001 系统错误
    10002 方法调用次数超限
    10003 当前版本的方法不存在,请检查
    10004 缺少版本参数,请指定服务方法的版本号
    10005 该应用在当前IP下禁止访问
    8224 缺少签名参数,请添加签名请求参数
    8999 存在重复的请求,请在90秒之后再请求第二次
    8225 签名无效,请按正确的算法对请求数据进行签名
    9000 字段%s不能为空
    8249 超过上传限制
    8223 无效的appKey,请使用合法的appKey(由服务提供商授予你)
    8239 需要传递accessToken参数
    8222 缺少appKey,请向服务端获取合法的appKey
    20001 令牌已过期