Hello.  We are using a C# application to retrieve report information from 
the Report API and it has been working fine for 3 months.  On June 13 it 
stopped working when making the request.  The error message is "Error 404 
Bad Request".

='AuthServer User Error INVALID_TOKEN_HEADER'/> 
QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'MY TOKEN HERE'; 
errorDetails:message=Unable to locate billing information for that 
Developer Token

 

I downloaded the sample application from the API website and ran the code 
using my authentication credentials and got the same error message.

 

I am able to authenticate and get a token.  The error occurs when calling

"HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();"

 

Here is the supporting code

 

string RequestPacket =
"<reportDefinition>" +
"<selector>" +
"<fields>CampaignName</fields>" +
"<fields>Name</fields>" +
"<fields>Date</fields>" +
"<fields>Impressions</fields>" +
"<fields>Clicks</fields>" +
"<fields>Cost</fields>" +
"<dateRange>" +
"<min>20120613</min>" +
"<max>20120628</max>" +
"</dateRange>" +
"</selector>" +
"<reportName>Adgroup_Performance_Report</reportName>" +
"<reportType>ADGROUP_PERFORMANCE_REPORT</reportType>" +
"<dateRangeType>CUSTOM_DATE</dateRangeType>" +
"<downloadFormat>XML</downloadFormat>" +
"</reportDefinition>";

 

WebRequest Request = HttpWebRequest.Create("
https://adwords.google.com/api/adwords/reportdownload/v201109";);
Request.Headers.Add("clientCustomerId: " + ClientCustomerId);
Request.Headers.Add("developerToken: " + DeveloperToken);
Request.Headers.Add("Authorization: GoogleLogin auth=" + AuthToken);
Request.Headers.Add("returnMoneyInMicros: false");
Request.Method = "POST";
Request.ContentType = "application/x-www-form-urlencoded";
using (StreamWriter writer = new StreamWriter(Request.GetRequestStream()))
{
writer.Write("__rdxml=" + HttpUtility.UrlEncode(RequestPacket));
}

HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();

 

The last line is when the error occurs.

 

I logged into my account and the Developer Token status is "Approved" and 
it hasn't changed in months.  It worked fine up until two weeks ago.


Thank you in advance,

Vince

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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

Reply via email to