Google API - 401 Error unauthorized_client

2024-10-09 Thread 'Lee Buckman' via Google Ads API and AdWords API Forum
Hello group members,

I wonder if anyone can give me any pointers as to where to look to try and 
resolve my error.
I have read and followed the instructions/documentation and still seem to 
be having issues.


   - We have a Google Ads Account which I can access using my own work 
   google account and I have admin access level on the google ads account. 
   - The Google ads account has API Center/API Access and a developer token 
   exists.
   - In GCP console, we have a Client ID/Secret set up and an Oauth app 
   registered allowing access from my work email domain and access to the 
   scope  https://www.googleapis.com/auth/adwords
   - Using the Google Oauth2 playground I authorize using my work google 
   account to give access to the https://www.googleapis.com/auth/adwords 
   scope and get back 1 200 response and the 1 hour token and the refresh 
   token.
   - When using the refresh token and calling 
https://www.googleapis.com/oauth2/v3/token 
   with my client ID/secret and the refresh token, to try and get a new access 
   token I get the following error.

{
"error": "unauthorized_client",
"error_description": "Unauthorized"
}

I have tried multiple things including

   - Generating a new client Secret
   - Generating a whole new Client ID and Secret
   - Re-authorizing to get new access/refresh tokens
   - Using postman to make the call to get the new token from the refresh 
   token
   - Using CURL.

Any help/direction welcomed.

Lee


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/db703a34-0d94-40bb-8a60-791bc4b13fb6n%40googlegroups.com.


Re: error:"unauthorized_client"

2024-05-16 Thread Alex Gunner
OAuth verification does not need to be completed for this. Are you using a 
MCC test account with your test developer token?

On Thursday, May 16, 2024 at 12:56:20 AM UTC+3 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> To analyse this 'Authorization 
> ' issue 
> further could you please provide us with the below details. 
>
>- Can you please execute customers.listAccessibleCustomers 
>
> 
>  and 
>provide us complete API request and response logs, you may also check this 
> API 
>documentation 
>
> 
>  for 
>more information. If you are using any programming language please check 
>sample code for List Accessible Customers 
>
> 
> here. 
>- The user email you used for authentication. 
>- Provide the Google Ads API endpoint that you are using. 
>
> You can send the details via Reply privately to the author option, or 
> direct private reply to this email.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tIzOV:ref" (ADR-00235180)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/d05f14d7-f2df-44a8-a296-5a79e82d519en%40googlegroups.com.


Error:"unauthorized_client"

2024-05-15 Thread 伊藤大稀
Hello,

I received an unauthorized_client error when executing the following 
command.

curl \
 --data "grant_type=refresh_token" \
 --data "client_id=CLIENT_ID" \
  --data "client_secret=CLIENT_SECRET" \ 
  --data "refresh_token=REFRESH_TOKEN" \
https://www.googleapis.com/oauth2/v3/token

{
  "error" : "unauthorized_client"
}

OAuth verification has not been completed yet, is it related to the above 
error?
Are there any other possible causes?

Thanks.


-- 

-
もし、このメッセージが誤って貴殿に送信されたと思われる場合には、
機密情報を含んでいる可能性もありますので、どなたにも転送せず、
付属したファイルも含めて削除していただくとともに、発信者にその旨を
お伝えいただきますようお願いいたします。
This email may be 
confidential or privileged.
If you received this communication
by mistake, 
please don't forward it to anyone else,
please erase all copies and 
documents,
and please let me know that it went to the wrong person.
Thank 
you very much.
-

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/68a0cf63-aa59-4486-b54e-f12d58666738n%40googlegroups.com.


RE: getting metadata from plugin failed with error: unauthorized_client

2023-10-16 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand that you are getting an 
unauthorized_client error while trying to connect to the Google Ads API.

In order to investigate your issue further, kindly provide us with the complete 
API logs (request and response with request-id and request header) along with 
the uncropped UI screenshot generated at your end.

If you are using a client library and haven't enabled logging yet, I would 
request that you enable logging for the specific client library that you are 
using. You can refer to the guides in Java, .Net, PHP, Python, Ruby, or Perl to 
enable logging at your end. For REST interface requests, you can enable logging 
via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct 
private reply to this email.

This message is in relation to case "ref:!00D1U01174p.!5004Q02pRLkx:ref"

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/dEenw0S2M8D900C3UEE3qjTl2ksAx4B75_pQ%40sfdc.net.


Getting metadata from plugin failed with error: unauthorized_client

2023-10-13 Thread Marcos Colares
Hello everybody.

I'm developing a simple control panel that connects with the Google Ads API 
through NodeJS Backend. To configure the code, I followed Google's 
instructions to obtain the necessary credentials and the 
unauthorized_client error still returns, note that I left the "#" symbol so 
as not to show the real credentials here on the forum. The refresh_token 
can be obtained through https://developers.google.com/oauthplayground

Could you help me proceed with the Google Ads API connection step? I'll 
show you the initial NodeJS code:

import { GoogleAdsApi } from "google-ads-api";

// Replace these example credentials with your real credentials.
const client = new GoogleAdsApi({
  client_id: "#",
  client_secret: "#",
  developer_token: "#",
})

async function checkConnection() {
  const customer = client.Customer({
customer_account_id: '#',
refresh_token: '#',
  })

  try {
// Try to retrieve some campaigns to check the connection.
const campaigns = await customer.report({
  entity: 'campaign',
  attributes: ['campaign.id', 'campaign.name'],
  limit: 5, // Modify this number as needed
})

if (campaigns.length === 0) {
  console.log('No campaigns created at the moment');
} else {
  console.log('API connected successfully');
}
  } catch (err) {
console.error('Error connecting to the API', err)
  }
}

