Hello assaf,

1. Yes, unless the token is manually revoked. You don't need to run 
GetRefreshToken for the same account again.

2. Make sure the ads.properties file is populated will all required values. 
Also, note, you need to be logged in under your AdWords account when 
obtaining the refresh token.


-Danial, AdWords API Team.


On Tuesday, November 26, 2013 7:27:48 PM UTC+4, assaf wrote:
>
> Thank you.
> I followed the instructions and got the clientID,clientSecret and 
> RefreshToken.
> All are in place in the ads.properties.
>
> 1. Are these credentials permanent for as many API calls as I want do I 
> need to keep on running GetRefreshToken.java and changing the 
>     RefreshToken? 
> 2. I tried to run the report DownloadCriteriaReport.java and saw 
> both oAuth2Credential and session got populated with no errors.
>    When running the runExample method and passing the session as parameter 
> I get the next error - 
>    Report was not downloaded. HTTP Response Code: 400, Trigger: <null>, 
> Type: AuthenticationError.OAUTH_TOKEN_INVALID
>
>    What am I missing?
>
> Thanks.
>
> On Tuesday, November 26, 2013 11:45:45 AM UTC+2, Danial Klimkin wrote:
>>
>> Hello,
>>
>>
>> Yes, you need the "Dependency JARs for the AdWords library 1.22.0 and 
>> Apache Axis without Maven" one.
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Monday, November 25, 2013 7:29:00 PM UTC+4, assaf wrote:
>>>
>>> No special reason for avoiding the new authentication method - just 
>>> never done it before.
>>> I just need the jars so the code will compile (no Maven plugin etc).
>>>
>>> Is what I am looking for referred as "Api-Ads"?
>>> What would be what I am looking for?
>>> https://code.google.com/p/google-api-ads-java/downloads/list
>>>
>>> Thanks.
>>>
>>> On Monday, November 25, 2013 11:05:44 AM UTC+2, Danial Klimkin wrote:
>>>>
>>>> Hello assaf,
>>>>
>>>>
>>>> With the new Java library it is required to use AdWordsSession for 
>>>> credentials. Is there any reason you want to avoid it?
>>>>
>>>> As per the file part, the library provides you with the input stream 
>>>> object, you can read from it line by line if you prefer to.
>>>>
>>>>
>>>> -Danial, AdWords API Team.
>>>>
>>>>
>>>> On Friday, November 22, 2013 1:25:34 PM UTC+4, assaf wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Due to the change in the API for v201309 - Stats (cost,impressions 
>>>>> etc..) are no longer part of the regular fields fetched by the Services.
>>>>>
>>>>> I was already pointed to examples such as and other AdHoc reports.
>>>>>
>>>>> What I need is a simple *Java *example for fetching the data from the 
>>>>> report *without writing the file to the file system.*
>>>>> I need the authentication to be the same as the examples in the API 
>>>>> jar-
>>>>>
>>>>> I mean, in the same format as the standard examples provided in the 
>>>>> API jar - like - DownloadAdHocReport.java using :
>>>>>
>>>>> AdWordsUser user = new AdWordsUser(); 
>>>>>
>>>>> and not the authentication method (OfflineCredentials/Session etc.) 
>>>>>  used in -
>>>>>
>>>>> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201309/reporting/DownloadCriteriaReport.java
>>>>>
>>>>> Your help is greatly appreciated.
>>>>>
>>>>> Thank you.
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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