1、发送post请求
curl 'https://api.e.qq.com/v1.0/ads/add?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'account_id=123456' \
-d 'adgroup_id=456789' \
-d 'adcreative_id=20589' \
-d 'ad_name=推广广告' \
-d 'configured_status=AD_STATUS_NORMAL' \
-d 'impression_tracking_url=http://miaozhen.com/track?from=tencent&aid=30304' \
-d 'click_tracking_url=http://miaozhen.com/track2?from=tencent&aid=30304' \
-d 'feeds_interaction_enabled=INTERACTION_DISABLED'
2、发送带额外参数get请求
curl –G 'https://api.e.qq.com/v1.0/advertiser/get?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'filtering=[
{
"field":"corporation_name",
"operator": "CONTAINS",
"values": ["腾讯"]
}
]'
3、发送不带额外参数get请求
curl 'https://api.e.qq.com/v1.0/advertiser/get?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>'
4、发送post json请求
curl 'https://api.e.qq.com/v1.0/user_actions/add?access_token=<ACCESS_TOKEN>×tamp=<TIMESTAMP>&nonce=<NONCE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": "<ACCOUNT_ID>",
"actions": [
{
"mobile_app_id": "MOBILE_APP_ID",
"mobile_app_type": "IOS",
"action_time": 1492998081,
"user_id": {
"hash_imei": "f9efca36a3c30e1cf28170d86ecbf5e9"
},
"action_type": "CUSTOM",
"action_param": {
"param": "value",
"product_id": [
13453,
6583
]
}
}
]
}'
登陆发表评论