Audience Network
通過借助Audience Network,移動(dòng)發(fā)布者和開發(fā)者能夠接觸到300萬Facebook的廣告主,使其應(yīng)用和內(nèi)容實(shí)現(xiàn)盈利;當(dāng)然,F(xiàn)acebook的廣告主也能有效將自己的營銷活動(dòng)覆蓋范圍拓展到眾多的第三方平臺(tái)上,通過提高向應(yīng)用用戶投放的廣告相關(guān)性和吸引力,最大限度提升單次展示可創(chuàng)造的利潤。本期,我們將向您介紹如何通過Audience Network的數(shù)據(jù)報(bào)告API來查看您的應(yīng)用成效數(shù)據(jù)。
如何使用數(shù)據(jù)報(bào)告API?
Audience Network的數(shù)據(jù)報(bào)告API是以App Insights(應(yīng)用成效分析)的API為基礎(chǔ)。準(zhǔn)備好開始建API調(diào)用后,請(qǐng)使用下列Audience Network專用字段值:
·使用下列選項(xiàng)之一來指定要返回的指標(biāo):
·使用下列aggregateBy標(biāo)簽之一來指定聚合類型:
·或者,使用下列breakdowns標(biāo)簽之一來指定要返回的指標(biāo):
要按應(yīng)用細(xì)分申請(qǐng),請(qǐng)查看下方App Level Reporting(應(yīng)用層面報(bào)告)。在按國家/地區(qū)分類的樣本量過少的情況下,將不提供細(xì)分?jǐn)?shù)據(jù),但會(huì)顯示“REDACTED”的指標(biāo)。
舉例
您需要一個(gè)應(yīng)用驗(yàn)證碼(app access token)來查詢報(bào)告API。
·獲取單日總展示次數(shù)
使用您的應(yīng)用編號(hào)(app ID)和應(yīng)用驗(yàn)證碼(app access token)來調(diào)用下列網(wǎng)址:
https://graph.facebook.com/v2.0/<APP_ID>/app_insights/app_event/?since=1398754800&until=1407394800&summary=true&event_name=fb_ad_network_imp&aggregateBy=COUNT&access_token=<ACCESS_TOKEN>
應(yīng)產(chǎn)生如下響應(yīng):
{
"data":[
{
"time":"2014-07-20T07:00:00+0000",
"value":"1023"
},
{
"time":"2014-07-21T07:00:00+0000",
"value":"1801"
},
{
],
"summary":{
"name":"Custom Events",
"period":"daily",
"since":"2014-04-29T07:00:00+0000",
"until":"2014-08-07T07:00:00+0000"
}
}
·獲取按版位分類的單日預(yù)計(jì)收入
使用您的應(yīng)用編號(hào)(app ID)和應(yīng)用驗(yàn)證碼(app access token)來調(diào)用下列網(wǎng)址:
https://graph.facebook.com/v2.0/<APP_ID>/app_insights/app_event/?since=1398754800&until=1407394800&summary=true&event_name=fb_ad_network_revenue&aggregateBy=SUM&breakdowns[0]=placement&access_token=<ACCESS_TOKEN>
應(yīng)產(chǎn)生如下響應(yīng):
{
"data":[
{
"time":"2014-07-20T07:00:00+0000",
"value":"0.3269935",
"breakdowns":{
"placement":"698231856892493"
}
},
{
"time":"2014-07-21T07:00:00+0000",
"value":"0.7273753",
"breakdowns":{
"placement":"698231856892493"
}
},
{
"time":"2014-07-22T07:00:00+0000",
"value":"1.18529407",
"breakdowns":{
"placement":"698231856892493"
}
}
],
"summary":{
"name":"Custom Events",
"period":"daily",
"since":"2014-04-29T07:00:00+0000",
"until":"2014-08-07T07:00:00+0000"
}
}
應(yīng)用層面報(bào)告
另外一種情況是按應(yīng)用為多個(gè)應(yīng)用提取報(bào)告指標(biāo)。使用您的用戶編號(hào)、應(yīng)用編號(hào)。
(app_ids)參數(shù)和應(yīng)用驗(yàn)證碼來調(diào)用下列網(wǎng)址:
https://graph.facebook.com/v2.5/<USER_ID>/adnetworkanalytics?since=1439681777&until=1440113777&app_ids[0]=123&app_ids[1]=456&breakdowns[0]=app&since=<since_ts>&until=<until_ts>&event_name=fb_ad_network_imp&aggregateBy=COUNT&access_token=<access_token>
應(yīng)產(chǎn)生如下響應(yīng):
{
"data":[
{
"time":"2015-08-18T08:00:00+0000",
"value":"15543566",
"breakdowns":{
"app":"123"
}
},
{
"time":"2015-08-16T08:00:00+0000",
"value":"666856233",
"breakdowns":{
"app":"456"
}
},
{
"time":"2015-08-17T08:00:00+0000",
"value":"706350996",
"breakdowns":{
"app":"456"
}
},
{
"time":"2015-08-18T08:00:00+0000",
"value":"707091170",
"breakdowns":{
"app":"456"
}
},
{
"time":"2015-08-19T08:00:00+0000",
"value":"707258270",
"breakdowns":{
"app":"456"
}
},
{
"time":"2015-08-20T08:00:00+0000",
"value":"311536156",
"breakdowns":{
"app":"456"
}
}
]
}
您可以指定您希望提取指標(biāo)的應(yīng)用數(shù)量。如果您不提供應(yīng)用編號(hào)列(app ids)表,您獲得的將是您擁有查看權(quán)限的所有應(yīng)用。
常見用例
API報(bào)告常見用例之一是用于獲取每日千次展示收入(RPM)。為了計(jì)算此值,您需要執(zhí)行下列操作:
1.獲取每日總收益:用API獲取fb_ad_network_revnue的參數(shù)SUM
2.總展示次數(shù):用API獲取fb_ad_network_imp的參數(shù)COUNT
3.得出結(jié)果后,用第1步得出的每日數(shù)額除以第2步得出的數(shù)字,再乘以1000。