Hi All,

I am new to google ads api, old developer in our company has setup the 
developer token, client ID, client secret from his google account. As the 
old developer left now if I use his ads.properties file in my local to 
create an api it says 401 Unauthorized. So I have requested a MCC account 
and created a new developer token, client id and client secret from the 
google developer console. When I try to apply for basic access it says our 
organization has already an approved developer token. I do not have the old 
account details, how do I continue. Please help and please see the logs 
below , this is when I use old developer's ads.properties details.

*query==SELECT campaign.id, campaign.name, campaign.status, 
campaign.end_date, ad_group.id, ad_group.name, ad_group.status FROM 
ad_group WHERE ad_group.name LIKE '%%' AND campaign.status <> 'REMOVED' AND 
ad_group.status <> 'REMOVED'2021-03-30 10:58:21.481  WARN 17516 --- [      
    Gax-3] c.g.ads.googleads.lib.request.summary    : FAILURE REQUEST 
SUMMARY. Method: google.ads.googleads.v3.services.GoogleAdsService/Search, 
Endpoint: googleads.googleapis.com:443, CustomerID: 7941231231, RequestID: 
null, ResponseCode: UNAVAILABLE, Fault: Credentials failed to obtain 
metadata.*
*2021-03-30 10:58:21.489  INFO 17516 --- [          Gax-3] 
c.g.ads.googleads.lib.request.detail     : FAILURE REQUEST DETAIL.*
*Request*
*-------*
*MethodName: google.ads.googleads.v3.services.GoogleAdsService/Search*
*Endpoint: googleads.googleapis.com:443*
*Headers: {developer-token=REDACTED, login-customer-id=7947807596, 
x-goog-api-client=gl-java/1.8.0_202 gapic/ gax/1.49.0 grpc/1.23.0}*
*Body: customer_id: "7941231231"*
*query: "SELECT campaign.id, campaign.name, campaign.status, 
campaign.end_date, ad_group.id, ad_group.name, ad_group.status FROM 
ad_group WHERE ad_group.name LIKE \'%%%%\' AND campaign.status <> 
\'REMOVED\' AND ad_group.status <> \'REMOVED\'"*
*page_size: 1000*


*Response*
*--------*
*Headers: null*
*Body: null*
*Failure message: null*
*Status: Status{code=UNAVAILABLE, description=Credentials failed to obtain 
metadata, cause=com.google.api.client.http.HttpResponseException: 401 
Unauthorized*
*        at 
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1072)*
*        at 
com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:197)*
*        at 
com.google.auth.oauth2.OAuth2Credentials.refresh(OAuth2Credentials.java:157)*
*        at 
com.google.auth.oauth2.OAuth2Credentials.getRequestMetadata(OAuth2Credentials.java:145)*
*        at 
com.google.auth.Credentials.blockingGetToCallback(Credentials.java:112)*
*        at com.google.auth.Credentials$1.run(Credentials.java:98)*
*        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown 
Source)*
*        at java.util.concurrent.FutureTask.run(Unknown Source)*
*        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
 
Source)*
*        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
 
Source)*
*        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown 
Source)*
*        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)*
*        at java.lang.Thread.run(Unknown Source)*
*}.*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b441be54-ea08-4cf5-a9c0-f8a1181e489bn%40googlegroups.com.

Reply via email to