Hey, I tried to get some reports, but I get the following Error:
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?> <reportDownloadError> <ApiError> <type>ReportDownloadError.INVALID_PARAMETER</type> <trigger>Missing client information</trigger> <fieldPath></fieldPath> </ApiError> </reportDownloadError>" This is my code: var client = new HttpClient(); var postRequest = this.ConstructPostRequest(); var content = new StringContent(postRequest, Encoding.UTF8, "application/x-www-form-urlencoded"); client.DefaultRequestHeaders.TryAddWithoutValidation( "Authorization:", "Bearer " + accesToken); client.DefaultRequestHeaders.TryAddWithoutValidation("developerToken: ", developerToken); client.DefaultRequestHeaders.TryAddWithoutValidation("clientCustomerId: ", clientCustomerId); var request = new HttpRequestMessage(HttpMethod.Post, baseAdressAdWords) { Content = content }; var response = client.SendAsync(request).Result; var responseString = response.Content.ReadAsStringAsync().Result ; } private string ConstructPostRequest() { string xml=@"<reportDefinition xmlns=""https://adwords.google.com/api/adwords/cm/v201409""> <selector> <fields>CampaignId</fields> <fields>Id</fields> <fields>Impressions</fields> <fields>Clicks</fields> <fields>Cost</fields> <predicates> <field>Status</field> <operator>IN</operator> <values>ENABLED</values> <values>PAUSED</values> </predicates> </selector> <reportName>Custom Adgroup Performance Report</reportName> <reportType>ADGROUP_PERFORMANCE_REPORT</reportType> <dateRangeType>LAST_7_DAYS</dateRangeType> <downloadFormat>XML</downloadFormat> </reportDefinition>"; return "__rdxml="+ System.Net.WebUtility.UrlEncode(xml); } Does anyone know what Im doing wrong? Thank you very much. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/afd56775-2761-4db2-acf9-c6f3affea759%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.