checkConnection()


ERROR:
[image: erro_googleapi.png]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/9fd315c5-bffb-46fe-be94-efd921259035n%40googlegroups.com.


RE: Failed to retrieve auth metadata with error: unauthorized_client

2022-11-23 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Soni,


Thanks for reaching out to the Google Ads API team. I hope you are doing well 
today.

The "invalid_grant ” error usually indicates an issue with the refresh token. 
That said, you will need to regenerate credentials and refresh tokens. You may 
refer here to this guide for the steps on how you can regenerate credentials 
and refresh tokens.

If the issue still persists after the provided suggestion, you may note that 
the logs you have provided were not complete, with this, you may provide to us 
the complete API logs (request and response logs with request ID) generated on 
your end which include the invalid_grant error.

You can provide it via Reply privately to the author option. If this option is 
not available, then send it instead on this email address 
googleadsapi-supp...@google.com.


Regards,

Darwin
Google Ads API Team
ref:_00D1U1174p._5004Q2gS5A9: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 
"Google Ads API and AdWords 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/qQmeb0RLT6XM00vCEAJrklSUW8ZkNLxEq6rw%40sfdc.net.


RE: "error": "unauthorized_client", "error_description": "Unauthorized"

2022-08-22 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Will,

To debug authentication access issues you while bypassing client library issues 
you may try generating a refresh tokek ny following our OAuth Playground guide. 
and add a scope of 'https://www.googleapis.com/auth/userinfo.email' besides the 
Ads API scope of 'https://www.googleapis.com/auth/adwords' and then you can 
test who made the refresh token and what scopes this token has by generating an 
access token using this Bash terminal ready curl recipe for Generating new 
access tokens, then using the following recipe in a browser:

https://oauth2.googleapis.com/tokeninfo?access_token=;.

If that works, then let's try a request from the command line:

curl -i --header "Authorization: Bearer " --header 
"developer-token: " --header "login-customer-id: {LGNCID}" 
--data "{ 'query': 'SELECT campaign.id FROM campaign LIMIT 1' }" -X POST -H 
"Content-Type: application/json" 
https://googleads.googleapis.com/v11/customers/{CID}/googleAds:searchStream

If the above doesn't work, could you send us the results of all the above?

If it does work, you may use the refresh token generated above with your PHP 
installation. If it doesn't work there, could you send us a 'DEBUG' log level 
request and response log of raw API communications ?

The request and response appears similar to the JSON Mappings in our REST 
documentation with additional headers and information such as request Id. Here 
are logging instructions for our PHP Ads API Client Library.

You may send the requested information via "Reply to author" or via 
googleadsapi-supp...@google.com with a link to this forum post added to the new 
thread.

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2dmQ1K: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 
"Google Ads API and AdWords 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/3j9-20RH171600VZD8E38PS-G6qjwXSBSrBg%40sfdc.net.


RE: "error": "unauthorized_client", "error_description": "Unauthorized"

2022-08-22 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Will,

Did you place all your credentials created with OAuth Desktop and Web 
Application Flows in placeholders in google_ads_php.ini without extra spaces? 
Is the google_ads_php.ini file in the home directory?

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2dmQ1K: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 
"Google Ads API and AdWords 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/QoBWn0RH16JW00YAbWdOYNQBeAxQYe_-Y9JQ%40sfdc.net.


"error": "unauthorized_client", "error_description": "Unauthorized"

2022-08-22 Thread Will Ill
Hello, i'm trying to execute GetCampaigns.php from the google ads api 
tutorial but i get "error": "unauthorized_client",   "error_description": 
"Unauthorized".

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/bf424369-742f-4eb8-8c3c-818ab3e5a991n%40googlegroups.com.


"error": "unauthorized_client", "error_description": "Unauthorized"

2022-08-22 Thread Will Ill
Hello, i'm trying to execute GetCampaigns.php from the google ads api 
tutorial but i get "error": "unauthorized_client",   "error_description": 
"Unauthorized". this is my log:

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: 
`POST https://oauth2.googleapis.com/token` resulted in a `401 Unauthorized` 
response:
{
  "error": "unauthorized_client",
  "error_description": "Unauthorized"
}
 in 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113
Stack trace:
#0 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\guzzle\src\Middleware.php(69):
 
GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), 
Object(GuzzleHttp\Psr7\Response), NULL, Array, NULL)
#1 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(204):
 
GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response))
#2 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(153):
 
GuzzleHttp\Promise\Promise::callHandler(1, 
Object(GuzzleHttp\Psr7\Response), NULL)
#3 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\TaskQueue.php(48):
 
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(248):
 
GuzzleHttp\Promise\TaskQueue->run(true)
#5 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(224):
 
GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(269):
 
GuzzleHttp\Promise\Promise->waitIfPending()
#7 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(226):
 
GuzzleHttp\Promise\Promise->invokeWaitList()
#8 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\promises\src\Promise.php(62):
 
GuzzleHttp\Promise\Promise->waitIfPending()
#9 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\guzzlehttp\guzzle\src\Client.php(123):
 
GuzzleHttp\Promise\Promise->wait()
#10 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\google\auth\src\HttpHandler\Guzzle6HttpHandler.php(47):
 
GuzzleHttp\Client->send(Object(GuzzleHttp\Psr7\Request), Array)
#11 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\google\auth\src\OAuth2.php(544):
 
Google\Auth\HttpHandler\Guzzle6HttpHandler->__invoke(Object(GuzzleHttp\Psr7\Request))
#12 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\google\auth\src\Credentials\UserRefreshCredentials.php(114):
 
Google\Auth\OAuth2->fetchAuthToken(Object(Google\Auth\HttpHandler\Guzzle7HttpHandler))
#13 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\google\auth\src\CredentialsLoader.php(214):
 
Google\Auth\Credentials\UserRefreshCredentials->fetchAuthToken(NULL)
#14 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\google\gax\src\CredentialsWrapper.php(209):
 
Google\Auth\CredentialsLoader->updateMetadata(Array, 'https://googlea...')
#15 [internal function]: 
Google\ApiCore\CredentialsWrapper->Google\ApiCore\{closure}(Object(stdClass))
#16 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\grpc\grpc\src\lib\ServerStreamingCall.php(44):
 
Grpc\Call->startBatch(Array)
#17 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\grpc\grpc\src\lib\BaseStub.php(368):
 
Grpc\ServerStreamingCall->start(Object(Google\Ads\GoogleAds\V11\Services\SearchGoogleAdsStreamRequest),
 
Array, Array)
#18 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\grpc\grpc\src\lib\Interceptor.php(58):
 
Grpc\BaseStub->Grpc\{closure}('/google.ads.goo...', 
Object(Google\Ads\GoogleAds\V11\Services\SearchGoogleAdsStreamRequest), 
Array, Array, Array)
#19 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\grpc\grpc\src\lib\BaseStub.php(456):
 
Grpc\Interceptor->interceptUnaryStream('/google.ads.goo...', 
Object(Google\Ads\GoogleAds\V11\Services\SearchGoogleAdsStreamRequest), 
Array, Object(Closure), Array, Array)
#20 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\src\Google\Ads\GoogleAds\Lib\V11\GoogleAdsLoggingInterceptor.php(86):
 
Grpc\BaseStub->Grpc\{closure}('/google.ads.goo...', 
Object(Google\Ads\GoogleAds\V11\Services\SearchGoogleAdsStreamRequest), 
Array, Array, Array)
#21 
C:\Users\thela\Downloads\laragon\www\adsense\try2\google-ads-php\vendor\grpc\g

Re: Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"unauthorized_client"

2022-05-18 Thread Reports1
Google Ad API team,
I responded privately to the author, so far I did not get a response yet.
Appreciate any help you can provide.
I can resend to another API team member if needed.
Thanks

On Friday, May 13, 2022 at 4:14:41 AM UTC-4 adsapi wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API team.
>
> Moving forward to your concern, *"Having issues with Unauthorized_Client 
> Google Ads API"*, so our team can better check and investigate this 
> issue, could you provide the complete request 
> 
>  
> and response 
> 
>  
> logs with request ID 
> 
>  
> and request header 
> 
>  generated 
> on your end?
>
> You can provide it via Reply privately to author option. If this option is 
> not available, then send it instead on this email address 
> googleadsa...@google.com 
> 
> .
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2asVeW: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 
"Google Ads API and AdWords 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/c7fdb119-e1b3-454d-95e7-b5d3cc798b1fn%40googlegroups.com.


Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"unauthorized_client"

2022-05-12 Thread Reports1
Having issues with Unauthorized_Client Google Ads API
I am trying to migrate from AdWords API to Google Ads API, using same Token 
and OAth2 credentials that I successful used in the past with Google 
AdWords API.
Any suggestions how to resolve?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/cddfecc9-7e49-47e2-801a-bad89e2c50b5n%40googlegroups.com.


Google.Apis.Auth.OAuth2.Responses.TokenResponseException: Error:"unauthorized_client", Description:"Unauthorized", Uri:""

2022-05-12 Thread Reports1
I have a token and OAuth2 credentials that worked previously with no issues 
with Google Adwords API.
I am migrating to Google Ads API using the same Token and credentials.
But I am getting TokenResponseException: Error:"unauthorized_client".
Any suggestions how to resolve this?
Thanks


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/7e1bd3fe-5240-4a72-a98c-de435fa2134fn%40googlegroups.com.


Re: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-18 Thread Google Ads API Forum Advisor
Hi Nobuyoshi,

Thank you for providing updates to our team.

I can see that you are using a third-party tool, with this, I am afraid that we 
wouldn't be able to provide support if issue was encountered there. However, 
that third-party tool should also performing the steps discussed here on its 
backend. You may check that document to know if parameters are correctly set 
there in order to successfully authenticate your API requests.

Let me know if you have further questions.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2LnpzF: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/b2-3A0QY2POQ00RWTr9LkdTkKxMT1rLykKDw%40sfdc.net.


Re: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-17 Thread Nobuyoshi Shimmen
Hi,

I just checked the accessToken with the following url
`https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=`
and found out the scopes are somehow different than normal ones.
We are going to dig into this.

Thanks for your time.

Best,

2021年8月18日水曜日 11:00:45 UTC+9 Nobuyoshi Shimmen:

> Hi again,
>
> We are using the same client credentials but still we got this error: 
> AuthenticationError.OAUTH_TOKEN_INVALID
> I dumped out the content of request and response where I replaced some 
> confidential info with xxx
>
> We are using this package `https://pkg.go.dev/golang.org/x/oauth2` 
>  to generate an accessToken and 
> using it to generate an ad report.
> Also we have no problems like this with other google accounts. This is the 
> first time happening to us.
>
> request
>
> POST /api/adwords/reportdownload/v201809 HTTP/1.1
> Host: adwords.google.com
> User-Agent: curl, gzip
> Content-Length: 117
> Accept: */*
> Authorization: Bearer
> Clientcustomerid: XXX-XXX-
> Content-Type: application/x-www-form-urlencoded
> Developertoken: 
> Includezeroimpressions: false
> Skipcolumnheader: false
> Skipreportheader: true
> Skipreportsummary: true
> Userawenumvalues: true
> Accept-Encoding: gzip
>
>
> __fmt=GZIPPED_CSV&__rdquery=SELECT+AccountDescriptiveName+FROM+ACCOUNT_PERFORMANCE_REPORT+DURING+20210829%2C+20210829
>
> response
>
> HTTP/2.0 400 Bad Request
> Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; 
> ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
> ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
> Cache-Control: private, max-age=0
> Content-Security-Policy: frame-ancestors 'self'
> Content-Type: text/xml
> Date: Wed, 18 Aug 2021 01:36:54 GMT
> Expires: Wed, 18 Aug 2021 01:36:54 GMT
> Server: GSE
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> X-Xss-Protection: 1; mode=block
>
>  standalone="yes"?>AuthenticationError.OAUTH_TOKEN_INVALID
>
>
>
>
>
> 2021年8月18日水曜日 10:10:17 UTC+9 Nobuyoshi Shimmen:
>
>> Hi,
>>
>> I was wrong. We're not using the sale credentials.
>> Sorry for taking your time.
>>
>> Thanks,
>>
>> 2021年8月18日水曜日 9:57:50 UTC+9 Nobuyoshi Shimmen:
>>
>>> Thanks for your response.
>>>
>>> Yes, we are using the same client credentials(clientId, clientSecret).
>>>
>>> Best,
>>>
>>> 2021年8月18日水曜日 2:59:59 UTC+9 adsapi:
>>>
 Hi,

 Are you using the same client when authorizing in the application and 
 when updating the token on the server? I recommend double checking the 
 client credentials.

 Thanks,
 [image: Google Logo] 
 Lakshmi Prathipati 
 Google Ads API Team 
   
  

 ref:_00D1U1174p._5004Q2LnpzF: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/79364928-f6a5-4532-b2b8-faf18707121fn%40googlegroups.com.


Re: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-17 Thread Nobuyoshi Shimmen
Hi again,

We are using the same client credentials but still we got this error: 
AuthenticationError.OAUTH_TOKEN_INVALID
I dumped out the content of request and response where I replaced some 
confidential info with xxx

We are using this package `https://pkg.go.dev/golang.org/x/oauth2` to 
generate an accessToken and using it to generate an ad report.
Also we have no problems like this with other google accounts. This is the 
first time happening to us.

request

POST /api/adwords/reportdownload/v201809 HTTP/1.1
Host: adwords.google.com
User-Agent: curl, gzip
Content-Length: 117
Accept: */*
Authorization: Bearer
Clientcustomerid: XXX-XXX-
Content-Type: application/x-www-form-urlencoded
Developertoken: 
Includezeroimpressions: false
Skipcolumnheader: false
Skipreportheader: true
Skipreportsummary: true
Userawenumvalues: true
Accept-Encoding: gzip

__fmt=GZIPPED_CSV&__rdquery=SELECT+AccountDescriptiveName+FROM+ACCOUNT_PERFORMANCE_REPORT+DURING+20210829%2C+20210829

response

HTTP/2.0 400 Bad Request
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private, max-age=0
Content-Security-Policy: frame-ancestors 'self'
Content-Type: text/xml
Date: Wed, 18 Aug 2021 01:36:54 GMT
Expires: Wed, 18 Aug 2021 01:36:54 GMT
Server: GSE
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

AuthenticationError.OAUTH_TOKEN_INVALID





2021年8月18日水曜日 10:10:17 UTC+9 Nobuyoshi Shimmen:

> Hi,
>
> I was wrong. We're not using the sale credentials.
> Sorry for taking your time.
>
> Thanks,
>
> 2021年8月18日水曜日 9:57:50 UTC+9 Nobuyoshi Shimmen:
>
>> Thanks for your response.
>>
>> Yes, we are using the same client credentials(clientId, clientSecret).
>>
>> Best,
>>
>> 2021年8月18日水曜日 2:59:59 UTC+9 adsapi:
>>
>>> Hi,
>>>
>>> Are you using the same client when authorizing in the application and 
>>> when updating the token on the server? I recommend double checking the 
>>> client credentials.
>>>
>>> Thanks,
>>> [image: Google Logo] 
>>> Lakshmi Prathipati 
>>> Google Ads API Team 
>>>   
>>>  
>>>
>>> ref:_00D1U1174p._5004Q2LnpzF: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/d3978aa4-5444-4514-b5e7-ecf882780be8n%40googlegroups.com.


Re: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-17 Thread Nobuyoshi Shimmen
Hi,

I was wrong. We're not using the sale credentials.
Sorry for taking your time.

Thanks,

2021年8月18日水曜日 9:57:50 UTC+9 Nobuyoshi Shimmen:

> Thanks for your response.
>
> Yes, we are using the same client credentials(clientId, clientSecret).
>
> Best,
>
> 2021年8月18日水曜日 2:59:59 UTC+9 adsapi:
>
>> Hi,
>>
>> Are you using the same client when authorizing in the application and 
>> when updating the token on the server? I recommend double checking the 
>> client credentials.
>>
>> Thanks,
>> [image: Google Logo] 
>> Lakshmi Prathipati 
>> Google Ads API Team 
>>   
>>  
>>
>> ref:_00D1U1174p._5004Q2LnpzF: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/13933692-1326-4e5b-93a3-759c54a1abfcn%40googlegroups.com.


Re: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-17 Thread Nobuyoshi Shimmen
Thanks for your response.

Yes, we are using the same client credentials(clientId, clientSecret).

Best,

2021年8月18日水曜日 2:59:59 UTC+9 adsapi:

> Hi,
>
> Are you using the same client when authorizing in the application and when 
> updating the token on the server? I recommend double checking the client 
> credentials.
>
> Thanks,
> [image: Google Logo] 
> Lakshmi Prathipati 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2LnpzF: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/08a54281-50c1-45e1-94ca-398fccd85b61n%40googlegroups.com.


RE: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-17 Thread Google Ads API Forum Advisor
Hi,

Are you using the same client when authorizing in the application and when 
updating the token on the server? I recommend double checking the client 
credentials.

Thanks,

Lakshmi Prathipati
Google Ads API Team
ref:_00D1U1174p._5004Q2LnpzF: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/4nRE30QXZWNK00wHe3OV37QRKnyIVsqx8I2w%40sfdc.net.


{ "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-08-16 Thread Nobuyoshi Shimmen
Hi, 
When we make a post request for `https://oauth2.googleapis.com/token` to 
generate an access token, we get an error like this: `401 Unauthorized` 
response: { "error": "unauthorized_client", "error_description": 
"Unauthorized" } in our app in production.
We are using a refresh token obtained by OAuth2 authentication.

This is the first time we see this error, so we don't know why this is 
happening and how to fix it.
Could you please help us? We have a detailed request and response log ready.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3bd89be6-dd8c-457e-ad5a-db5e9f657b97n%40googlegroups.com.


RE: `401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-04-08 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for reaching out. Could you please share the complete request and 
response logs via the Reply privately to author option for us to further 
investigate?

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2FWoVG: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/gZenA0QR922O00qtiqQDb4RC-RJdz-6E5QOQ%40sfdc.net.


`401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }

2021-04-08 Thread bangkit soms
Hi, 
i have a error like this Client error: `POST 
https://oauth2.googleapis.com/token` resulted in a `401 Unauthorized` 
response: { "error": "unauthorized_client", "error_description": 
"Unauthorized" }. i don't know why got error because last time is working, 
and to im check i got this. im already try to refresh the refresh_token, 
reset the Client secret but its not working. could you like to help me 
please?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/db88ff3f-b49b-499f-95a5-98f4fee60c8dn%40googlegroups.com.


google create access token "error": "unauthorized_client", "error_description": "Unauthorized"

2020-07-13 Thread hüseyin Armağan
Hi All,

I am trying to create refresh token via auth2 authorization. My steps at 
the below ;

1. Client click grant access button and redirect to the google login page.
*   https://accounts.google.com/o/oauth2/v2/auth?*

* scope=https%3A//www.googleapis.com/auth/adwords&*

* access_type=offline&*

* include_granted_scopes=true&*

* response_type=code&*

* state=state_parameter_passthrough_value&*

* redirect_uri=https://dev..co/redirects/google_ads_connect.html&*

*prompt=consent&*

* client_id=-en51ugikhXX.apps.googleusercontent.com*

