Get Started | Ad Manager API - Google Developers
文章推薦指數: 80 %
Developers can use the Google Ad Manager API to build applications that manage inventory, create orders, pull reports, and more. The Ad ...
Google
AdManager
API
English
BahasaIndonesia
Deutsch
Español
Français
Português–Brasil
Русский
中文–简体
日本語
한국어
Signin
Guides
Reference
Samples
Support
Google
AdManager
API
Guides
Reference
Samples
Support
GetStarted
Authentication
PQLGuide
ThirdParties
BasicConcepts
HowTo
Reports
Forecasts
Native
Programmatic
BestPractices
TestNetworksvs.Production
Home
Products
AdManager
API
Sendfeedback
GetStarted
Stayorganizedwithcollections
Saveandcategorizecontentbasedonyourpreferences.
DeveloperscanusetheGoogleAdManagerAPItobuildapplicationsthat
manageinventory,createorders,pullreports,andmore.
TheAdManagerAPIusesSOAP;tohelpyougetstarted,weofferclientlibrariesforJava,.NET,Python,PHP,andRuby.To
makeyourfirstAPIrequest,followthestepsbelow.
GetaccesstoanAdManagernetwork
Ifyoudon'talreadyhaveone,signupforanAdManager
account.Youcanalsocreateatestnetworkif
youwanttotesttheAPIinaseparateenvironment.Notethatyoudonotneed
anAdSenseaccountfortestpurposes.
Makeanoteofyournetworkcode.You'llfindthisintheURLwhenyouare
loggedintoyournetwork.Forexample,intheURL
https://admanager.google.com/1234#home,1234isyour
networkcode.
ByusingtheAdManagerAPIyouagreetotheTerms
ofService.
Createauthenticationcredentials
YoumustauthenticateallAdManagerAPIrequestsusingOAuth2.Thesteps
belowcoverthesimpleusecaseofaccessingyourownAdManagerdata.
Formoredetailsandotheroptions,seeAuthentication.
OpentheGoogleAPIConsoleCredentialspage.
Fromtheprojectmenu,chooseCreateproject,enteranameforthe
project,andoptionally,edittheprovidedProjectID.Click
Create.
OntheCredentialspage,selectCreatecredentials,then
selectServiceaccountkey.
SelectNew
serviceaccount,andselectJSONasthekeytype.
ClickCreatetodownloadafilecontainingaprivatekey.
ConfigureyourAdManagernetwork
Sign
intoGoogleAdManager.
Inthesidebar,clickAdmin>Globalsettings.
UnderGeneralsettings>Apiaccessclickthesliderto
Enabled.
ClicktheSavebuttonatthebottomofthepage.
Setupyourclient
DownloadoneoftheAdManagerclient
libraries.Thelibrariesofferwrapperfunctionsandfeaturesthatmakeit
easierandfastertodevelopapplications.
Thetabsbelowprovidequickstartsforcodingineachofthelanguagesfor
whichthereisaclientlibrary.
Java
HereisabasicexamplethatshowshowtousetheJavaclient
library.Formoredetailedusageinformation,referto
theREADME
fileintheclientlibrarydistribution.
Setupyourcredentials
Runthefollowingcommandinashell:
curlhttps://raw.githubusercontent.com/googleads/googleads-java-lib/master/examples/admanager_axis/src/main/resources/ads.properties-o~/ads.properties
Openthe~/ads.propertiesfileandpopulatethefollowingfields:
[...]
api.admanager.applicationName=INSERT_APPLICATION_NAME_HERE
api.admanager.jsonKeyFilePath=INSERT_PATH_TO_JSON_KEY_FILE_HERE
api.admanager.networkCode=INSERT_NETWORK_CODE_HERE
[...]
Specifydependencies
Edityourpom.xmlfileandaddthefollowingtothe
dependenciestag.Youcanfindthelatestversionnumberon
Github.
延伸文章資訊
- 1Manage Multiple Google Ads Client Accounts with Ease
Previously known as My Client Center (MCC), manager accounts can help you manage multiple account...
- 2Get Started | Ad Manager API - Google Developers
Developers can use the Google Ad Manager API to build applications that manage inventory, create ...
- 3Google Ads 大整併,三大工具整合平台登場 - 潮網科技
Google Ad Manager 提供單一平台,用在受眾群體參與的任何地方投放、衡量和優化廣告,包括聯網電視、加速移動頁面(AMP)、行動遊戲和其他應用,及YouTube和Apple新聞等平台...
- 4設定Google Ad Manager 整合- Analytics (分析)說明
Google Ad Manager 是全方位的代管廣告放送平台,無論您要在網站、行動網頁、行動應用程式、遊戲或多種管道中放送廣告,這個平台都能簡化您的廣告管理流程。在整合Ad ...
- 5Google Ad Manager
to continue to Google Ad Manager. Email or phone. Forgot email? CAPTCHA image of text used to dis...