What is the most optimal way to pull account/campaign/adgroup/ad structure?

49 views
Skip to first unread message

Han Vo

unread,
Mar 17, 2017, 2:44:47 PM3/17/17
to AdWords API Forum
Hi all,
I've tried to look for the account structure report; But there doesn't seem to be one. What would be the recommended way to pull structure of an account/campaign/adgroup or ad?  I am thinking going with the regular services such as CampaignService and drill down; but looks like this would require a lot of roundtrip to Google to retrieve every details for an accou t

Thank you

Shwetha Vastrad (AdWords API Team)

unread,
Mar 17, 2017, 3:44:22 PM3/17/17
to AdWords API Forum
Hi Han,

You can use AdWords API reports to to get the structural information of your account as API services can be slow if you have a large account. 

For example, to get the details of each campaign in your account, you need to use the Campaign Performance Report as described here. You should then use other report types in a similar manner to get the details of other entities in the account. Please see the chart here which is helpful to identify the report type to be used based on the level at which you want the data to be aggregated. The examples listed here show how to download reports using the Java client library. Example code in other languages is available here

You can also consider using the AwReporting sample application which is an open-source Java framework for large-scale AdWords API reporting based on the Java AdWords API client library.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages