When running the click performance report - Do you know how long it takes for the data for the gclid to be available via the API -
What i mean is, would it be possible to fetch the additional data attached to the gclid shortly after the user arrives to the website ? On Tuesday, August 26, 2014 at 3:45:10 PM UTC-5, Oscar Martinez wrote: > > Hi, > > We are developing a little report of my company's AdWords Campaigns. We > capture and save the gclid and then we would like get the Keywords, > Campaign and Ad Group from that gclid. But we get an error: > "System.Net.WebException: Error en el servidor remoto: (400)" > > One more thing, we are not sure about what kind of report should we use to > get that information from gclid. We believe it's CLICK_PERFORMANCE_REPORT > sending gclid as parameter. > > This is the code: > ReportDefinition definition = new ReportDefinition(); > definition.reportName = "Last 7 days CLICK_PERFORMANCE_REPORT"; > definition.reportType = > ReportDefinitionReportType.CLICK_PERFORMANCE_REPORT; > definition.downloadFormat = DownloadFormat.XML; > definition.dateRangeType = ReportDefinitionDateRangeType.LAST_MONTH; > definition.includeZeroImpressions = false; > // Create selector. > Selector selector = new Selector(); > selector.fields = new string[] { "ClickId" }; > Predicate predicate = new Predicate(); > predicate.field = "ClickId"; > predicate.@operator = PredicateOperator.EQUALS; > predicate.values = new string[] { "CPTLr7Po4b8CFahj7AodLX0Arg" }; > selector.predicates = new Predicate[] { predicate }; > definition.selector = selector; > definition.includeZeroImpressions = true; > (user.Config as AdWordsAppConfig).ClientCustomerId = txtCustomerId.Text; > string filePath = Path.GetTempFileName(); > try{ > // Set the customer id. > (user.Config as AdWordsAppConfig).ClientCustomerId = > txtCustomerId.Text; > ReportUtilities utilities = new ReportUtilities(user); > utilities.ReportVersion = "v201406"; > ClientReport report = utilities.GetClientReport(definition); > string reportText = report.Text; > //utilities.DownloadClientReport(definition, filePath); > } > > Thank you, > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 --- 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 adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f19f5d29-d134-448a-afd2-227cd791cf1a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.