Skip to content

开通广告展示

此接口为特约商户的点金计划页面开通广告展示功能,可同时配置同业过滤标签,防止特约商户支付后出现同行业的广告内容。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring特约商户号
advertising_industry_filtersstring[]子商户同业过滤的同业过滤标签值
E_COMMERCE | LOVE_MARRIAGE | POTOGRAPHY | EDUCATION | FINANCE | TOURISM | SKINCARE | FOOD | SPORT | JEWELRY_WATCH | HEALTHCARE | BUSSINESS | PARENTING | CATERING | RETAIL | SERVICES | LAW | ESTATE | TRANSPORTATION | ENERGY_SAVING | SECURITY | BUILDING_MATERIAL | COMMUNICATION | MERCHANDISE | ASSOCIATION | COMMUNITY | ONLINE_AVR | WE_MEDIA | CAR | SOFTWARE | GAME | CLOTHING | INDUSTY | AGRICULTURE | PUBLISHING_MEDIA | HOME_DIGITAL 枚举值之一
php
$instance->v3->goldplan->merchants->openAdvertisingShow->patchAsync([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/goldplan/merchants/open-advertising-show')->patchAsync([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/goldplan/merchants/open-advertising-show']->patchAsync([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->goldplan->merchants->openAdvertisingShow->patch([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/goldplan/merchants/open-advertising-show')->patch([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/goldplan/merchants/open-advertising-show']->patch([
  'json' => [
    'sub_mchid' => '1900000109',
    'advertising_industry_filters' => ['string'],
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory