Hi Edd, In order to get the campaign id out of a criterion, you'll need to make a call to the AdGroupService.
Best, - David Torres - AdWords API Team On Thursday, November 8, 2012 1:17:34 PM UTC-5, Oliver wrote: > > I'm not sure myself. I can't see anyway to get the campaign ID unless you > take the adgroup ID and use the AdgroupService as well. > > > On Thursday, November 8, 2012 12:49:01 PM UTC, erob wrote: >> >> Hi, >> >> Yes, I'm getting somewhere now :-) >> >> I have the AdGroupCriterionServiceInterface working and I can iterate >> through the AdGroupCriterion results. Also I can see that I can cast these >> objects to things like Keyword or BiddableAdGroupCriterion, to get at other >> attributes I placed in my selector, like clicks and keyword name and so on. >> >> However, it seems that from the AdGroupCriterionService I cannot get >> campaign ids? At least I can't see how I can get them, and they are not >> listed under the selectable attributes in the Selector Fields list. >> >> Is it not possible to get everything you would get in a report using >> the AdGroupCriterionService? >> >> Thanks! >> >> >> >> On Thursday, November 8, 2012 12:31:02 PM UTC, Oliver wrote: >>> >>> There are some Java examples here: >>> >>> >>> http://code.google.com/p/google-api-ads-java/source/browse/#git%2Fexamples%2Fadwords_axis%2Fsrc%2Fmain%2Fjava%2Fadwords%2Faxis%2Fv201206%2Fbasicoperations >>> >>> Oliver >>> >>> >>> On Thursday, November 8, 2012 9:58:39 AM UTC, erob wrote: >>>> >>>> Hi, >>>> >>>> What type are the objects that are returned? I can't seem to find a >>>> simple example on this (though I assume I can reuse all the same >>>> predicates >>>> / selector etc as use for the keyword report?). >>>> >>>> Cheers, >>>> Edd >>>> >>>> On Thursday, November 8, 2012 9:12:19 AM UTC, Oliver wrote: >>>>> >>>>> You can use the AdgroupCriterionService to get this data: >>>>> >>>>> >>>>> https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201209-AdGroupCriterionService >>>>> >>>>> However, 2 differences between using the above service API as opposed >>>>> to downloading adhoc reports: >>>>> >>>>> 1) Using the service API costs unit. Adhoc reports are free. >>>>> 2) Not all performance parameters are available through the service >>>>> API. >>>>> >>>>> Oliver >>>>> >>>>> >>>>> >>>>> On Wednesday, November 7, 2012 7:05:31 PM UTC, erob wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I'm just starting to use the adword api with Java. >>>>>> >>>>>> One of the things I need to do is to get the performance of certain >>>>>> keywords in our account (click, impressions etc) over a period of time >>>>>> and >>>>>> then carry out some analysis on this data. >>>>>> >>>>>> It seems to me that the prescribed way to do this is using the >>>>>> ReportDefinitionService. However, as far as I can tell the end result of >>>>>> this is that you have to choose either to receive the report in TSV, >>>>>> CSV >>>>>> or XML formats as a giant string. >>>>>> >>>>>> Then, one has to go through the effort of parsing this response so >>>>>> that you can populate your local data structures (let's say we have >>>>>> KeywordPerformance objects, where they would have clicks, impressions >>>>>> etc >>>>>> attributes). >>>>>> >>>>>> Surely there is a better way to do this using the Java client >>>>>> library? Is there no way to receive a report as a collection of Java >>>>>> objects, one object per report-row?? >>>>>> >>>>> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en