I'm submitting a campaign stats request. Here is my code that is
generating the error. Any help would be appreciated.
Dim xml : xml = "<soap:Envelope xmlns:soapenv=""http://
schemas.xmlsoap.org/soap/envelope/"" xmlns=""https://
adwords.google.com/api/adwords/cm/v200909""> "_
+ "<soap:Header>"_
+ "<email>" & apiEmail & "</email>"_
+ "<password>" & apiPassword & "</password>"_
+ "<userAgent>V2010 Get All Campaign Info</useragent>"_
+ "<developerToken>" & apiDevToken & "</developerToken>"_
+ "<validateOnly>true</validateOnly>"_
+ "</soap:Header>"_
+ "<soap:Body>"_
+ "<get>"_
+ "<selector>"_
+ "<ids></ids>"_
+ "<statsSelector>"_
+ "<dateRange>"_
+ "<min>20100101</min>"_
+ "<max>20100715</max>"_
+ "</dateRange>"_
+ "<startDate/>"_
+ "<endDate/>"_
+ "<network>ALL</network>"_
+ "<clicks/>"_
+ "<impressions/>"_
+ "<cost/>"_
+ "</statsSelector>"_
+ "</selector>"_
+ "</get>"_
+ "</soap:Body>"_
+ "</soap:Envelope>"
Response.Write xml
Dim URL : URL = "https://adwords.google.com/api/adwords/cm/v200909/
CampaignService"
Dim xmlHttp : Set xmlHttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlHttp.Open "POST", URL, False
xmlHttp.setRequestHeader "Content-Type", "text/xml;charset=utf-8"
xmlHttp.setRequestHeader "SOAPAction", """"
Call xmlHttp.Send(xml)
Call xmlHttp.setTimeouts(10000, 30000, 30000, 30000)
If xmlHttp.readyState <> 4 then
xmlHttp.waitForResponse 30
End If
If Err.Number <> 0 then
Response.Write = "Error loading the page..."
Else
If (xmlHttp.readyState <> 4) Or (xmlHttp.status <> 200) Then
Response.Write xmlHttp.ResponseText
xmlHttp.Abort
Else
Response.Write xmlHttp.ResponseText
End If
End If
Set xmlHttp = Nothing
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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