ValuePerConvertedClick vs ValuePerConversion in v201502, ReportDefinition, GEO report

41 views
Skip to first unread message

gutsb...@gmail.com

unread,
Mar 10, 2015, 6:29:07 PM3/10/15
to adwor...@googlegroups.com
Hello

According to the migration notes (https://developers.google.com/adwords/api/docs/guides/migration/v201502) some columns in the ReportDefinition calls were renamed
My problem now is that neither the old or new values work.

I'm using the C# libs (latest ones v18.9) and have updated the DLLs/references in my solution.

I've checked my code against the latest examples and I'm using the same examples.

What am I doing wrong please?

Code snippets

..
using Google.Api.Ads.AdWords.Lib;
using Google.Api.Ads.AdWords.Util.Reports;
using Google.Api.Ads.Common.Util.Reports;
using Google.Api.Ads.AdWords.v201409;
...
//auth stuff here
...

            ReportDefinition definition = new ReportDefinition();
            definition.reportName = FileName;
            definition.reportType = ReportDefinitionReportType.GEO_PERFORMANCE_REPORT;
            definition.downloadFormat = DownloadFormat.TSV;
            definition.dateRangeType = ReportDefinitionDateRangeType.CUSTOM_DATE;
...
//selector stuff

            selector.fields = new string[]
            {
                   ...
                    "ClickConversionRate", //Was "ConversionRate" before v201502
                   ...
             };
...
            try
            {
                ReportUtilities utilities = new ReportUtilities(user, "v201409", definition);
                using (ReportResponse reportResponse = utilities.GetResponse())
                {
                    reportResponse.Save(filePath);
                }
            }
            catch (Exception)
            {
                //our error handling
            }

Josh Radcliff (AdWords API Team)

unread,
Mar 10, 2015, 6:48:11 PM3/10/15
to adwor...@googlegroups.com
Hi,

I see from your code snippet that you are still using v201409. If you switch to v201502 then the new field names should work as described in the migration guide.

Thanks,
Josh, AdWords API Team

gutsb...@gmail.com

unread,
Mar 20, 2015, 7:47:15 AM3/20/15
to adwor...@googlegroups.com
v18.9.0 of the DLLs do not have the 2v01502 API so I can't refer to them

For example, attempting this line breaks the code

using Google.Api.Ads.AdWords.v201502;

Josh Radcliff (AdWords API Team)

unread,
Mar 20, 2015, 1:13:08 PM3/20/15
to adwor...@googlegroups.com
Hi,

You can download v18.10.0 of the .NET library if you want to use v201502.

If you don't want to upgrade the library yet, you can use v201409 and the old field name of ConversionRate. I just confirmed that this works on v201409.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages