Hello Becky,

Can you please provide more details on the issue you are facing? Are you 
completely unable to retrieve a report or the error occurs after some time?

How do you store the token and initialize the library?


-Danial, AdWords API Team.


On Saturday, April 6, 2013 12:29:19 AM UTC+4, 
becky.ru...@hanapinmarketing.com wrote:
>
> Hi Kevin, thanks for responding!
>
> I do always update the access token as necessary; I don't have any problem 
> with that part -- and I have plenty of non-reports-related functionality 
> working consistently.  Problems happen ONLY when I am trying to download 
> reports.
>
> I am using the Ruby client library (google-adwords-api gem, version 
> 0.8.2).  The error I am getting is AuthenticationError.OAUTH_TOKEN_INVALID.
>   
>
> However, I have also tried using Ruby's HTTPClient and just doing a POST 
> request with XML, and that time I ran into 
> AuthenticationError.INVALID_USER_ID.  (Why is it expecting a user id, and 
> what would that even be?  
> This<https://developers.google.com/adwords/api/docs/guides/reporting>page 
> says nothing about a user id.)
>
> Any clarification would be greatly appreciated!
>
>
> On Friday, April 5, 2013 3:50:21 PM UTC-4, Kevin Winter (AdWords API Team) 
> wrote:
>>
>> Hi,
>>   The access_token expires in 60 minutes - are you using a 
>> newly-refreshed access_token when downloading the report?  Are you using a 
>> client library?  If so, which one?
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Friday, April 5, 2013 12:50:10 PM UTC-4, 
>> becky.ru...@hanapinmarketing.com wrote:
>>>
>>> Oh, and to clarify my last post: I am already using the offline access 
>>> permission.
>>>
>>> On Friday, April 5, 2013 12:42:03 PM UTC-4, 
>>> becky.ru...@hanapinmarketing.com wrote:
>>>>
>>>> Isn't it true, though, that OAuth2 tokens do not suffice for 
>>>> downloading reports?
>>>>
>>>> I am using the OAuth2 flow for a web application, and it works just 
>>>> fine for most account management tasks whether or not the user is online. 
>>>>  However, as soon as I try to download a report, it tells me that the 
>>>> oauth 
>>>> token is invalid.
>>>>
>>>> Am I missing something, or do I need to set up a service account?
>>>>
>>>> On Wednesday, February 13, 2013 5:07:18 PM UTC-5, Kevin Winter (AdWords 
>>>> API Team) wrote:
>>>>>
>>>>> Hi,
>>>>>   This code example shows how to use OAuth2 with a refresh 
>>>>> token<https://code.google.com/p/google-api-adwords-php/source/browse/examples/v201209/Misc/UseOAuth2.php>.
>>>>>  
>>>>>  Can I ask why you need to use a service account?  In most cases, using a 
>>>>> one-time OAuth2 flow requesting offline access is the functional 
>>>>> equivalent 
>>>>> of a service account.  Simply request an access token (using the refresh 
>>>>> token obtained in the one-time setup) each time your automated process 
>>>>> runs 
>>>>> and you should be good.
>>>>>
>>>>> - Kevin Winter
>>>>> AdWords API Team
>>>>>
>>>>> On Friday, February 8, 2013 11:58:51 AM UTC-5, Márton Gombó wrote:
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> Can someone help me with example, and/or detailed description?
>>>>>
>>>>>

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

--- 
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/groups/opt_out.


Reply via email to