Hi all

Im having trouble getting the the statistics of our conversion trackers 
with the api. I'm hoping someone shed some light on what I am doing wrong.

Currently I am getting successfully all of our conversion trackers using 
the ConversionTrackerService however the 'stats' field is always returned 
with a null. If I request any of the ConversionTrackerStats fields in my 
selector, I just get an error that the field is not available, (which makes 
sense since my return value is a ConversionTrackerPage). But how do I get 
statistics then?


The following is my current code in C#.


//selecter

Selector selector = new Selector();

selector.fields = new string[] { "Id"};

selector.dateRange = new DateRange();

selector.dateRange.max = aEndDate;

selector.dateRange.min = aStartDate;




//Predicate

Predicate predicate = new Predicate();

predicate.field = "Name";

predicate.@operator = PredicateOperator.EQUALS;

predicate.values = new string[] { "Inschrijving cursus" };

selector.predicates = new Predicate[] { predicate };




(user.Config as AdWordsAppConfig).ClientCustomerId = aCampaignId;

ConversionTrackerService conversionTrackerService =

(ConversionTrackerService)user.GetService(

AdWordsService.v201502.ConversionTrackerService);

ConversionTrackerPage allConversions = conversionTrackerService.get(selector
);




ConversionTrackerStats stats = allConversions.entries[0].stats;

return allConversions;


Thank you for your time

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0b3f17de-c746-4ddc-8793-e5e683cdc6b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to