Hi Eric,

Sorry for late reply.
Please find both server's response.

Thanks,
chirag

On Friday, June 1, 2012 11:56:15 PM UTC+5:30, Eric Koleda wrote:
>
> My apologies again, I was parsing it as milliseconds and not seconds. That 
> does appear to be correct.
>
> Regarding my other point, it would be helpful to compare the Authorization 
> header from the server that is working with the one from the server that is 
> not working. Can you post the sanitized version of both?
>
> - Eric
>
> On Fri, Jun 1, 2012 at 1:33 PM, Chirag <chirag.ebra...@gmail.com> wrote:
>
>> Hello Eric,
>>
>> I think timestamp is correct.
>>
>> oauth_timestamp="1338338512" is refers to the Wed, 30 May 2012 00:41:52 
>> GMT
>>
>> What are the timestamps like for working requests?
>> I am not getting this. I am working with timezone 'Asia/Calcutta'.
>>
>> Thanks,
>> Chirag
>>
>>
>> On Friday, June 1, 2012 10:19:58 PM UTC+5:30, Eric Koleda wrote:
>>>
>>> Hi Chirag,
>>>
>>> My apologies, I forgot this was for report downloads, so you should only 
>>> get a log with the report request. For report requests the OAuth parameters 
>>> are passed in the Authorization header.  The value of the timestamp used 
>>> seems to be wrong:
>>>
>>> oauth_timestamp="1338338512"
>>>
>>> This corresponds to Fri Jan 16 1970 06:45:38 GMT-0500 (EST), which is 
>>> not correct.  What are the timestamps like for working requests?
>>>
>>> Best,
>>> - Eric
>>>
>>> On Fri, Jun 1, 2012 at 12:32 PM, Chirag <chirag.ebra...@gmail.com>wrote:
>>>
>>>> Hello Eric,
>>>>
>>>> Thanks for reply.
>>>> Yes i will look into date and time suggestion you mentioned.
>>>> But,for logging, I have $user->LogAll(); is set.
>>>> but i am not getting any log. I just got logs for reporting and it is 
>>>> attached.
>>>>
>>>> Thanks,
>>>> chirag
>>>>
>>>>
>>>>
>>>> On Friday, June 1, 2012 9:37:09 PM UTC+5:30, Eric Koleda wrote:
>>>>>
>>>>> Hi Chirag,
>>>>>
>>>>> It's strange that the error is only appearing on specific server 
>>>>> environments. The next step in debugging this issue would be to take a 
>>>>> look 
>>>>> at the URL the SOAP request is being made to, since the PHP client 
>>>>> library 
>>>>> appends the OAuth parameters to the URL.  If you enable SOAP XML logging 
>>>>> the URL is recorded in the logs.  Perhaps a visual inspection of the URL 
>>>>> will show a difference between the environments.
>>>>>
>>>>> One possible cause to investigate is whether the date and time is 
>>>>> configured correctly on the server. When signing the OAuth parameters the 
>>>>> current date/time is used, and if this is incorrect the AdWords API 
>>>>> server 
>>>>> may reject the request.
>>>>>
>>>>> Best,
>>>>> - Eric Koleda, AdWords API Team
>>>>>
>>>>> On Friday, June 1, 2012 2:32:08 AM UTC-4, Chirag wrote:
>>>>>>
>>>>>> Hello Danial,
>>>>>> Any update i am waiting for your reply otherwise i need to change 
>>>>>> server configuration from centOS to Ubuntu one.
>>>>>> Please note that i am using PHP client library.
>>>>>>
>>>>>> Thanks,
>>>>>> chirag
>>>>>>
>>>>>> On Monday, May 28, 2012 9:02:43 PM UTC+5:30, Danial Klimkin wrote:
>>>>>>>
>>>>>>> Hello Chirag,
>>>>>>>
>>>>>>>
>>>>>>> Are you using any of our client libraries?
>>>>>>>
>>>>>>>
>>>>>>> -Danial, AdWords API Team.
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, May 24, 2012 4:52:20 PM UTC+4, Chirag wrote:
>>>>>>>>
>>>>>>>> Hello All,
>>>>>>>>
>>>>>>>> Any special configuration required for Running OAuth 1.0a running 
>>>>>>>> succesfully?
>>>>>>>> I am trying to run one of my report download code, but it is giving 
>>>>>>>> error :
>>>>>>>>
>>>>>>>> *Error Message: <eye3-stackless title='AuthServer User Error 
>>>>>>>> OAUTH_TOKEN_HEADER_INVALID'/> 
>>>>>>>> AuthenticationError.OAUTH_TOKEN_HEADER_INVALID 
>>>>>>>> @ ; trigger:'<null>'; errorDetails:message=Invalid Header 
>>>>>>>> Service[ReportInfoService.get]*
>>>>>>>> *
>>>>>>>> *
>>>>>>>> Please note : It is only has error from few server only. This same 
>>>>>>>> file is working on my localhost setup and also from two of my server.
>>>>>>>>
>>>>>>>  -- 
>>>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~**=~=~=~=~=~=~=~=~=~
>>>> Also find us on our blog and discussion group:
>>>> http://adwordsapi.blogspot.com
>>>> http://groups.google.com/**group/adwords-api<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+unsubscribe@**googlegroups.com<adwords-api%2bunsubscr...@googlegroups.com>
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/adwords-api?hl=en<http://groups.google.com/group/adwords-api?hl=en>
>>>>
>>>
>>>  -- 
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> 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
>>
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
[Jun 04 2012 06:14:45.000000 - INFO] POST /api/adwords/reportdownload/v201109 
HTTP/1.1
User-Agent: curl, gzip
Host: adwords.google.com
Accept: */*
Accept-Encoding: gzip
Authorization: OAuth oauth_version="1.0a", oauth_nonce="oauth_nonce", 
oauth_timestamp="1338804882", oauth_consumer_key="oauth_consumer_key", 
oauth_token="oauth_token", oauth_signature_method="HMAC-SHA1", 
oauth_signature="Mz%2Fw7KJz12k9fP5xhUyPlYxkVBU%3D"
developerToken: developerToken
clientCustomerId: clientCustomerId
returnMoneyInMicros: false
Content-Length: 1762
Expect: 100-continue
Content-Type: multipart/form-data; 
boundary=----------------------------fdec9662b2c1

Parameters:
__rdxml: <?xml version="1.0"?>
<reportDefinition>
  <selector>
    <fields>AccountCurrencyCode</fields>
    <fields>CampaignId</fields>
    <fields>Impressions</fields>
    <fields>Ctr</fields>
    <fields>AverageCpc</fields>
    <fields>AverageCpm</fields>
    <fields>Cost</fields>
    <fields>AveragePosition</fields>
    <fields>InvalidClicks</fields>
    <fields>InvalidClickRate</fields>
    <fields>Conversions</fields>
    <fields>CostPerConversion</fields>
    <fields>ConversionRate</fields>
    <fields>ViewThroughConversions</fields>
    <fields>ConversionsManyPerClick</fields>
    <fields>CostPerConversionManyPerClick</fields>
    <fields>ConversionRateManyPerClick</fields>
    <fields>TotalConvValue</fields>
    <fields>ValuePerConversion</fields>
    <fields>ValuePerConversionManyPerClick</fields>
    <fields>ImpressionShare</fields>
    <fields>ExactMatchImpressionShare</fields>
    <fields>BudgetLostImpressionShare</fields>
    <fields>CampaignName</fields>
    <fields>Status</fields>
    <fields>Clicks</fields>
    <fields>QualityLostImpressionShare</fields>
    <fields>DayOfWeek</fields>
    <predicates>
      <field>Status</field>
      <operator>IN</operator>
      <values>ACTIVE</values>
    </predicates>
    <dateRange>
      <min>20120301</min>
      <max>20120531</max>
    </dateRange>
  </selector>
  <reportName>monthly_dayof_week_campaign_report #1338804882</reportName>
  <reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType>
  <dateRangeType>CUSTOM_DATE</dateRangeType>
  <downloadFormat>CSV</downloadFormat>
  <includeZeroImpressions>false</includeZeroImpressions>
</reportDefinition>

Response Code: 200
[Jun 04 2012 10:10:03.000000 - ERROR] POST /api/adwords/reportdownload/v201109 
HTTP/1.1
User-Agent: curl, gzip
Host: adwords.google.com
Accept: */*
Accept-Encoding: gzip
Authorization: OAuth oauth_version="1.0a", oauth_nonce="oauth_nonce", 
oauth_timestamp="1338784800", oauth_consumer_key="oauth_consumer_key", 
oauth_token="oauth_token", oauth_signature_method="HMAC-SHA1", 
oauth_signature="fsvldhyYcjT6lY7DSeMNVF4uH8E%3D"
developerToken: developerToken
clientCustomerId: clientCustomerId
returnMoneyInMicros: false
Content-Length: 1776
Expect: 100-continue
Content-Type: multipart/form-data; 
boundary=----------------------------8819e5bd640b

