Hi,

Although the *ConversionTracker* object has a *ConversionTrackerStats* 
attribute, 
if you are trying to get performance stats such as number of conversions 
for a given date range, you'll want to use reports 
<https://developers.google.com/adwords/api/docs/guides/reporting> instead. 
For example, many reports include *ConversionsManyPerClick* and 
*ConvertedClicks* fields. You can see the complete list of available 
reports here 
<https://developers.google.com/adwords/api/docs/appendix/reports>.

Thanks,
Josh, AdWords API Team

On Thursday, March 19, 2015 at 3:31:06 PM UTC-4, Annalisa Camilleri wrote:
>
> 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/fa8c0492-1ec0-40d2-a646-77052b0690bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to