Hi
I am unable to get Display Network Data for Paused campaigns via API  
v201306 although they are present in MCC console. Also in the console there 
are two types (Search data I don't want to pull) - Display Keyword and 
Display network.
 
I am using ReportDefinitionReportType.DISPLAY_KEYWORD_PERFORMANCE_REPORT 
but what about Display Network performance data? For active campaigns and 
add group I am getting data but not for paused or deleted.
 

var gReport = new GoogleSelectedAccountsPerformanceReport
{
        ReportName = "Adwords Report",
        AuthenticationEmail = acc.Username,
        AuthenticationPassword = 
GlobalObjects.DecryptUrl(HttpContext.Current.Server.UrlDecode(acc.AuthorizationCode)),
        DeveloperToken = 
GlobalObjects.DecryptUrl(HttpContext.Current.Server.UrlDecode(acc.AccessToken)),
        ClientCustomerId = acc.ServiceUserId,
        ReportTypes = new[] { 
ReportDefinitionReportType.DISPLAY_KEYWORD_PERFORMANCE_REPORT
        BaseFolder = baseFolder,
        StartDate = period.StartDate,
        EndDate = period.EndDate
};

 
*Defining predicate and adding to selector:*
----------------------------------------------------------------

var predicates = new List<Predicate>();
var predicate = new Predicate
{
     field = "Status",
     @operator = PredicateOperator.IN,
     values = new[] {"ACTIVE", "PAUSED", "DELETED"}
};

predicates.Add(predicate);
var selector = new Selector { fields = SelectorFields, predicates = 
predicates.ToArray() }

 
*Preparing ReportColumn array and assigning to Selector*
----------------------------------------------------------------

ReportSuffix = "_Display_Keyword_Performance_Report";
selector.fields = new[]
{
     PerformanceSelector.Date,
     PerformanceSelector.KeywordId,
     PerformanceSelector.KeywordText,
     PerformanceSelector.CampaignId,
     PerformanceSelector.CampaignName,
     PerformanceSelector.AdGroupId,
     PerformanceSelector.AdGroupName,
     PerformanceSelector.Impressions,
     PerformanceSelector.Clicks,
     PerformanceSelector.Cost,
     PerformanceSelector.AverageCpc,
     PerformanceSelector.Conversions,
     PerformanceSelector.ConversionRate,
     PerformanceSelector.CostPerConversion,
 };

 
*Adding date range for which report would be downloaded*

----------------------------------------------------------------

dates = new DateRange { min = String.Format("{0:yyyyMMdd}", StartDate), max = 
String.Format("{0:yyyyMMdd}", EndDate) };
selector.dateRange = dates;

 

*Preparing ReportDefinition*
----------------------------------------------------------------

var reportDefinition = new ReportDefinition
{
     reportName = ReportName,
     dateRangeType = ReportDefinitionDateRangeType.CUSTOM_DATE,
     includeZeroImpressions = true,
     reportType = ReportType,
     downloadFormat = DownloadFormat.XML,
     selector = selector
};

 

 

*Finally sending ReportDefinition to ReportUtilities for downloading*

--------------------------------------------------------------

var utilities = new ReportUtilities(user) { ReportVersion = "v201306" };
var report = utilities.DownloadClientReport(reportDefinition, false, FilePath);

 

 

I am completely stuck. No clue about what I am doing wrong! Please help.

 

Subrata Sarkar

 
 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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.

Reply via email to