2. Client login and give access after than page redirect to the our web 
sites.
3. Get the code and create refresh token on the server-side Nodejs function.
   const oAuth2Client = new OAuth2Client( GOOGLE_ADS_CLIENT_ID, 
GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REDIRECT_URI ); 
oAuth2Client.getToken(req_body.code, function (error, token, res) {
 .
 .
 .

On the third steps I got at the below error when I call on our dev machine. 
But I can call this service successfully when I call from my local machine. 
Would you help me and what is the reason of it, please ?

{ "error": "unauthorized_client", "error_description": "Unauthorized" }
BR

Hüseyin.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4c149b1c-f091-4b21-ab41-64b3399cb2bco%40googlegroups.com.


Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in a `401 Unauthorized` response: { "error": "unauthorized_client

2019-10-17 Thread sneha mahale
Hi,
I got the below error
Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: 
`POST https://www.googleapis.com/oauth2/v4/token` resulted in a `401 
Unauthorized` response:
{
  "error": "unauthorized_client",
  "error_description": "Unauthorized"
}

but when I try to run this
curl https://www.googleapis.com/oauth2/v4/token \
-d refresh_token=MCC_refresh_token \
-d client_id=your-client-id \
-d client_secret=your-client-secret \
-d grant_type=refresh_token

I runs successfully and gives me the access token.
but when try to download report it gives above error 'unauthorized_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/97b49335-fe7e-4099-a3be-abdd20c3b289%40googlegroups.com.


Re: Google Adwords Oauth playground “error”: “unauthorized_client”

2018-04-16 Thread 'Teja Makani' via AdWords API Forum
Hello Suresh,

The steps until point 1 in the OAuth playground seems to be correct. Please 
check the next steps below:

1. Send the link to your manager to login to the company's AdWords account 
and get authorization code from your manager account. Once you have the 
authorization code, you will need to continue the same screen flow until 
generating the Authorization code in the OAuth playground and replace your 
authorization code with the manager's authorization code. Then please 
proceed to the step 8 from this setup guide 
 to 
generate refresh token and access token. You can use this refresh token to 
make a API calls against your manager account. Please note that you will 
need to use the authorization code generated by the manager. Also, request 
the manager not to generate the refresh token for the authorization code 
that is being passed to you since an authorization code can only be 
redeemed once. If Manager passed on the refresh token instead of 
authorization code for you to use that directly, it will fail as the 
refresh token belongs to a different client credentials. 

Could you please follow the steps and retry? Let me know if you are still 
facing issues.

Regards,
Sai Teja. AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/67dfed2f-0b0b-4424-91d1-35edf669a28e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google Adwords Oauth playground “error”: “unauthorized_client”

2018-04-16 Thread suresh babu


My Company has an Ad-word Account. I want to generate a refresh token to 
access the API. To generate refresh token I did the following:

I created a developer account and did the following in my account
Get a client ID and client secret
   
   1. Open the Google API Console Credentials page.
   2. From the project drop-down, select an existing project or create a 
   new one. On the Credentials page, select Create credentials, then select 
   OAuth client ID.
   3. Under Application type, choose Web application.
   4. Under Authorized redirect URIs, add a line with: 
   https://developers.google.com/oauthplayground Click Create.
   5. On the page that appears, take note of the client ID and client 
   secret. You'll need these in the next step.

Then 

   1. 
   
   In the OAuth playground, I used the above clientId and clentSecret and 
   clicked authorize and it was asking for a login.
   2. 
   
   I sent the link to my manager to login to the company ad-word account 
   and authorize it and send me the returned URL which is the playground URL 
   for generating refresh token.
   3. 
   
   After receiving the URL, I cliked on generate refresh token and it 
   responded with *"error": "unauthorized_client"*
   
Is there something wrong with the above steps? 

My developer account should be linked or added to my company account before 
I can do above steps?

Do I need any developer token?

Kind help appreciated.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0786e764-7e94-44f2-a0b2-10fa5b6ab950%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: REfresh token from outh2 is not working and gives error like "401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }"

2017-11-29 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

I see that you had created a new thread 

 for 
the same issue. I have answered your question on that thread. If you have 
more questions, feel free to follow up on that thread. 

Regards,
Sreelakshmi, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/153ec8f2-6a66-4a41-8834-7abb054b8490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: REfresh token from outh2 is not working and gives error like "401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }"

2017-11-29 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi,

I just deleted your post from the forum because it contained sensitive 
information. Please read the forum rules 
 and make 
sure that you don't include sensitive information such as your developer 
token, refresh token, client secret, etc., and then re-post your question.

Regards,
Sreelakshmi, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1476fc80-2d95-473f-9fff-2a6d986b2165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


REfresh token from outh2 is not working and gives error like "401 Unauthorized` response: { "error": "unauthorized_client", "error_description": "Unauthorized" }"

2017-11-29 Thread Bezoar Software
HI, 

I am using adword webapp flow and show statics of adword,if user connect 
with my application.
When i generate refresh token from console and put into adsapi_php.ini and 
run GetCampaign.php it return all campaign but if i get refresh token 
dynamically it give me error like " Uncaught exception 
'GuzzleHttp\Exception\ClientException' with message 'Client error: `POST 
https://www.googleapis.com/oauth2/v4/token` resulted in a `401 
Unauthorized` response: { "error": "unauthorized_client", 
"error_description": "Unauthorized" }" my sample code is 

$oauth2 = new OAuth2([
'authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth',
'tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token',
'redirectUri' => 'MY_REDIRECT_URL',
'clientId' => 'CLIENT_ID',
'clientSecret' => 'CLIENT_SECRET',
'scope' => 'https://www.googleapis.com/auth/adwords'
]);

$callbackUrl = "Call_back_url";
if (!isset($_GET['code'])) {

  $oauth2->setState(sha1(openssl_random_pseudo_bytes(1024)));
  $_SESSION['oauth2state'] = $oauth2->getState();

  $config = [
// Set to 'offline' if you require offline access.
'access_type' => 'offline',
'approval_prompt'=>'force'


  ];
  header('Location: ' . $oauth2->buildFullAuthorizationUri($config));
  exit;
} elseif (empty($_GET['state']) || ($_GET['state'] !== 
$_SESSION['oauth2state'])) {

  unset($_SESSION['oauth2state']);
  exit('Invalid state.');
} else {
  
 $oauth2->setCode($_GET['code']);
 $authToken = $oauth2->fetchAuthToken();
echo '';
print_r($authToken);die;
  $refreshToken = $authToken['refresh_token'];

 $session = (new AdWordsSessionBuilder())
->fromFile('adsapi_php.ini')
->withOAuth2Credential($oauth2)
->build();
/* - Session build 
-*/


/*  Adwords Services section 
*/

/* Creating object of Adwords services */
$adWordsServices = new AdWordsServices();

/* Adwords Customer services */
$customerService = $adWordsServices->get($session, 
CustomerService::class);
 $customers = $customerService->getCustomers();
$customerId = $customers[0]->getCustomerId();  // Getting main customer 
client id 

/* Generate user ini file to store refresh token for future use. /* 

$content .= '[ADWORDS]';
$content .= 'developerToken = "DEVELOPER TOKEN"';
$content .= 'clientCustomerId = "'.$customerId.'"';

$content .= '[OAUTH2]';

$content .= 'clientId = 
"653473292288-mpfqsod96ou57972f0ecscoqqp2cv18b.apps.googleusercontent.com"';
$content .= 'clientSecret = "G6BrjmRgUoajrDe4EQV381sZ"';
$content .= 'refreshToken = "'.$refreshToken.'"';


$fp = fopen($_SERVER['DOCUMENT_ROOT'] . "/google/nw.ini","wb");
fwrite($fp,$content);
fclose($fp);



This ini file is unique for every user and i want to store all information 
here. My developer token is also approved.

After generating ini and run GetCampaign.php file it show above 
error.Please help me.

Thanks,
Bezoar Developer

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f207a369-0271-4b58-96fe-6c0f098b0a4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "error": "unauthorized_client"

2017-08-31 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Greg,

Thanks for the clarification.

>From your detailed explanation, it seems that you need to use a web 
application flow since you have a redirect URIs or callbacks. That said, 
kindly generate your client ID and secret again using the web application 
type 
. 
Also, you need to configure your client library 

 for 
web app flow.

Follow the steps above first and let me know if you encounter any issues. 
Also, both installed app and web application type require a 
clientCustomerId in every call except CustomerService and 
ReportDefinitionService. You can check here 
 for 
more details regarding the underlying API call structure.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1fed9832-077a-4984-a778-1cfaf648ce47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "error": "unauthorized_client"

2017-08-31 Thread Tim Johnson
Hi Vincent,

Thanks very much for the prompt reply; I really appreciate it.

Concerning the nature of the application: I believe it is a installed app 
under that definition, but it depends on your definition of callback.  I 
will need users to redirect back to my page after the click a button to 
authorize access (as specified in the redirect_uri).  So in that sense, it 
will need a callback.  However, other than that: no it will not need a 
callback.  After they grant my app access to adwords, I will redirect to 
the site and my app will use that code to get a refresh token in the 
background.  From them onwards, I intend on making API calls to their 
behalf in the back-end of my program.

So am i correct in assuming this is then an installed app.  And then if so, 
how do I handle several users- is the "ClientCustomerId" needed for every 
call.  Is the refresh token not enough to verify specific calls to specific 
campaigns and adsets? 

Cheers,
Greg


On Thursday, 31 August 2017 16:07:53 UTC+10, Vincent Racaza (AdWords API 
Team) wrote:
>
> Hi Tim,
>
> If you are using a web application type of authentication, then your app 
> requires callback URLs. You are also generating a client ID based on your 
> web application primarily. Could you confirm if this is indeed the nature 
> of your application? To know more regarding the difference between web 
> application and installed application types, kindly refer here 
> .
>  
> Also, for your issue in web application type (if you can confirm that this 
> is really your application type based on the nature of your application), 
> please ensure that you followed the steps here 
> 
> .
>
> Furthermore, based on your description (regular account which you also 
> used in other Google APIs) of your client ID, then the recommended 
> application type for you is installed application. You also don't need to 
> authenticate as service account as this requires GSuite domains. For 
> installed application type, kindly generate a new client ID and secret by 
> following the instructions here 
> 
> .
>
> Let me know if you encounter any issues after doing the suggestion.
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f4ea27d4-5444-4395-8b6b-e0c6d37d8a9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "error": "unauthorized_client"

2017-08-30 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Tim,

If you are using a web application type of authentication, then your app 
requires callback URLs. You are also generating a client ID based on your 
web application primarily. Could you confirm if this is indeed the nature 
of your application? To know more regarding the difference between web 
application and installed application types, kindly refer here 
.
 
Also, for your issue in web application type (if you can confirm that this 
is really your application type based on the nature of your application), 
please ensure that you followed the steps here 

.

Furthermore, based on your description (regular account which you also used 
in other Google APIs) of your client ID, then the recommended application 
type for you is installed application. You also don't need to authenticate 
as service account as this requires GSuite domains. For installed 
application type, kindly generate a new client ID and secret by following 
the instructions here 

.

Let me know if you encounter any issues after doing the suggestion.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1adfb6ea-a4a8-47e0-bf32-3700f57a9cfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


"error": "unauthorized_client"

2017-08-30 Thread Tim Johnson
Hi,

I am testing what will be a web app auth flow.

I have created an MCC account, and also have a google developer client ID 
and secret.  I go through the web app flow that I mimic via the Google 
Sandbox token process. From this process, I am able to get a refresh token. 
 I attempt to run a simply get campaigns script in PHP, and receive the 
following error:

Client error: `POST https://www.googleapis.com/oauth2/v4/token` resulted in 
a `401 Unauthorized` response:
{
 "error": "unauthorized_client",
 "error_description": "Unauthorized"
}

My client-id is not associated with a "service account"; it is a regular 
account which I use for other Google apis.  Basically, i am looking for a 
simply login flow to allow multiple, independent users to grant me access 
to their accounts. My questions are as follows:

1. Do I need to get a service account if I don't mind it Google asking the 
user to allow for me to have access to their account when getting a 
authorization code?
2. Can I simply go through "installed app" procedure as is recommended?

Please let me know if you need me to clarify any steps; thank you very much 
in advance.

Thanks,
Tim


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/412a13a2-28fa-47a0-88d6-577edd448f79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "error": "unauthorized_client", "error_description": "Unauthorized"

2016-10-03 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi,

Were you able to follow these steps 

 to 
generate your refresh token? Please ensure you are using the correct client 
ID in your properties file. One thing to note when using the PHP client 
library is that all examples are meant to be run via the command line (and 
not the web browser). If that information is not helpful, could you please 
elaborate on the action that you are trying to perform (for example trying 
to fetch campaign info using GetCampaigns.php etc.)? Any screenshots / SOAP 
XML logs that you might have would help me debug the issue. 

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6c1d809f-3364-47c6-972b-e0306bb45cae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


"error": "unauthorized_client", "error_description": "Unauthorized"

2016-10-03 Thread sayın yada
Hi,

I have a error. Error is "error": "unauthorized_client", 
"error_description": "Unauthorized". Why is it? I didn't solve.Can you help 
me please? Thanks for everything. (I have client ID,client secret, refresh 
token, developer token . I use php from programing language and localhost 
from server)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6f92de93-4dff-45ea-b3ac-8a4d8625dad0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error:"unauthorized_client", Description:"Unauthorized client or scope in request.", Uri:""

2016-06-15 Thread DX Marketing2
Hi Anthony,
My account has emerged: Insufficient match of microdata price
information,Not performing automatic item updates for availability warning,
but my code has not changed, how should I deal with it? Do you have any
experience in this respect, please advise。
Thank you very much

On Sat, Mar 12, 2016 at 5:28 AM, zhongyh 
wrote:

> Hi Anthony,
>
> i execute program Tasks.Simple OAuth2,and then solve the problem.
>
>
> i think is refresh token.
>
>
> thinks,
>
> zhongyh
>
>
> 在 2016年3月11日星期五 UTC+8上午6:38:00,Anthony Madrigal写道:
>>
>> Hi Zhongyh,
>>
>> Yes, I replied. Here was my response
>>
>>> Just like Mike mentioned previously, you need to use an AdWords account.
>>> The Id 8170965 refers to a merchant center account. Once you do so, try to 
>>> generate
>>> a refresh token
>>> 
>>>  and
>>> see if your problem still exists.
>>
>>
>> Cheers,
>> Anthony
>> AdWords API Team
>>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and Google+:
> https://googleadsdeveloper.blogspot.com/
> https://plus.google.com/+GoogleAdsDevelopers/posts
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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.
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/6cc46f11-e277-4c4a-8810-be9f4dfd8b51%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CALi9aTC_PNouH6Xrxc4p-fy5pHm%3DL3WL56QDYu3OYr-WLtWNbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error:"unauthorized_client", Description:"Unauthorized client or scope in request.", Uri:""

2016-03-11 Thread zhongyh
Hi Anthony,

i execute program Tasks.Simple OAuth2,and then solve the problem.


i think is refresh token.


thinks,

zhongyh


在 2016年3月11日星期五 UTC+8上午6:38:00,Anthony Madrigal写道:
>
> Hi Zhongyh,
>
> Yes, I replied. Here was my response
>
>> Just like Mike mentioned previously, you need to use an AdWords account. 
>> The Id 8170965 refers to a merchant center account. Once you do so, try to 
>> generate 
>> a refresh token 
>> 
>>  and 
>> see if your problem still exists.
>
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6cc46f11-e277-4c4a-8810-be9f4dfd8b51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error:"unauthorized_client", Description:"Unauthorized client or scope in request.", Uri:""

2016-03-10 Thread 'Anthony Madrigal' via AdWords API Forum
Hi Zhongyh,

Yes, I replied. Here was my response

> Just like Mike mentioned previously, you need to use an AdWords account. 
> The Id 8170965 refers to a merchant center account. Once you do so, try to 
> generate 
> a refresh token 
> 
>  and 
> see if your problem still exists.


Cheers,
Anthony
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fa135899-9ea4-498d-8391-80b8aba1b909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error:"unauthorized_client", Description:"Unauthorized client or scope in request.", Uri:""

2016-03-10 Thread zhongyh
Hi Anthony,

Did you get my info?

Thanks

在 2016年1月16日星期六 UTC+8上午5:59:39,Anthony Madrigal写道:
>
> Hi Zhongyh,
>
> Please try to generate a new refresh token and see if that solves your 
> issue. If you are still getting errors, please *reply privately to author 
> *your CID so that I can further investigate.
>
> Thanks,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/174332f6-3574-4fee-bfdf-6dd5ccac6340%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error:"unauthorized_client", Description:"Unauthorized client or scope in request.", Uri:""

2016-01-15 Thread Anthony Madrigal
Hi Zhongyh,

Please try to generate a new refresh token and see if that solves your 
issue. If you are still getting errors, please *reply privately to author *your 
CID so that I can further investigate.

Thanks,
Anthony
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c4ba1ff5-5f25-47ba-858e-3543f7773221%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error:"unauthorized_client", Description:"Unauthorized client or scope in request.", Uri:""

2016-01-15 Thread zhongyh
hi all,

 When i change the password to my mc, i get the below errrors(adwords 
api).

Error:"unauthorized_client", Description:"Unauthorized client or scope in 
request.", Uri:""


Any help would be greatly appreciated!

zhongyh

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/947313b0-e653-48b3-9714-1e6456961568%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error "unauthorized_client" when trying to get the campaign data with Google Adwords v201502

2015-06-18 Thread Umesh Dengale
Hi Susan,

Please go through these steps 
 and run any 
of the examples using the refresh token. If you get any exceptions, please 
provide me the SOAP request and response. Just click *Reply privately to 
author* in the forum when responding.

Regards,
Umesh, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c83b62c2-8a74-4097-90d6-ef0a5614f586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Error "unauthorized_client" when trying to get the campaign data with Google Adwords v201502

2015-06-17 Thread Susan
Can someone please help with the issue on my adwords tool development?
I am still creating my adwords tool with code igniter in PHP.

These are my step:
1. I already got my approved developer token
2. I have created the Client ID from here -> 
https://console.developers.google.com
3. Once I have got my Client ID and my Client Secret I copied to the 
auth.ini file
4. I run the GetRefreshToken.php (I got it from online), I used my terminal 
to get refresh token.
5. After I have got my refresh token I run my script on 
http://best.bigevo.com/adwords, and I have this kind of error.

I have this error:
*Fatal error*: Uncaught exception 'OAuth2Exception' with message '{ "error" 
: "unauthorized_client" }' in 
/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php:124
 
Stack trace: #0 
/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php(100):
 
SimpleOAuth2Handler->MakeRequest('https://account...', Array) #1 
/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/Common/Util/OAuth2Handler.php(113):
 
SimpleOAuth2Handler->RefreshAccessToken(Array) #2 
/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(502):
 
OAuth2Handler->GetOrRefreshAccessToken(Array) #3 
/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(214):
 
AdsSoapClient->GenerateHttpHeaders() #4 
/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/AdWords/v201502/CampaignS
 
in
*/home/content/55/11063355/html/best/app0809/third_party/Adwords/src/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php*
 on 
line *124*


I wish someone would help me.

Thanks,
Susan

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a057685f-e385-45ff-8bc0-0faa64e3999b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.