|
@@ -198,6 +198,10 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
JSONObject unitParams = createUnitParams(token, newCampaignId, strategy, unitName, appId);
|
|
JSONObject unitParams = createUnitParams(token, newCampaignId, strategy, unitName, appId);
|
|
unitParams.remove("cpa_bid");
|
|
unitParams.remove("cpa_bid");
|
|
unitParams.put("cpa_bid", multipleBids.getCpaBid());
|
|
unitParams.put("cpa_bid", multipleBids.getCpaBid());
|
|
|
|
+ if (!Check.isNull(multipleBids.getDeepConversionBid())) {
|
|
|
|
+ unitParams.remove("deep_conversion_bid");
|
|
|
|
+ unitParams.put("deep_conversion_bid", multipleBids.getDeepConversionBid());
|
|
|
|
+ }
|
|
strategy.setCpaBid(multipleBids.getCpaBid() + "");
|
|
strategy.setCpaBid(multipleBids.getCpaBid() + "");
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
Integer unitCode = (Integer) unitCreateResult.get("code");
|
|
Integer unitCode = (Integer) unitCreateResult.get("code");
|
|
@@ -442,7 +446,12 @@ public class AiKuaishouCreateCreativeServiceImpl implements IAiKuaishouCreateCre
|
|
//创建组
|
|
//创建组
|
|
String unitName = getName(strategy.getGroupName(), strategy, createType, null, "unit", newCampaignId, appId);
|
|
String unitName = getName(strategy.getGroupName(), strategy, createType, null, "unit", newCampaignId, appId);
|
|
JSONObject unitParams = createUnitParams(token, newCampaignId, strategy, unitName, appId);
|
|
JSONObject unitParams = createUnitParams(token, newCampaignId, strategy, unitName, appId);
|
|
|
|
+ unitParams.remove("cpa_bid");
|
|
unitParams.put("cpa_bid", multipleBids.getCpaBid());
|
|
unitParams.put("cpa_bid", multipleBids.getCpaBid());
|
|
|
|
+ if (!Check.isNull(multipleBids.getDeepConversionBid())) {
|
|
|
|
+ unitParams.remove("deep_conversion_bid");
|
|
|
|
+ unitParams.put("deep_conversion_bid", multipleBids.getDeepConversionBid());
|
|
|
|
+ }
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
Map<String, Object> unitCreateResult = kuaishouInterfaceService.adUnitCreate(token.getAccessToken(), token.getAccountId(), unitParams, 1);
|
|
Integer unitCode = (Integer) unitCreateResult.get("code");
|
|
Integer unitCode = (Integer) unitCreateResult.get("code");
|
|
String unitMessage = (String) unitCreateResult.get("message");
|
|
String unitMessage = (String) unitCreateResult.get("message");
|