返回官网

使用php 通过facebook接口创建campaigns

狒狒 2023-9-25 技术札记 210 次
1.使Facebook Developeraccess token
2.使Campaign
curl -X POST \
-F 'name=YourCampaignName' \
-F 'objective=link_clicks' \
-F 'status=ACTIVE' \
-F 'access_token=YourAccessToken' \
https://graph.facebook.com/v7.0/act_YourAdAccountId/campaigns
3.使CampaignAd Set
curl -X POST \
-F 'name=YourAdSetName' \
-F 'campaign_id=YourCampaignId' \
-F 'daily_budget=1000' \
-F 'status=ACTIVE' \
-F 'access_token=YourAccessToken' \
https://graph.facebook.com/v7.0/act_YourAdAccountId/adsets
4.使Ad SetAd
curl -X POST \
-F 'name=YourAdName' \
-F 'adset_id=YourAdSetId' \
-F 'creative={ "creative_id": YourCreativeId }' \
-F 'status=PAUSED' \
-F 'access_token=YourAccessToken' \
https://graph.facebook.com/v7.0/act_YourAdAccountId/ads
5.使
curl -X POST \
-F 'name=YourAdName' \
-F 'ad_review={ "ad_id": YourAdId, "feedback": "approve" }' \
-F 'access_token=YourAccessToken' \
https://graph.facebook.com/v7.0/act_YourAdAccountId/adreviews

发表评论

Copyright © 2016 DEWEBSTUDIO