Hi, Unfortunately, all predicates are applied as AND. In this case, I don't think you need OR. For a click to occur, an impression has to also occur, so the set of keywords with impressions will naturally contain the elements of the set of keywords with clicks. If you simple use the impression > 0 predicate, you'll get the data you need.
- Kevin Winter AdWords API Team On Wednesday, March 28, 2012 5:40:42 AM UTC-4, mg83 wrote: > > Hello, i am pretty new to google adwords programming (in python).. > > I want to get a report about keywords statistics where impression > 0 OR > clicks > 0 > > The "OR" is the problem because it seems like there is no OR predicate > available. > > So i try to get 2 reports (one for impression > 0 and one for clicks > 0) > > I already achieved merging the reports: > > >> # getting reports and combine them to a list 'reports' > > ... >> # merge the reports list lines: >> # (the 'set' command changes the list item positions so we have to take >> care that the headers remain in first line!) >> headers = reports[0] >> reports.remove(headers) >> reports = list(set(reports)) >> reports.insert(0, headers) >> >> reports = "".join(reports) >> > > In this merged result there are still 2 different summary lines: > Now i have to find, parse, merge and sum up the TOTAL lines from both > reports > > But all this can't be the best solution.. so here is my question: > *Can somebody tell me a better solution for combining 2 keyword reports, > please?* > > What i don't understand is: why there is no OR predicate available? this > would make it so simple... > > thanks > > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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