Hi All,

Can anyone let me know why im getting Missing report definition from this
Sorry for the classic ASP


Dim objXMLHTTP : set objXMLHTTP = Server.CreateObject("Msxml2.XMLHTTP.3.0")
Dim strRequest, strResult, strFunction, strURL, strNamespace
strURL = "https://adwords.google.com/api/adwords/reportdownload/v201406";


SOAPRequest = "__rdxml="
SOAPRequest2 = "<reportDefinition>" _
& "              <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>" 

SOAPRequest2 = Server.URlEncode(SOAPRequest2)
SOAPRequest = SOAPRequest & SOAPRequest2
objXMLHTTP.open "POST", "" & strURL & "", False

objXMLHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objXMLHTTP.setRequestHeader "Content-Length", Len(SOAPRequest)
objXMLHTTP.setRequestHeader "clientCustomerId", "XXXX"
objXMLHTTP.setRequestHeader "Authorization", "OAuth XXXX"
objXMLHTTP.setRequestHeader "SOAPAction", 
"https://adwords.google.com/api/adwords/reportdownload/v201406";

Call objXMLHTTP.send(SOAPRequest)
strResult = objXMLHTTP.responseText

response.write strResult

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to