What service to use for fetching performance data of AdWords campaigns

16 views
Skip to first unread message

Łukasz Tarasiewicz

unread,
Jan 25, 2016, 9:03:29 AM1/25/16
to AdWords API Forum
Hello,

I've been reading the AdWords API for a while and I'm still not enirely sure what service I should use in order to fetch performance data of my AdWords campaigns.

The application will work in the read-only fashion - just fetching campaign metric data.

There are two services available - "ReportDefinitionService" and "CampaignService". 

I want to be able to fetch data like "Clicks", "Converted Clicks", etc. so I will need to use "Campaign Performance Report".

However, I'm not sure how I should access this report - is it through "ReportDefinitionService" or "CampaignService"?

I will be building a PHP application for this purpose using the Google API PHP client library. Do you perhaps know of a place where I could study some code samples for querying objects, and not mutating them?

Thanks!



Anthony Madrigal

unread,
Jan 25, 2016, 2:22:42 PM1/25/16
to AdWords API Forum
Hello,

If you would like to get performance data on your campaigns, you should use the Campaign Performance Report using the ReportDefinition.

Here is our example on how to run the report. You will just need to modify the field values to match what you want reported.

For your reference, here is how to use the CampaignService to get back some fields.

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages