Expiry of Refresh Token / Access Token

2021-03-13 Thread K Raza
My google ads token expired after a week.   Can I generate a long life 
token for server side app?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a07d5647-edc7-42d4-a21c-d6e1167ab970n%40googlegroups.com.


Re: Cannot pass location Id for linking GMB specific locations while creating Campaign

2021-03-13 Thread Megha Sethi
Is there any update on this ?

On Friday, 12 March 2021 at 11:27:20 UTC+5:30 Megha Sethi wrote:

> Hi there,
>
> I am focusing on using location_source_type 
> 
>  as GOOGLE_MY_BUSINESS 
> 
>  for 
> my project. 
> But my question is, Is there any way where we can select and pass specific 
> locations of GMB to get linked with a particular campaign, not all ?
>
> Regards,
> Megha
>
> On Thu, 11 Mar 2021 at 08:37, Google Ads API Forum Advisor Prod <
> adsapifor...@gmail.com> wrote:
>
>> Hello there,
>>
>> Thanks for raising this to us.
>>
>> As per this documentation 
>> 
>>  (Local 
>> campaign), when setting the location_source_type 
>> ,
>>  
>> you can either choose between GOOGLE_MY_BUSINESS 
>> 
>>  or AFFILIATE 
>> 
>> .
>>
>>- When using the GOOGLE_MY_BUSINESS 
>>
>> ,
>>  
>>locations that are setup on your GMB 
>> account are 
>>automatically linked. However, if you would want to create those 
>> locations 
>>on your GMB account, then you check on this guide 
>>
>> 
>>  or 
>>refer to this sample 
>>
>> 
>>  (Create 
>>a new location extensions feed linked to your GMB account) 
>>- When using the AFFILIATE 
>>
>> ,
>>  
>>you can check on this guide 
>>
>> 
>>  (creating 
>>Affiliate Location extensions) instead. 
>>
>> Hope this helps.
>>
>> Regards,
>> [image: Google Logo] 
>> Mark Kevin Albios 
>> Google Ads API Team 
>>   
>>  
>>
>> ref:_00D1U1174p._5004Q2DuHqg:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f6210b2e-38f4-453e-bfdb-381b3f055343n%40googlegroups.com.


repeatedly getting oauth2 error using google-ads java lib

2021-03-13 Thread Shubham Srivastava
Hi team, I'm trying to use google-ads java library with the sample 
GetCampaigns code. I'm repeatedly getting below error:

Status: Status{code=UNAVAILABLE, description=Credentials failed to obtain 
metadata, cause=com.google.api.client.http.HttpResponseException: 400 Bad 
Request
POST https://oauth2.googleapis.com/token
{
  "error": "invalid_grant",
  "error_description": "Account has been deleted"
}
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1113)
at 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:203)
at 
com.google.auth.oauth2.OAuth2Credentials.refresh(OAuth2Credentials.java:157)
at 
com.google.auth.oauth2.OAuth2Credentials.getRequestMetadata(OAuth2Credentials.java:145)
at 
com.google.auth.oauth2.UserCredentials.getRequestMetadata(UserCredentials.java:281)
at com.google.auth.Credentials.blockingGetToCallback(Credentials.java:112)
at com.google.auth.Credentials$1.run(Credentials.java:98)
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
}.

The same credentials are working with python adwords client

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/576cdb26-493d-4cad-b57b-fac8afd55054n%40googlegroups.com.