Hello Michael,

The request should have post parameter named "__rdxml", I don't see you use 
this name. Also, the value needs to be url encoded.

Please consider using our client libraries instead of implementing this 
routine yourself:

  https://github.com/googleads/googleads-dotnet-lib


-Danial, AdWords API Team.



On Monday, March 16, 2015 at 6:25:25 PM UTC+3, Michael D wrote:
>
> When im sending my request im gettin the following Error:
>
> <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
> <reportDownloadError>
> <ApiError><type>
> ReportDownloadError.MISSING_PARAMETER</type>
> <trigger>Missing report definition</trigger>
> <fieldPath></fieldPath>
> </ApiError>
> </reportDownloadError>
>
> The Details on reporting 
> <https://developers.google.com/adwords/api/docs/guides/reporting> are not 
> clearly telling how it works.
>
> This is how I do it at the time. But it doesnt work. Is there any c# 
> example on how to do this? 
>
>  public string GetReport()
>         {
>             var client = new HttpClient();
>             client.DefaultRequestHeaders.Add("Authorization", "Bearer " + 
> accesToken);
>             client.DefaultRequestHeaders.Add("developerToken", 
> developerToken);
>             
> client.DefaultRequestHeaders.Add("clientCustomerId",clientCustomerId);
>
>             var request = new HttpRequestMessage(HttpMethod.Post, 
> baseAdressAdWords)
>             {
>                 Content = content
>             };
>             var response = client.SendAsync(request).Result;
>             var soapResponse = response.Content.ReadAsStringAsync().Result;
>             var streamSoapResponse = 
> response.Content.ReadAsStreamAsync().Result;
>
>             return soapResponse ;
>         }
>         private string ConstructPostRequest()
>         {
>             return String.Format(@"<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>"
>                 );
>         }
> } 
>
> Thank you very much.
>
> Regards,
>
> Michael
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dd067022-a230-4159-ae31-7f998bd8b0ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to