I am migrating my migrating my application from Adwords API v201101 to
v201109. I am using .NET Client library.

But in keywords reports I am facing a problem. Here are the steps
which I followed and faced this issue.

1. Fetch keyword report.
2. Pause and change MaxCPC for some selected keywords based on
predefined criteria.
3. Checked the keywords status on Adwords site. (Here I am able to see
the correct status of paused keywords)
4. Fetch keyword report again.

In the fourth step I got the report but it is showing wrong status of
keywords (status that was before step 2).

Here is the code I am using to fetch the reports.

XmlDocument doc = new XmlDocument();

            AdWordsUser user = new AdWordsUser();

            ReportDefinition definition = new ReportDefinition();

            definition.reportName = "KEYWORD_PERFORMANCE_REPORT";
            definition.reportType =
ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT;
            definition.downloadFormat = DownloadFormat.XML;
            definition.dateRangeType =
ReportDefinitionDateRangeType.LAST_MONTH;

            Selector selector = new Selector();
            selector.fields = new string[] { "AccountDescriptiveName",
"ExternalCustomerId", "CampaignName", "CampaignId", "AdGroupName",
"AdGroupId", "KeywordText", "Id", "DestinationUrl", "Impressions",
"Clicks", "AverageCpc", "MaxCpc", "Cost", "Status" };

            Predicate predicate = new Predicate();
            predicate.field = "Status";
            predicate.@operator = PredicateOperator.IN;
            predicate.values = new string[] { "PAUSED", "ACTIVE" };
            selector.predicates = new Predicate[] { predicate };

            definition.selector = selector;
            definition.includeZeroImpressions = false;

            ReportUtilities rputils = new ReportUtilities(user);

            string path =
Environment.GetEnvironmentVariable("USERPROFILE") + "\\" +
Path.DirectorySeparatorChar + fileName;

            try
            {
                rputils.DownloadClientReport(definition, path);
            }
            catch (Exception exception)
            {
                throw new Utils.CustomException.CustomException("Error
generating Google report: " + exception.Message);
            }

I am getting same status in reports before and after performing pause
and MaxCPC change operation but on Adwords site I am able to see the
changes.

Please someone knows solution for this problem, please help it is
urgent...

Thanks!

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

Reply via email to