Hi, For an XML report definition, the POST request body must contain a parameter named "__rdxml" whose value is your XML report definition. Your HTTP POST request should look something like this:
HTTP HEADER: Authorization:Bearer xxxxxxxxxxxxxxxxxxxxxxxxxx clientCustomerId:xxx-xxx-xxxx Content-Type:application/x-www-form-urlencoded developerToken:xxxxxxxxxxxxxxxxxxxxxxxx Request Parameters: __rdxml: <?xml version="1.0" encoding="UTF-8"?> <reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201509"> <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>CSV</downloadFormat> </reportDefinition> Regards, Shwetha AdWords API Team. PS: You might get ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT and SelectorError.INVALID_PREDICATE_FIELD_NAME errors, because the fields "Id" and "Status" are not defined for AdGroup Performance Report. Use "AdGroupId" and "AdGroupStatus" instead. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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]. 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/db862691-b86b-4425-929b-6af2f6e0f524%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
