接口文档SDK业务专题开发者工具

查询优化目标权限
全部接口
V1.1
loading

所属权限 Ads Management
请求地址 optimization_goal_permissions/get
请求方法 get

全局参数

全局参数是指每一个接口都需要使用到的参数。详情参考,代码案例参考

参数名称 参数类型
access_token 授权令牌,完成 OAuth 2.0 授权后获得,参考授权认证章节
timestamp

当前的时间戳,单位为秒,允许客户端请求最大时间误差为 300 秒。

MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳

MarketingAPI 所使用的时区为 GMT+8,例如当时间戳为 1494840119 时,表示 2017-05-15 17:21:59

nonce 随机字串标识,不超过 32 个字符,由调用方自行生成,需保证全局唯一性
fields get 接口增加 fields 字段,用于指定返回参数的字段列表,为选填字段。fields 取值范围为 get 接口返回的 list 中的字段。如不填写,则根据默认值进行返回

请求参数

标有*的参数为必填项

名称 类型 描述
account_id*
integer 广告主帐号 id,有操作权限的帐号 id,不支持代理商 id
site_set*
enum[] 投放版位集合,site_set 可传入多个值目前灰度开放中,[枚举详情]
数组最小长度 1,最大长度 255
枚举列表:{ SITE_SET_QZONE, SITE_SET_QQCLIENT, SITE_SET_MUSIC, SITE_SET_MOBILE_UNION, SITE_SET_QQCOM, SITE_SET_WECHAT, SITE_SET_MOBILE_INNER, SITE_SET_TENCENT_NEWS, SITE_SET_TENCENT_VIDEO, SITE_SET_TENCENT_KUAIBAO, SITE_SET_MOBILE_MYAPP, SITE_SET_PCQQ, SITE_SET_KANDIAN, SITE_SET_QQ_MUSIC_GAME, SITE_SET_MOMENTS, SITE_SET_KUAISHOU, SITE_SET_MINI_GAME_WECHAT, SITE_SET_MINI_GAME_QQ, SITE_SET_MOBILE_GAME, SITE_SET_MOBILE_YYB, SITE_SET_QQSHOPPING, SITE_SET_CHANNELS, SITE_SET_WECHAT_SEARCH, SITE_SET_WECHAT_PLUGIN, SITE_SET_FREETRADE, SITE_SET_QBSEARCH, SITE_SET_FREETRADE_FINDER, SITE_SET_BROWSER_MOBILE, SITE_SET_SEARCH_SCENE, SITE_SET_BROWSER_PC, SITE_SET_CHANNELS_CONTENT_PROMOTION, SITE_SET_FREETRADE_WEAPP, SITE_SET_FREETRADE_QQ }
bid_mode
enum 出价方式,
优化目标查询接口需传输出价方式才可获取是否支持“点击”优化目标,
“点击”优化目标仅支持 BID_MODE_OCPM 出价方式。,[枚举详情]
枚举列表:{ BID_MODE_OCPC, BID_MODE_OCPM }
promoted_object_type*
enum 推广目标类型,[枚举详情]
枚举列表:{ PROMOTED_OBJECT_TYPE_APP_ANDROID, PROMOTED_OBJECT_TYPE_APP_IOS, PROMOTED_OBJECT_TYPE_ECOMMERCE, PROMOTED_OBJECT_TYPE_LINK_WECHAT, PROMOTED_OBJECT_TYPE_APP_ANDROID_MYAPP, PROMOTED_OBJECT_TYPE_APP_ANDROID_UNION, PROMOTED_OBJECT_TYPE_LOCAL_ADS_WECHAT, PROMOTED_OBJECT_TYPE_QQ_BROWSER_MINI_PROGRAM, PROMOTED_OBJECT_TYPE_LINK, PROMOTED_OBJECT_TYPE_QQ_MESSAGE, PROMOTED_OBJECT_TYPE_QZONE_VIDEO_PAGE, PROMOTED_OBJECT_TYPE_ARTICLE, PROMOTED_OBJECT_TYPE_LEAD_AD, PROMOTED_OBJECT_TYPE_TENCENT_KE, PROMOTED_OBJECT_TYPE_QZONE_PAGE_ARTICLE, PROMOTED_OBJECT_TYPE_QZONE_PAGE_IFRAMED, PROMOTED_OBJECT_TYPE_QZONE_PAGE, PROMOTED_OBJECT_TYPE_APP_PC, PROMOTED_OBJECT_TYPE_MINI_GAME_WECHAT, PROMOTED_OBJECT_TYPE_MINI_GAME_QQ, PROMOTED_OBJECT_TYPE_WECHAT_OFFICIAL_ACCOUNT, PROMOTED_OBJECT_TYPE_APP_QUICK_APP, PROMOTED_OBJECT_TYPE_WECHAT_ARTICLE, PROMOTED_OBJECT_TYPE_WECHAT_PAY_COUPON }
promoted_object_id
string 推广目标 id,详见 [查询推广目标 id]
字段长度最小 0 字节,长度最大 128 字节

请求示例


curl -G 'https://api.e.qq.com/v1.1/optimization_goal_permissions/get?access_token=<ACCESS_TOKEN>&timestamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'account_id=<ACCOUNT_ID>' \
-d 'site_set=[]' 
					

应答字段

名称 类型 描述
optimization_goal_permission_list
enum[] 浅层优化目标及对应支持的深度优化目标组合,[枚举详情]
deep_behavior_optimization_goal_permission_list
struct[] 浅层优化目标及对应支持的深度优化目标行为目标组合,示例:浅层优化目标激活,深度优化行为目标支持注册,次日留存,首次付费
optimization_goal
enum 广告优化目标类型,[枚举详情]
deep_behavior_optimization_goal_list
enum[] 对应支持的深度优化行为目标组合,[枚举详情]
deep_worth_optimization_goal_permission_list
struct[] 浅层优化目标及对应支持的深度优化 ROI 目标组合,示例:浅层优化目标下单,深度优化 ROI 目标支持下单 ROI
optimization_goal
enum 广告优化目标类型,[枚举详情]
deep_worth_optimization_goal_list
enum[] 对应支持的深度优化 ROI 目标组合,[枚举详情]

应答示例

{
    "code": 0,
    "message": "",
    "message_cn": "",
    "data": {
        "optimization_goal_permission_list": [],
        "deep_behavior_optimization_goal_permission_list": [
            {
                "deep_behavior_optimization_goal_list": []
            }
        ],
        "deep_worth_optimization_goal_permission_list": [
            {
                "deep_worth_optimization_goal_list": []
            }
        ]
    }
}

可视化调试工具