Downloading attribute / structural data

62 views
Skip to first unread message

Anurag Laddha

unread,
Jul 28, 2014, 1:25:54 AM7/28/14
to adwor...@googlegroups.com
Greetings,

Using Performance reports as listed in https://developers.google.com/adwords/api/docs/appendix/reports the only way to download attribute data for Adwords entites (Account, Campaign, Adgroup etc)? In other words to get attribute/structural data is specifying the performance reports of your choice (say CAMPAIGN_PERFORMANCE_REPORT) and fields of behavior 'Attribute' (say ExternalCustomerId,CampaignId,CampaignName,Amount,Status) the right way to go about it?

When we download only attribute values through performance reports, are the attribute values always what they are at the time of download or we can request for attribute values back in time?

How can we know through API the time at which the attribute value (eg Amount, Status) changed for some entity (eg Campaign)?

Thanks!
Anurag

Josh Radcliff (AdWords API Team)

unread,
Jul 28, 2014, 11:20:16 AM7/28/14
to adwor...@googlegroups.com
Hi,

To get attribute information you can either use the object-specific services such as CampaignServiceAdGroupService, etc., or use reports. Reporting is often preferable for the reasons outlined in our Structure Reports guide.

Fields labeled as Attribute always show the current value of the field -- please see the descriptions of the columns after the list of reports on our Report Types page.

To determine when attributes of an account have changed, you can use the CustomerSyncService. This will give you the IDs of changed objects for a given time frame, but not the changed values. If you need the history of values on your objects, you will have to utilize the CustomerSyncService in conjunction with the other services and store the history of values in a database on your side.

Cheers,
Josh, AdWords API Team

Anurag Laddha

unread,
Aug 4, 2014, 2:06:00 AM8/4/14
to Josh Radcliff, adwor...@googlegroups.com
Thanks Josh.

Sorry for the late reply.

Anurag


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/ERRkB9pV62A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Moe

unread,
Aug 5, 2014, 12:42:38 AM8/5/14
to adwor...@googlegroups.com
Hi Josh,

I want to directly retrieve cost for a certain campaign using AWQL on the campaign service and output it in my program. Is that possible?

Or am I supposed to download an AdHoc report in csv format, then parse it to retrieve the cost value?!

Thanks!

Josh Radcliff (AdWords API Team)

unread,
Aug 5, 2014, 9:34:19 AM8/5/14
to adwor...@googlegroups.com
Hi,

You do not have to take the intermediate step of writing the output to a file. You can simply read and parse the input stream directly. For example, if you were using the Java client library, you could read and parse response.getInputStream(). You can take a similar approach with each of the libraries.

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