Parameters:
__rdxml: <?xml version="1.0"?>
<reportDefinition>
  <selector>
    <fields>AccountCurrencyCode</fields>
    <fields>CampaignId</fields>
    <fields>Impressions</fields>
    <fields>Ctr</fields>
    <fields>AverageCpc</fields>
    <fields>AverageCpm</fields>
    <fields>Cost</fields>
    <fields>AveragePosition</fields>
    <fields>InvalidClicks</fields>
    <fields>InvalidClickRate</fields>
    <fields>Conversions</fields>
    <fields>CostPerConversion</fields>
    <fields>ConversionRate</fields>
    <fields>ViewThroughConversions</fields>
    <fields>ConversionsManyPerClick</fields>
    <fields>CostPerConversionManyPerClick</fields>
    <fields>ConversionRateManyPerClick</fields>
    <fields>TotalConvValue</fields>
    <fields>ValuePerConversion</fields>
    <fields>ValuePerConversionManyPerClick</fields>
    <fields>ImpressionShare</fields>
    <fields>ExactMatchImpressionShare</fields>
    <fields>BudgetLostImpressionShare</fields>
    <fields>CampaignName</fields>
    <fields>Status</fields>
    <fields>Clicks</fields>
    <fields>QualityLostImpressionShare</fields>
    <fields>Week</fields>
    <predicates>
      <field>Status</field>
      <operator>IN</operator>
      <values>ACTIVE</values>
      <values>PAUSED</values>
    </predicates>
    <dateRange>
      <min>20120501</min>
      <max>20120531</max>
    </dateRange>
  </selector>
  <reportName>monthly_campaign_report #1338784800</reportName>
  <reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType>
  <dateRangeType>CUSTOM_DATE</dateRangeType>
  <downloadFormat>CSV</downloadFormat>
  <includeZeroImpressions>false</includeZeroImpressions>
</reportDefinition>

Response Code: 400
Error Message: <eye3-stackless title='AuthServer User Error 
OAUTH_TOKEN_HEADER_INVALID'/> AuthenticationError.OAUTH_TOKEN_HEADER_INVALID @ 
; trigger:'<null>'; errorDetails:message=Invalid Header 
Service[ReportInfoService.get]

Reply via email to