Since the transition from com.google.api.adwords.v201206.cm to 
com.google.api.adwords.v201206.jaxb.cm for ReportDefinition classes.  Is 
there a simple means to translate selector fields and predicates between 
the two packages?

Currently, I seem to be faced with re-writing the references from
    com.google.api.adwords.v201206.cm.Selector selector = new Selector();
    selector.setFields(new String[] {"AdGroupId", "KeywordId", "Id", 
"Impressions", "Clicks", "Cost", "AveragePosition", "Date"});
    statusPredicate = new Predicate("Status", PredicateOperator.IN, new 
String[] {"ENABLED", "PAUSED", "DISABLED"});

to
    fields.addAll(Arrays.<String>asList(new String[] {"AdGroupId", 
"KeywordId", "Id", "Impressions", "Clicks", "Cost", "AveragePosition", 
"Date"}));
    statusPredicate = new Predicate();
    statusPredicate.setField("Status");
    statusPredicate.setOperator(PredicateOperator.IN);
    statusPredicate.getValues().add("ENABLED");
    statusPredicate.getValues().add("PAUSED");
    statusPredicate.getValues().add("DISABLED");

Perhaps I'm missing something but this seems cumbersome.

Christian

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to