Hi,
When specifying report fields you want to use the field from the *first
column* of the report fields
list<https://developers.google.com/adwords/api/docs/appendix/reports#ad-group>.
For the particular case you mentioned, you would want to use "Conversions"
as the field name.
Thanks,
Josh, AdWords API Team
On Saturday, February 15, 2014 7:50:12 PM UTC+1, Luca Fiaschi wrote:
>
> Hi all,
>
> I would like to query the number of conversions per click from a google
> adwords ADGROUP_PERFORMANCE_REPORT using the SOAP API. The
> following query (Python),
>
> # Create report definition.
> report = {
> 'reportName': 'Last 30 days ADGROUP_PERFORMANCE_REPORT',
> 'dateRangeType': 'LAST_30_DAYS',
> 'reportType': 'ADGROUP_PERFORMANCE_REPORT',
> 'downloadFormat': 'CSV',
> 'selector': {
> 'fields': ['CampaignId', 'AdGroupId', 'Id',
> 'Impressions', 'Clicks', 'Cost',
> 'Conv1PerClick',
> 'CampaignName','AdGroupName']
> },
> # Enable to get rows with zero impressions.
> 'includeZeroImpressions': 'false'}
>
> results in the following error:
>
> AdWordsReportError: HTTP code: 400, type:
> 'ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT', trigger:
> 'Conv1PerClick', field path: ''
>
>
> Google documentation (
> https://developers.google.com/adwords/api/docs/appendix/reports) seems to
> indicate that such a report should have a conv1PerClick field (I tryed also
> removing capitalization of the first letter, similar error occurs ).
>
> How do I query the ad group statistics about conversions per click???
>
> Thanks!
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
For more options, visit https://groups.google.com/groups/opt_out.