ai_target_combine_handler.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import tornado
  2. import json
  3. class AiTargetCombine(tornado.web.RequestHandler):
  4. def post(self):
  5. res = {'code': 0,
  6. 'message': "SUCCESS"}
  7. data = self.request.body
  8. data = str(data, 'utf8')
  9. data = json.loads(data, encoding='utf8')
  10. # logger.info("call back of add group, the raw data from request is %s" % data)
  11. try:
  12. pass
  13. except Exception:
  14. pass
  15. # 返回接口结果
  16. self.write(json.dumps(res))
  17. self.flush()
  18. class GetTargetAndAssemblyParameters(object):
  19. def __init__(self):
  20. pass
  21. def add_campaign(self):
  22. """
  23. 新增广告计划,如果存在则跳过
  24. """
  25. pass
  26. def get_signature_and_target(self):
  27. """
  28. 从 ctop_ai_kuaishou_signature_recommended_target_combine 表中读取素材和对应的定向
  29. """
  30. pass
  31. def get_advertiser_strategy_info(self):
  32. """
  33. 从 ctop_ai_kuaishou_advertiser_strategy 读取账户的基本配置信息
  34. """
  35. pass
  36. def write_intelligence_strategy_table(self):
  37. """
  38. 拼接好的组创意的参数写入到 ctop_ai_kuaishou_intelligence_strategy 中的 ai_strategy_request_content
  39. """
  40. pass
  41. def get_target_intersection(self):
  42. """
  43. 两个表中读取的定向取交集,还是子集?
  44. """
  45. pass
  46. def assembly_group_and_creative_params(self):
  47. """
  48. 拼接参数,请求创建接口
  49. """
  50. pass