Hi Meghana,

It seems your report definition is correct. I could not see something wrong 
with it. The error 400 you encountered was more on the connection request 
to the server. However to better investigate this, could you clarify on how 
exactly did you create the request? Also, could you provide your 
clientCustomerID? Please reply via *Reply privately to author*.

Thanks and regards,
Luis
AdWords API Team

On Friday, September 21, 2018 at 3:45:46 AM UTC+8, Meghana Boddu wrote:
>
> Hi,
> I am trying to retrieve data from Google Adwords Ad PerformanceReport.
> I am using following configurations,
> URL: 
> https://adwords.google.com/api/adwords/reportdownload/v201809
> Request Body:
> Parameters:
> __rdxml: <?xml version="1.0" encoding="UTF-8"?>
> <reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201809
> ">
> <selector>
> <fields>Date</fields>
> <fields>Impressions</fields>
> <fields>Clicks</fields>
> <fields>Cost</fields>
> <fields>Conversions</fields>
> <predicates>
>   <field>Status</field>
>   <operator>IN</operator>
>   <values>ENABLED</values>
>   <values>PAUSED</values>
> </predicates>
> </selector>
> <reportName>Custom Ad Performance Report</reportName>
> <reportType>AD_PERFORMANCE_REPORT</reportType>
> <selector>
> <dateRange>
>   <min>20180801</min>
>   <max>20180901</max>
> </dateRange>
> </selector>
> <dateRangeType>CUSTOM_DATE</dateRangeType>
> <downloadFormat>CSV</downloadFormat>
> </reportDefinition>
>
> Is there anything wrong with the above request body?
>
>
> HTTP Headers:
> developerToken: xxxxxxxxxxxxxxxxxxx
> clientCustomerId: xxx-xxx-xxx
> Authorization: Bearer <accesstoken>
> Content-Type: multipart/form-data; 
>
> I am getting below error message. I've also tried using AWQL instead of 
> XML for reportdefinition still it is returning same error.
> Response Body: 
> <HTML>
> <HEAD>
> <TITLE>Bad Request</TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> <H1>Bad Request</H1>
> <H2>Error 400</H2>
> </BODY>
> </HTML>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/26af5070-e0a6-4aa0-a913-21b3b355e149%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Meghana Boddu
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to