401 - Request is missing required authentication credential.

2024-08-27 Thread Osan Digital
My site https://makwandetrust.org.za/ has been up for 4 months now and isnt 
indexed. Ik trying seopress instant index feature but keep getting this 
message: 401 - Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/db3cff80-5417-4e7a-bf1b-852e7a7da705n%40googlegroups.com.


Re: request is missing required authentication credential. expected oauth 2 access token, login cookie or other valid authentication credential

2023-12-20 Thread ads dm
Thank you for your reply. We have found the cause of the problem. A 
colleague reset the developer token, causing the original token to become 
invalid. After replacing it with the new developer token interface, the 
interface runs normally.

On Thursday 21 December 2023 at 01:14:37 UTC+8 Google Ads API Forum Advisor 
wrote:

Hi,

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

After reviewing your query, I understand that you are getting the error "
OAUTH_TOKEN_HEADER_INVALID 
"
 
in the production environment.

It appears that the credentials sent in your HTTP request are not valid and 
this is why you have encountered this error. The prevention tip recommended 
is to make sure you've passed the correct access token associated with your 
account. It's sometimes confused with refresh tokens and authorization 
codes. If you would like to get a credential that can access all client 
accounts under a manager account, make sure you get the refresh token 
 
for 
the manager account. For more details, see our guide on access token and 
refresh token 

 and OAuth2 
.

If the issue still persists, please provide us with the complete API logs (
request 

 and response 

 with request-id 

 and request header 
)
 
generated at your end to better assist you.
If you are using a client library and haven't enabled the logging yet, I 
would request you to enable logging for the specific client library that 
you are using. You can refer to the guides  

*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.!5004Q02r2twx:ref"

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/b78ddca5-cefc-43a5-b5d5-de388e4336dcn%40googlegroups.com.


RE: request is missing required authentication credential. expected oauth 2 access token, login cookie or other valid authentication credential. see https:\/\/developers.google.com\/identity\/sign-in\

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

Thanks for reaching out to the Google Ads API Forum.

Upon checking logs, I can see that you’ve encountered AUTHENTICATION_ERROR, 
however, could you please double check if you’re sending the correct developer 
token for your API request? If you’re indeed sending the exact same developer 
token that was copied from MCC account’s API center, and still encountering it, 
then I request you may provide us with the complete logs in the format of the 
request and response logs along with the request-id without redacting, as seen 
in their respective links.

For you to enable complete logs on your end for the client library, logging can 
be enabled by navigating to the Client libraries > Your client library (ex 
Java) > Logging documentation, which you can access from this link here 
https://developers.google.com/google-ads/api/docs/client-libs. Kindly provide 
the requested details using reply privately to the author option.

Reference links:

request - 
https://developers.google.com/google-ads/api/docs/concepts/field-service#request
response - 
https://developers.google.com/google-ads/api/docs/concepts/field-service#response

This message is in relation to case "ref:_00D1U1174p._5004Q2lvyqr: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/KrIom0RVTMDI00ky7Zl9BRQGqihh2yn-7dQw%40sfdc.net.


Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https:\/\/developers.google.com\/identity\/sign-in\/web

2023-06-01 Thread 王众杰
 {
"message": "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https:\/\/developers.google.com\/identity\/sign-in\/web\/devconsole-project.",
"code": 16,
"status": "UNAUTHENTICATED",
"details": [
{
"@type": 
"type.googleapis.com\/google.ads.googleads.v13.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"authenticationError": "AUTHENTICATION_ERROR"
},
"message": "Authentication of the request failed."
}
],
"requestId": "GSXCYpCvLo7Hpq1bojGqUQ"
}
]
}

i want know why?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0c86194e-269c-43ee-8d42-a34d1eb40bb8n%40googlegroups.com.


RE: Request is missing required authentication credential.

2023-01-19 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Abdullah,

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

With regards to your concern about “Request is missing required authentication 
credential error”, could you please double check if you’re sending the correct 
developer token for your API request? Also, if the generated access token is 
associated with any Google Ads account?

In line with this, for us to further assist you, can you provide the complete 
API logs (request and response logs with request ID). This will help us to 
further assist you.

For REST interface requests, you can enable logging via the curl command by 
using the -i flag. This will cause the tool to include the HTTP response 
headers in the output.

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.

Have a great day.

Regards,

Marjorie
Google Ads API Team
ref:_00D1U1174p._5004Q2i08CW: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/XtrGL0ROQ90T00thY8YNu1Qd29ILLRmMZvrA%40sfdc.net.


Request is missing required authentication credential.

2023-01-18 Thread Abdullah Shuja
Hi, I'm getting this error while trying to communicate with the API via a 
service account using the REST API. 

I've been able to successfully retrieve an access token using the steps 
described in this guide 
<https://developers.google.com/identity/protocols/oauth2/service-account#authorizingrequests>

However, when I use the access token to POST to the generateKeywordIdeas 
endpoint, I get a `request is missing required authentication credential` 
error. I'm including the access token in the header, and the developer 
token too. 

I'm assuming there is an issue with the way I've set up my accounts. 

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/a2e13321-df2c-4075-9c9d-b4a4afd45d9en%40googlegroups.com.


RE: Request is missing required authentication credential

2022-12-08 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Derek,

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

To investigate the issue further, could you please provide the complete request 
and response logs, with the request-id? If you haven't yet, logging can be 
enabled by navigating to the Client libraries > Your client library (ex. Java) 
> Logging documentation, which you can access from this link. You can provide 
it via Reply privately to author option. If this option is not available, you 
may send the details directly to our googleadsapi-supp...@google.com alias 
instead. Let me know if you have any questions.

Thanks,

Nirmita
Google Ads API Team
ref:_00D1U1174p._5004Q2h0hgC: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/y5Gow0RMLB7I00taGiH95kRceRrytOrN0ONw%40sfdc.net.


Request is missing required authentication credential

2022-12-07 Thread derek
Hi

I am trying to migrate from Google Adwords API to Google Ads API.
Using Java client library and a configuration file for the tokens and Ids.

I am getting this request failure when trying to select from user_list 
using SearchGoogleAdsStreamRequest.



*Status: Status{code=UNAUTHENTICATED, description=Request is missing 
required authentication credential. Expected OAuth 2 access token, login 
cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project., 
cause=null}.*

I am able to see the 'developer-token' and 'login-customer-id' params in 
the Request Headers
'developer-token=REDACTED, login-customer-id=##" 

May I know what am I missing and how do I resolved this?

BTW I tried to access the API Center (TOOLS & SETTINGS > SETUP > API 
Center) but a blank page is displayed after it try to load for a while.

Derek

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fd399c2e-3a90-43a4-a643-858ef547f6e7n%40googlegroups.com.


RE: Request is missing required authentication credential

2022-10-23 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Can,


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


To further investigate the issue, could you please provide the complete request 
and response logs, with the request-id? If you haven't yet, logging can be 
enabled by navigating to the Client libraries > Your client library (ex. Java) 
> Logging documentation, which you can access from this link. I ask this so our 
team further investigates your concern and provides specific recommendations on 
the issue.


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._5004Q2fnH8d: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/sEfwh0RK8VE7007_fLl7boRqS_PH9lbnQJCQ%40sfdc.net.


Request is missing required authentication credential

2022-10-23 Thread Can Manisalı
Hi,
*I am sending my request like this:*

*var request_body={*
*"query" : "SELECT   campaign.name <http://campaign.name/>, 
  campaign.status,   metrics.impressions,"+ "metrics.clicks,   metrics.ctr, 
  metrics.average_cpc,   metrics.cost_micros"+*
* "FROM campaign  ORDER BY campaign.id <http://campaign.id/>"*
*}*

*"uri": "https://googleads.googleapis.com/v11/customers/ 
{customer-id}/googleAds:searchStream",*
*"qs": { "Authorization": "Bearer access_token" 
,"developer-token":"developer_token"},*
*"method": "POST",*
*"json": request_body*

*The response is as follows:*







*{error: {  code: 401,  message: 'Request is missing required 
authentication credential. Expected OAuth 2 access token, login cookie or 
other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.',
  status: 'UNAUTHENTICATED',  details: [Array]}  }*

I couldn't find anything missing in my authentication credentials. Can you 
help?
Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/871d4b11-3201-49c7-844f-20a341db3900n%40googlegroups.com.


RE: 'Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web

2022-05-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Katherine,

Thanks for reaching out to the Google Ads API Forum.

Could you provide us with the complete request and response logs with the 
request-id, so our team can better check?

For the client library, logging can be enabled by navigating to the Client 
libraries > Your client library (ex Java) > Logging documentation, which you 
can access from this link. You may then send the requested information via the 
Reply privately to author option. If this option is not available, you may send 
the details directly to our googleadsapi-supp...@google.com alias instead.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2asET9: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/LLAhZ0RBS1P000R9QCOOIhSti_GjxciiihYA%40sfdc.net.


Re: 'Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web

2022-05-12 Thread CFJ
I've started seeing this sporadically as well over the last 24-36 hours.  
I've been on the Ads API v10 for several weeks now with zero authentication 
issues.  This error just stated popping up yesterday randomly on a very 
tiny number of requests.

On Thursday, May 12, 2022 at 9:24:53 AM UTC-4 Katherine Martin wrote:

> Hi all,
>
> I am getting the following error: 
> ''Request is missing required authentication credential. Expected OAuth 2 
> access token, login cookie or other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project.'
>
> I am using a developer token, client secret, client id and developer 
> token, so not sure what more it needs.
>
> Thanks,
> Katherine
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/28c3a725-60e6-4226-8dcf-4d3a88ddf296n%40googlegroups.com.


'Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/dev

2022-05-12 Thread Katherine Martin
Hi all,

I am getting the following error: 
''Request is missing required authentication credential. Expected OAuth 2 
access token, login cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.'

I am using a developer token, client secret, client id and developer token, 
so not sure what more it needs.

Thanks,
Katherine

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/728e208b-e42c-4681-9ec9-e8927b764eb2n%40googlegroups.com.


Re: Request is missing required authentication credential

2022-05-05 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Tamas,

We are glad to know that my colleague's (Matt) suggestion worked for you. 
Should you have additional clarifications with the APIs, please write back and 
we'll be happy to assist you.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2aQ0Sp: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/poDfE0RBEV6600bcnTUl-yS0yW1VkBxk5ESg%40sfdc.net.


Re: Request is missing required authentication credential

2022-05-04 Thread Tamas Tyukodi
Hello Matt, 

Thank you for the quick answer and pointing me to the right direction. 
Indeed the issue was on my side, where i miss configured the credential 
fields.

On Wednesday, May 4, 2022 at 4:24:02 PM UTC+2 adsapi wrote:

> Hi Tamas,
>
> Thanks for reaching out. Please note that our team cannot support third 
> party libraries. However, it seems you are not properly sending your 
> request headers. Assuming the library uses REST, please check your headers 
> against this page 
> . 
> For support with the Opteo client library, I would recommend posting your 
> issue on the Opteo issue tracker 
> .
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aQ0Sp: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/0be16fe8-3f7a-449b-95fd-53fa19d91354n%40googlegroups.com.


RE: Request is missing required authentication credential

2022-05-04 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Tamas,

Thanks for reaching out. Please note that our team cannot support third party 
libraries. However, it seems you are not properly sending your request headers. 
Assuming the library uses REST, please check your headers against this page. 
For support with the Opteo client library, I would recommend posting your issue 
on the Opteo issue tracker.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2aQ0Sp: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/qoJSZ0RBD3ZN00CpixIilKTfCoEvlsY2GUwQ%40sfdc.net.


Request is missing required authentication credential

2022-05-03 Thread Tamas Tyukodi
Hello support team,

I have successfully managed to test your java example for.
*ListAccessibleCustomers* from your git examples but as i have to migrate 
Google Adwords to Google Ads in NodeJs, i couldn't manage to set up the 
initial calls.

So using https://github.com/Opteo/google-ads-api for NodeJs and trying to 
use the equivalent method for *ListAccessibleCustomers *i am receiving the 
following error: 
 'Request is missing required authentication credential. Expected OAuth 2 
access token, login cookie or other valid authentication credential.'

I want to point out again, that in Java the connection worked, and the 
credentials were good. But trying to switch it to NodeJs the credentials 
seems to not work (i am using the same credentials).

The failing request ID from node js is:  request_id: 
'2k6wzuRaBuF4wzuYZ7P-JA'


Could you please help me with this?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/45fdc223-15f2-4d31-bfc6-6ea5ebc1181cn%40googlegroups.com.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2022-04-26 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Sajal,

Thank you for the replies. I work with Nirmita and allow me to assist you here.

With regard to your concern "For One Account We are able to generate Access 
token, But for Other App we are not able to generate the Access token..", could 
you please elaborate on this concern and please provide more context of details 
so that we can address this. In addition to our clarification are you referring 
to specific authentication or Google Ads account?

Best regards,

Jinky
Google Ads API Team
ref:_00D1U1174p._5004Q2a5kk2: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/SNfme0RAY9NP00wpBe77ppRDCK4ymHYcG7ag%40sfdc.net.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2022-04-25 Thread Sajal Pal
Hi  Nirmita,
Currently,  we are sending request like below 
GoogleAdsConfig config = new GoogleAdsConfig() {
 DeveloperToken = AdwordsModel.DeveloperToken,
 OAuth2Mode = OAuth2Flow.APPLICATION,
 OAuth2ClientId = AdwordsModel.OAuth2ClientId,
 OAuth2ClientSecret = 
AdwordsModel.OAuth2ClientSecret,
 OAuth2RefreshToken = 
AdwordsModel.OAuth2RefreshToken
};
GoogleAdsClient = new GoogleAdsClient(config);

For One Account We are able to generate Access token, But for Other App we 
are not able to generate the Access token..

On Saturday, April 23, 2022 at 12:13:37 AM UTC+5:30 adsapi wrote:

> Hi Sajal,
>
> Thank you for reaching out to the Google Ads API support team.
>
> To investigate the issue further, could you please provide us with the 
> complete logs (request 
> 
>  
> and response 
> 
>  
> with request-id 
> )
>  
> via the Reply privately to the author option?
>
> Thanks,
> [image: Google Logo] 
> Nirmita 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2a5kk2: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/28a31136-1687-4d6f-a92c-1779c9193691n%40googlegroups.com.


Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2022-04-21 Thread Sajal Pal
Hi,
I am trying to migrate Adwords API(sunset on 27th April, 2022) to Google 
Ads api. Using Asp.Net Core(5.0) and c#.

Exception:
Google.Ads.GoogleAds.V10.Errors.GoogleAdsException
  HResult=0x80131500
  Message=Status(StatusCode="Unauthenticated", Detail="Request is missing 
required authentication credential. Expected OAuth 2 access token, login 
cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.";, 

I want to use "keywordPlanIdeaService"
Can anyone have any suggestions.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/da71a4d3-4b18-4ad4-ad15-063cadf3e18an%40googlegroups.com.


Re: Request is missing required authentication credential

2022-02-07 Thread Walter Bodwell
I see what I did wrong.  For the production account, I need to use the 
AdWords developer token.  I was erroneously using the access token from 
OAuth.  The sandbox account must have let me slide on this.  The production 
account, not so much.

Walter

On Monday, February 7, 2022 at 9:30:36 AM UTC-6 Walter Bodwell wrote:

> I have two Google OAuth applications.  One is used for testing and hits a 
> sandbox account.  The other just got verified for production use and is 
> hitting our production account.
>
> The sandbox version is working just fine.  The same code fails on the 
> production version.
>
> When I try to call the new Google Ads API using the production version, 
> I'm getting:
> google.ads.googleads.errors.GoogleAdsException: 
> (<_SingleThreadedRendezvous of RPC that terminated with: status = 
> StatusCode.UNAUTHENTICATED details = "Request is missing required 
> authentication credential. Expected OAuth 2 access token, login cookie or 
> other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project."; 
> debug_error_string = 
> "{"created":"@1644245725.347305819","description":"Error received from peer 
> ipv4:142.250.73.202:443","file":"src/core/lib/surface/call.cc","file_line":1074,"grpc_message":"Request
>  
> is missing required authentication credential. Expected OAuth 2 access 
> token, login cookie or other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}";
>  
> >, <_SingleThreadedRendezvous of RPC that terminated with: status = 
> StatusCode.UNAUTHENTICATED details = "Request is missing required 
> authentication credential. Expected OAuth 2 access token, login cookie or 
> other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project."; 
> debug_error_string = 
> "{"created":"@1644245725.347305819","description":"Error received from peer 
> ipv4:142.250.73.202:443","file":"src/core/lib/surface/call.cc","file_line":1074,"grpc_message":"Request
>  
> is missing required authentication credential. Expected OAuth 2 access 
> token, login cookie or other valid authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}";
>  
> >, errors { error_code { authentication_error: AUTHENTICATION_ERROR } 
> message: "Authentication of the request failed." } request_id: 
> "fPZpK5epSvpfmvbC3luD-w" , 'fPZpK5epSvpfmvbC3luD-w')
>
> When I try to call the old Google AdWords API with the production version, 
> I'm getting:
> googleads.errors.AdWordsReportBadRequestError: Type: 
> QuotaCheckError.INVALID_TOKEN_HEADER
>
> I've verified the client id, client secret, token and refresh token and it 
> matches what I used / got when I went through the Oauth process (i.e., I'm 
> not mixing the sandbox and production credentials).
>
> The only noticeable difference between the sandbox and production 
> credentials is that the token is much longer for production (163 characters 
> for production; only 22 for sandbox)
>
> Thanks for your help,
> Walter
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4deaaed1-b9dc-4f8b-b0a4-2f9207e5cf21n%40googlegroups.com.


Request is missing required authentication credential

2022-02-07 Thread Walter Bodwell
I have two Google OAuth applications.  One is used for testing and hits a 
sandbox account.  The other just got verified for production use and is 
hitting our production account.

The sandbox version is working just fine.  The same code fails on the 
production version.

When I try to call the new Google Ads API using the production version, I'm 
getting:
google.ads.googleads.errors.GoogleAdsException: (<_SingleThreadedRendezvous 
of RPC that terminated with: status = StatusCode.UNAUTHENTICATED details = 
"Request is missing required authentication credential. Expected OAuth 2 
access token, login cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project."; 
debug_error_string = 
"{"created":"@1644245725.347305819","description":"Error received from peer 
ipv4:142.250.73.202:443","file":"src/core/lib/surface/call.cc","file_line":1074,"grpc_message":"Request
 
is missing required authentication credential. Expected OAuth 2 access 
token, login cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}";
 
>, <_SingleThreadedRendezvous of RPC that terminated with: status = 
StatusCode.UNAUTHENTICATED details = "Request is missing required 
authentication credential. Expected OAuth 2 access token, login cookie or 
other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project."; 
debug_error_string = 
"{"created":"@1644245725.347305819","description":"Error received from peer 
ipv4:142.250.73.202:443","file":"src/core/lib/surface/call.cc","file_line":1074,"grpc_message":"Request
 
is missing required authentication credential. Expected OAuth 2 access 
token, login cookie or other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}";
 
>, errors { error_code { authentication_error: AUTHENTICATION_ERROR } 
message: "Authentication of the request failed." } request_id: 
"fPZpK5epSvpfmvbC3luD-w" , 'fPZpK5epSvpfmvbC3luD-w')

When I try to call the old Google AdWords API with the production version, 
I'm getting:
googleads.errors.AdWordsReportBadRequestError: Type: 
QuotaCheckError.INVALID_TOKEN_HEADER

I've verified the client id, client secret, token and refresh token and it 
matches what I used / got when I went through the Oauth process (i.e., I'm 
not mixing the sandbox and production credentials).

The only noticeable difference between the sandbox and production 
credentials is that the token is much longer for production (163 characters 
for production; only 22 for sandbox)

Thanks for your help,
Walter

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/24a30198-d52d-4cb8-a7ca-1a0d0a3961adn%40googlegroups.com.


Request is missing required authentication credential

2022-02-07 Thread alexmc...@gmail.com
Hi,

I'm currently trying to migrate our system from the old AdWords API to the 
Google Ads API and I've hit a bit of a wall trying to make the first call. 
I'm just using the GetKeywordStats example and as far as I can see 
everything is fine in terms of OAuth, we get an access token which we then 
try to use in the call but this throws an exception telling us we're 
missing the required credentials.

"StatusCode="Unauthenticated", Detail="Request is missing required 
authentication credential. Expected OAuth 2 access token, login cookie or 
other valid authentication credential."

I'm not sure whether this is more an account setup/user access issue rather 
than us simply missing credentials like the error says but we're using the 
same setup we've been successfully using with the AdWords API for years, 
the only difference being that we created a new ClientID within the same 
google dev console project. Appreciate this is a new API and also the fact 
that I only really look at this stuff when it desperately needs upgrading 
so any feedback is welcome :)

I've got logs ready to send if somebody could get back to me on this 
please, cheers!

Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f1d55d55-9a23-4fc8-8006-d0b1a79a4607n%40googlegroups.com.


RE: equest is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2022-02-01 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Muneeb,

Thanks for reaching out to the Google Ads API support. For us to investigate, 
could you please share the complete request and response logs with request-id 
and request header generated on your end of API communications of the report 
pull. Kindly use the Reply privately to the author  option while sharing the 
details.
For the PHP client library, logging can be enabled by navigating to the Client 
libraries > Your client library > Logging documentation, which you can access 
from this link.

Best regards,

Jakeia Sabrina
Google Ads API Team
ref:_00D1U1174p._5004Q2W3BpP: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/TAQfw0R6N6W800vRvb9bGYRnalg7YzHz8KtA%40sfdc.net.


equest is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2022-01-31 Thread Muneeb Mansoor
I want to fetch user Google contact with PHP.
Code and Response(ERROR) attached. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0fde9600-6962-4993-9864-724f60a7cc60n%40googlegroups.com.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2022-01-06 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Martin,

Apologies for the delayed response. Could you point me to that thread you're 
referencing?

Thanks,
Ben, Google Ads API Team
ref:_00D1U1174p._5004Q2R74x8: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/5wFsE0R5AXCQ000jNDnG3eTGSFS1yZhMWfwg%40sfdc.net.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-12-06 Thread Martin Levi
Hi Ben,

I have just read in another thread that the Master Account needs to be set 
up under a unique gmail address.  My Master Account is under the same email 
address that owns my Sub Ad Accounts.  Is this the reason for my OAuth 
issues?

Regards,
Martin

On Wednesday, December 1, 2021 at 11:43:35 PM UTC+2 Martin Levi wrote:

> Hi Ben,
>
> I have been diving in to the documentation on the client library from your 
> link.  I looked at this before, and now I remember more clearly why I was 
> reluctant to use a Client Library.
>
> I do not have any local PHP environment.  From what I understand at first 
> glance, to run a test locally I would need at a minimum PHP for Windows, 
> PECL, Composer, gRPC, and only then can I install and run the PHP Client 
> Library.  To use the Client Library on my hosted web server I obviously 
> have PHP, and there is an option to install CodeGen_PECL (1.1.3).  It is 
> not clear to me what other installations I would need, but in any case I 
> don't need to touch my cron job; it is a standalone process whose only 
> function is to provide (in a file) a continuously refreshed oauth 2.0 
> access token.
>
> Is it possible to analyze the curl logs I sent you?  Here is the relevant 
> code I ran:
>
> *$baseURL = 
> 'https://googleads.googleapis.com/v9/customers:listAccessibleCustomers 
> ';*
>
> *$headers = [*
> *'Host: googleads.googleapis.com ',*
> *'User-Agent: curl',*
> *'Content-Type: application/json',*
> *'Accept: application/json',*
> *'Authorization: Bearer '.get_gg_oauth2_token(),*
> *'developer-token: '.get_gg_developer_token (),*
> *'login-customer-id: '.get_gg_manager_customer_id ()*
> *];*
>
> *$curl = curl_init();*
> *curl_setopt($curl, CURLOPT_URL, $baseURL);*
> *curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);*
> *curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);*
> *curl_setopt($curl, CURLOPT_VERBOSE, true);*
> *$streamVerboseHandle = fopen(private_folder().'/curl_log.txt', 'w+');*
> *curl_setopt($curl, CURLOPT_STDERR, $streamVerboseHandle);*
>
> *$response = curl_exec($curl);*
> *$responseFile = fopen(private_folder().'/curl_response.txt', 'w');*
> *fwrite($responseFile, $response);*
> *curl_close ($curl);*
>
> You can see the exact headers that were sent in the curl_log.txt file that 
> I sent to you privately.
>
> Regards,
> Martin
>
> On Wednesday, December 1, 2021 at 8:27:10 PM UTC+2 Martin Levi wrote:
>
>> Hi Ben,
>>
>> I'm still a little concerned about my account setup since the 
>> documentation is dispersed over several different documents that are all 
>> written for a variety of use cases.  Also the curl response contains the 
>> message: "User in the cookie is not a valid Ads user."
>>
>> I will set up the client library in a few hours when my kids are in bed!  
>> Meanwhile I will send you privately the logs from my curl request; if there 
>> is an error in my access token retrieval it should be apparent from the 
>> request log.
>>
>> Regards,
>> Martin
>> On Wednesday, December 1, 2021 at 6:58:52 PM UTC+2 adsapi wrote:
>>
>>> Thanks Martin,
>>>
>>> As far as I can tell your account set up looks OK, but since it lives in 
>>> Pantheon I can't examine your account directly so I can't be 100% sure.
>>>
>>> One benefit of using a client library is it will handle the process of 
>>> generating and refreshing your access token automatically, which might be 
>>> very valuable in this case. While I look over your script below, would you 
>>> mind running a basic test to see if the PHP client library can make a 
>>> successful request with your existing service account credentials? The 
>>> documentation for setting up the library is here 
>>> .
>>>  
>>> You should be able to execute the test locally to verify it, so that you 
>>> don't have to modify your cron job script. Mainly I'm curious if you get 
>>> the same error, if not, and the request succeeds, then there might be an 
>>> issue with your logic that retrieves the access token.
>>>
>>>
>>> Thanks,
>>> Ben, Google Ads API Team
>>>
>>> ref:_00D1U1174p._5004Q2R74x8: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 

Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-12-01 Thread Martin Levi
Hi Ben,

I have been diving in to the documentation on the client library from your 
link.  I looked at this before, and now I remember more clearly why I was 
reluctant to use a Client Library.

I do not have any local PHP environment.  From what I understand at first 
glance, to run a test locally I would need at a minimum PHP for Windows, 
PECL, Composer, gRPC, and only then can I install and run the PHP Client 
Library.  To use the Client Library on my hosted web server I obviously 
have PHP, and there is an option to install CodeGen_PECL (1.1.3).  It is 
not clear to me what other installations I would need, but in any case I 
don't need to touch my cron job; it is a standalone process whose only 
function is to provide (in a file) a continuously refreshed oauth 2.0 
access token.

Is it possible to analyze the curl logs I sent you?  Here is the relevant 
code I ran:

*$baseURL = 
'https://googleads.googleapis.com/v9/customers:listAccessibleCustomers';*

*$headers = [*
*'Host: googleads.googleapis.com',*
*'User-Agent: curl',*
*'Content-Type: application/json',*
*'Accept: application/json',*
*'Authorization: Bearer '.get_gg_oauth2_token(),*
*'developer-token: '.get_gg_developer_token (),*
*'login-customer-id: '.get_gg_manager_customer_id ()*
*];*

*$curl = curl_init();*
*curl_setopt($curl, CURLOPT_URL, $baseURL);*
*curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);*
*curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);*
*curl_setopt($curl, CURLOPT_VERBOSE, true);*
*$streamVerboseHandle = fopen(private_folder().'/curl_log.txt', 'w+');*
*curl_setopt($curl, CURLOPT_STDERR, $streamVerboseHandle);*

*$response = curl_exec($curl);*
*$responseFile = fopen(private_folder().'/curl_response.txt', 'w');*
*fwrite($responseFile, $response);*
*curl_close ($curl);*

You can see the exact headers that were sent in the curl_log.txt file that 
I sent to you privately.

Regards,
Martin

On Wednesday, December 1, 2021 at 8:27:10 PM UTC+2 Martin Levi wrote:

> Hi Ben,
>
> I'm still a little concerned about my account setup since the 
> documentation is dispersed over several different documents that are all 
> written for a variety of use cases.  Also the curl response contains the 
> message: "User in the cookie is not a valid Ads user."
>
> I will set up the client library in a few hours when my kids are in bed!  
> Meanwhile I will send you privately the logs from my curl request; if there 
> is an error in my access token retrieval it should be apparent from the 
> request log.
>
> Regards,
> Martin
> On Wednesday, December 1, 2021 at 6:58:52 PM UTC+2 adsapi wrote:
>
>> Thanks Martin,
>>
>> As far as I can tell your account set up looks OK, but since it lives in 
>> Pantheon I can't examine your account directly so I can't be 100% sure.
>>
>> One benefit of using a client library is it will handle the process of 
>> generating and refreshing your access token automatically, which might be 
>> very valuable in this case. While I look over your script below, would you 
>> mind running a basic test to see if the PHP client library can make a 
>> successful request with your existing service account credentials? The 
>> documentation for setting up the library is here 
>> .
>>  
>> You should be able to execute the test locally to verify it, so that you 
>> don't have to modify your cron job script. Mainly I'm curious if you get 
>> the same error, if not, and the request succeeds, then there might be an 
>> issue with your logic that retrieves the access token.
>>
>>
>> Thanks,
>> Ben, Google Ads API Team
>>
>> ref:_00D1U1174p._5004Q2R74x8: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/e5675f4a-72d0-4fb4-93ed-6d973568d396n%40googlegroups.com.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-12-01 Thread Martin Levi
Hi Ben,

I'm still a little concerned about my account setup since the documentation 
is dispersed over several different documents that are all written for a 
variety of use cases.  Also the curl response contains the message: "User 
in the cookie is not a valid Ads user."

I will set up the client library in a few hours when my kids are in bed!  
Meanwhile I will send you privately the logs from my curl request; if there 
is an error in my access token retrieval it should be apparent from the 
request log.

Regards,
Martin
On Wednesday, December 1, 2021 at 6:58:52 PM UTC+2 adsapi wrote:

> Thanks Martin,
>
> As far as I can tell your account set up looks OK, but since it lives in 
> Pantheon I can't examine your account directly so I can't be 100% sure.
>
> One benefit of using a client library is it will handle the process of 
> generating and refreshing your access token automatically, which might be 
> very valuable in this case. While I look over your script below, would you 
> mind running a basic test to see if the PHP client library can make a 
> successful request with your existing service account credentials? The 
> documentation for setting up the library is here 
> .
>  
> You should be able to execute the test locally to verify it, so that you 
> don't have to modify your cron job script. Mainly I'm curious if you get 
> the same error, if not, and the request succeeds, then there might be an 
> issue with your logic that retrieves the access token.
>
>
> Thanks,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5004Q2R74x8: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/fec77851-265e-400c-998f-8c5660b31685n%40googlegroups.com.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-12-01 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Thanks Martin,

As far as I can tell your account set up looks OK, but since it lives in 
Pantheon I can't examine your account directly so I can't be 100% sure.

One benefit of using a client library is it will handle the process of 
generating and refreshing your access token automatically, which might be very 
valuable in this case. While I look over your script below, would you mind 
running a basic test to see if the PHP client library can make a successful 
request with your existing service account credentials? The documentation for 
setting up the library is here. You should be able to execute the test locally 
to verify it, so that you don't have to modify your cron job script. Mainly I'm 
curious if you get the same error, if not, and the request succeeds, then there 
might be an issue with your logic that retrieves the access token.

Thanks,
Ben, Google Ads API Team
ref:_00D1U1174p._5004Q2R74x8: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/vMO7R0R3G4HR00Fu2hTAWYTOits2mfcBBsWA%40sfdc.net.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-12-01 Thread Martin Levi
Hi Ben,

Thanks for your reply.  Do I understand correctly that as far as you can 
see the setup of my Master Ad Account, the gmail account that owns it, the 
Master Account that owns the Developer Token, the Google Workspace and the 
Service Account is all OK?

Yes, I am using php curl to request and store the access token on my web 
server.  Here is the code, with a few redactions.  The code is executed 
every 6 minutes via cron, so the token is usually refreshed after 48 
minutes.

*expiry;*
*$expiry_time=   $expiry - time();*

*// Refresh token if < 15 minutes to expiry*
*if ($expiry_time < 900) {*
*// JWT Header*
*$JWTHead=   '{"alg":"RS256","typ":"JWT"}';*
*$JWTHead=   base64_encode($JWTHead);*

*// JWT Claim Data*
*$keyDataJsonFile = file_get_contents('/**/**.json');*
*$keyData=   json_decode($keyDataJsonFile);*
*$iss=   $keyData->client_email;*
*//$sub=   $keyData->client_email;*
*$scope  =   "https://www.googleapis.com/auth/adwords";*
*$aud=   $keyData->token_uri;*
*$iat=   time();*
*$exp=   $iat + 3600;*
*//$JWTClaim   =  
 
'{"iss":"'.$iss.'","sub":"'.$sub.'","scope":"'.$scope.'","aud":"'.$aud.'","iat":"'.$iat.'","exp":"'.$exp.'"}';*
*$JWTClaim   =  
 
'{"iss":"'.$iss.'","scope":"'.$scope.'","aud":"'.$aud.'","iat":"'.$iat.'","exp":"'.$exp.'"}';*
*$JWTClaim   =   base64_encode($JWTClaim);*

*// JWT Signature*
*$privateKey =   $keyData->private_key;*
*openssl_sign(*
*$JWTHead.".".$JWTClaim,*
*$JWTSignature,*
*$privateKey,*
*"sha256WithRSAEncryption"*
*);*
*$JWTSignature = base64_encode($JWTSignature);*

*// Post Token Request*
*$curl   =   curl_init($aud);*
*$parms  =   [*
*'grant_type' => 
'urn:ietf:params:oauth:grant-type:jwt-bearer',*
*'assertion' => 
$JWTHead.".".$JWTClaim.".".$JWTSignature*
*   ];*
*$data   =   http_build_query($parms);*

*curl_setopt($curl, CURLOPT_URL, $aud);*
*curl_setopt($curl, CURLOPT_POST, true);*
*curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);*
*curl_setopt($curl, CURLOPT_POSTFIELDS, $data);*

*$response   =   curl_exec($curl);*
*curl_close($curl);*

*$responseData   =   json_decode($response);*
*$access_token   =   $responseData->access_token;*

*// If token not granted send email*
*if (!isset($access_token)) {*
*$tomail =   "**";*
*$headers=   'From: **';*
*$subject=   "OAuth Token Not Granted: Response Data";*
*mail($tomail, $subject, var_dump($responseData), $headers);*
*} else {*
*// otherwise write new token data to file*
*$expires_in =   $responseData->expires_in;*
*$token_type =   $responseData->token_type;*
*$newExpiry  =   $iat + $expires_in;*
*$newTokenData   =   array(*
*"access_token"=>$access_token,*
*"expiry"=>$newExpiry,*
*"token_type"=>$token_type*
*);*
*$newTokenJson   =   json_encode($newTokenData);*
*file_put_contents(' /**/**.json  ', 
$newTokenJson);*
*}*
*}*
*?>*

I haven't tried using a client library - my general preference is not to 
have to internalize the workings of another layer of software and its 
attendant documentation unless there are convincing benefits to offset the 
time investment.

Please let me know if there is anything else I can do to assist your 
investigation.

Regards,
Martin

On Tuesday, November 30, 2021 at 10:43:58 PM UTC+2 adsapi wrote:

> Hi Martin,
>
> Apologies for the delayed response here. I'm still trying to determine the 
> exact cause of this issue, but it's currently not quite clear. It doesn't 
> appear related to how impersonation was set up.
>
> It looks like you're using curl to make these requests, right? Which means 
> you must be manually generating an access token - could you share more 
> details on how you're generating that token? Also, have you tried using a 
> client library with these service account credentials?
>
> Thanks,
> Ben, Google Ads API Team
>
> ref:_00D1U1174p._5004Q2R74x8: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.goog

Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-11-30 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Martin,

Apologies for the delayed response here. I'm still trying to determine the 
exact cause of this issue, but it's currently not quite clear. It doesn't 
appear related to how impersonation was set up.

It looks like you're using curl to make these requests, right? Which means you 
must be manually generating an access token - could you share more details on 
how you're generating that token? Also, have you tried using a client library 
with these service account credentials?

Thanks,
Ben, Google Ads API Team
ref:_00D1U1174p._5004Q2R74x8: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/yhl5O0R3EK8W00t09hOlLlT4q35olUXsttyw%40sfdc.net.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-11-23 Thread Martin Levi
Hi,

I sent the requested logs on November 12th, but I haven't heard back from 
anyone regarding the issue.  Please can someone update me?

Regards,
Martin

On Monday, November 8, 2021 at 6:56:18 PM UTC+2 Martin Levi wrote:

> Hi Yasar,
>
> Thanks for your response.  I followed the instructions in this document 
>  
> which 
> has a slightly different workflow.  I think that I have the right pieces 
> but not set up the right way.
>
> I will send you the information you have requested privately.
>
> I need a service account because I will be running unattended processes, 
> some of which are initiated by postback routines from outside my server.
>
> Regards,
> Martin
>
> On Monday, November 8, 2021 at 11:06:24 AM UTC+2 adsapi wrote:
>
>> Hi Martin,
>>
>> Thanks for reaching out to us.
>>
>> Could you confirm if you already followed the instructions discussed in 
>> this document 
>> , 
>> especially 
>> the prerequisite? If yes and the issue still persists, then could you 
>> provide the following details via *Reply privately to author* option to 
>> further investigate?
>>
>>- User account / email address that you've used in setting up service 
>>account through API 
>>- Customer ID 
>>- Complete  request 
>>
>> 
>>  
>>and response 
>>
>> 
>>  
>>logs with request ID 
>>
>> 
>>  
>>generated on your end where we can see the issue 
>>
>>
>> However, kindly note that we strongly recommend using OAuth2 desktop app 
>> or web app flow 
>> 
>>  
>> instead of service accounts *unless you need a domain-specific feature* 
>> (for example, impersonation). OAuth2 desktop app and web app flows do 
>> require an initial user interaction for granting access to the account, but 
>> are much simpler to set up.
>>
>> Regards, 
>> [image: Google Logo] 
>> Yasar 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2R74x8: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/c78892f1-e118-4906-9be6-00f9f4cdc786n%40googlegroups.com.


Re: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-11-08 Thread Martin Levi
Hi Yasar,

Thanks for your response.  I followed the instructions in this document 
 which 
has a slightly different workflow.  I think that I have the right pieces 
but not set up the right way.

I will send you the information you have requested privately.

I need a service account because I will be running unattended processes, 
some of which are initiated by postback routines from outside my server.

Regards,
Martin

On Monday, November 8, 2021 at 11:06:24 AM UTC+2 adsapi wrote:

> Hi Martin,
>
> Thanks for reaching out to us.
>
> Could you confirm if you already followed the instructions discussed in 
> this document 
> , 
> especially 
> the prerequisite? If yes and the issue still persists, then could you 
> provide the following details via *Reply privately to author* option to 
> further investigate?
>
>- User account / email address that you've used in setting up service 
>account through API 
>- Customer ID 
>- Complete  request 
>
> 
>  
>and response 
>
> 
>  
>logs with request ID 
>
> 
>  
>generated on your end where we can see the issue 
>
>
> However, kindly note that we strongly recommend using OAuth2 desktop app 
> or web app flow 
> 
>  
> instead of service accounts *unless you need a domain-specific feature* 
> (for example, impersonation). OAuth2 desktop app and web app flows do 
> require an initial user interaction for granting access to the account, but 
> are much simpler to set up.
>
> Regards, 
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2R74x8: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/bd1ed282-86f6-440b-8e68-aa01b3a6n%40googlegroups.com.


RE: Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-11-08 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Martin,

Thanks for reaching out to us.

Could you confirm if you already followed the instructions discussed in this 
document, especially the prerequisite? If yes and the issue still persists, 
then could you provide the following details via Reply privately to author 
option to further investigate?

User account / email address that you've used in setting up service account 
through API
Customer ID
Complete request and response logs with request ID generated on your end where 
we can see the issue


However, kindly note that we strongly recommend using OAuth2 desktop app or web 
app flow instead of service accounts unless you need a domain-specific feature 
(for example, impersonation). OAuth2 desktop app and web app flows do require 
an initial user interaction for granting access to the account, but are much 
simpler to set up.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2R74x8: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/x-daR0R28XA600JAzQOOjTSsWjwZEyeM3KJg%40sfdc.net.


Service Account receives HTTP code 401: Request is missing required authentication credential.

2021-11-07 Thread Martin Levi
Hi,
I have a developers token for my master ad account, created a service 
account, created a public/private key pair, and enabled domain wide 
delegation.

I have successfully requested an access token (server to server in php) and 
have a Cron job that refreshes the token when it is around 48 minutes old.  
All that part works fine.

But when I try to call the Google Ads API (again in php, server to server 
and without using the client libraries) using the current token, I get the 
HTTP 401 code.
"Request is missing required authentication credential. Expected OAuth 2 
access token, login cookie or other valid authentication credential.
UNAUTHENTICATED"

There many different elements in the overall setup and I suspect that I may 
have failed to "join the dots" somewhere.  The documentation is not easy to 
follow.

Please can someone help me to solve this.

Thanks in advance,
Martin

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7d1222ea-01a0-417c-bafa-9c9d1ae4ced7n%40googlegroups.com.


RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

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

Thanks for reaching out to us.

Could you provide us with the complete request and response logs with the 
request-id, so our team can better check?

If you haven't yet, logging can be enabled by navigating to the Client 
libraries > Your client library (ex. Java) > Logging documentation, which you 
can access from this link. You may then send the requested information via the 
Reply privately to author option. If this option is not available, you may send 
the details directly to our googleadsapi-supp...@google.com alias instead.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2LnOgb: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/K1Rdd0QXXF3600yKnQOHzDT9en5jXkgtvMwg%40sfdc.net.


RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

2021-04-02 Thread Google Ads API Forum Advisor Prod
Hello,

Can you please send the full API request and response logs through reply 
privately so I can take a closer look?

Thanks,
Anthony

Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q2Ep2Ij: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/SRsAE0QQXZ2F00gYuZZwRQQC-JRF3Q0ZQHFQ%40sfdc.net.


Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

2021-04-01 Thread ma zhiwei
Hi,

I am using google ads api to get adwords data, but I got an error when I 
execute the code.
```
$oAuth2Credential = (new 
OAuth2TokenBuilder())->fromFile("google_ads_php.ini")->build();
// OAuth2 credentials above.
$googleAdsClient = (new 
GoogleAdsClientBuilder())->fromFile("google_ads_php.ini")
->withOAuth2Credential($oAuth2Credential)
->build();

$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();

$customerServiceClient = $googleAdsClient->getCustomerServiceClient();

// Issues a request for listing all accessible customers.
$accessibleCustomers = $customerServiceClient->listAccessibleCustomers();
print 'Total results: ' . count($accessibleCustomers->getResourceNames()) . 
PHP_EOL;
```
Error:
```
{ "message": "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https:\/\/developers.google.com\/identity\/sign-in\/web\/devconsole-project.", 
"code": 16, "status": "UNAUTHENTICATED", "details": [ { "@type": 
"google.ads.googleads.v6.errors.googleadsfailure-bin", "data": "" }, { "@type": "grpc-status-details-bin", "data": "" }, { "@type": "request-id", "data": "feAcN0Pr2ap5iWrpDaC-rA" 
} ] }
```

After learning, someone said that it could be the wrong refresh token, but 
I can use the refresh token  to refresh access token.  

How can I solve it?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3c4c5266-b938-482e-a236-082a10953ea7n%40googlegroups.com.


Re: Missing Required Authentication

2020-07-31 Thread Mario Anes
Thanks Nadine.  I replied to the private message.  Please let me know if 
you do not get the message.

Best,
Mario

On Friday, July 31, 2020 at 2:17:07 PM UTC-7 adsapiforumadvisor wrote:

> Hello Mario,
>
> I sent a private message to your email address on this thread. Please tell 
> me if you did not see it.
>
> Thanks,
> Nadine, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/5008ba37-7e05-4b1e-897b-cfba944c7b5an%40googlegroups.com.


Re: Missing Required Authentication

2020-07-31 Thread Google Ads API Forum Advisor Prod
Hello Mario,

I sent a private message to your email address on this thread. Please tell me 
if you did not see it.

Thanks,
Nadine, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/T0Uvc0QECR3W00KAFfRDdaT6mvgNyBOyJxuw%40sfdc.net.


Re: Missing Required Authentication

2020-07-31 Thread Mario Anes
Hi Nadine,

Thanks for looking into this.  So throughout the past week, I've tried 
different ways to make the API call.  For that particular statement, I was 
using the .net client library.  With the library, I don't use the access 
token directly.  The library only requires dev token, refresh token, client 
id and client secret.  I believe the library should be managing access 
token.

With the most recent attempt, the one that I sent the response reply a 
couple of messages ago, I use the 
oauthplayground, https://developers.google.com/oauthplayground/.  With this 
attempt, the Web UI takes care of getting the access token on Step 2, when 
I click on the "Exchange authorization code for tokens" button.

Best,
Mario

On Friday, July 31, 2020 at 1:29:18 PM UTC-7 adsapiforumadvisor wrote:

> Hello Mario,
>
>
> I take a look at issues when they get really odd; what you're experiencing 
> is definitely surprising. I ready something that you said earlier, and I 
> want to make sure there isn't a misunderstanding. You said: 
>
>- Then using the dev token, refresh token, client id, and client 
>secret in the program to make API call. 
>
> Do you pass the refresh token straight into the request, or do you use the 
> access token to make the request? You need to use the refresh token to get 
> an access token. The refresh token doesn't go into the actual query 
> request, the access token does.
>
> Thanks,
> Nadine Wang, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/28e414b1-7837-4c01-a1e4-6744ef205ae1n%40googlegroups.com.


Re: Missing Required Authentication

2020-07-31 Thread Google Ads API Forum Advisor Prod
Hello Mario,

I take a look at issues when they get really odd; what you're experiencing is 
definitely surprising. I ready something that you said earlier, and I want to 
make sure there isn't a misunderstanding. You said:

Then using the dev token, refresh token, client id, and client secret in the 
program to make API call.

Do you pass the refresh token straight into the request, or do you use the 
access token to make the request? You need to use the refresh token to get an 
access token. The refresh token doesn't go into the actual query request, the 
access token does.

Thanks,
Nadine Wang, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/SduUp0QECOW800Wnv2xaXhR5mWRxm0KqGS2Q%40sfdc.net.


Re: Missing Required Authentication

2020-07-31 Thread Google Ads API Forum Advisor Prod
Hi Mario,

I'll take a look at this internally with my team and get back to you as soon as 
possible.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/bpPah0QECLDV007HHhTmwYT7eiYG3fKT1nQQ%40sfdc.net.


Re: Missing Required Authentication

2020-07-31 Thread Mario Anes
Hi, 

Yes, I put the client id and secret into the API call.  The OAuthPlayground 
won't allow the call (buttons are greyed out) without the client id and 
secret put into the settings.  For this request, I didn't use any client 
library.  I use the oauthplayground website to make the API 
call: https://developers.google.com/oauthplayground/

Best,
Mario
On Friday, July 31, 2020 at 11:05:58 AM UTC-7 adsapiforumadvisor wrote:

> Hi Mario,
>
> So it looks like you've gotten your client ID and client Secret and 
> refresh token from the playground successfully. Could you confirm if you've 
> put the client ID and client Secret into the API call? It looks like your 
> code isn't reading the client ID and client Secret from your properties 
> file (java) or yaml file (python). Could you confirm which client library 
>  you're 
> using?
>
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/0aa7508a-e497-48e7-986c-30c44cf5c5b7n%40googlegroups.com.


Re: Missing Required Authentication

2020-07-31 Thread Google Ads API Forum Advisor Prod
Hi Mario,

So it looks like you've gotten your client ID and client Secret and refresh 
token from the playground successfully. Could you confirm if you've put the 
client ID and client Secret into the API call? It looks like your code isn't 
reading the client ID and client Secret from your properties file (java) or 
yaml file (python). Could you confirm which client library you're using?

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/tk29Z0QECI9800sTq5PLxjQ1WjS2cwFTjABA%40sfdc.net.


Re: Missing Required Authentication

2020-07-31 Thread Mario Anes
Hi,

Unfortunately, still haven't.  I tried just a few minutes ago using the 
oauth playground.   These are the steps:
1. I followed the instruction 
here: https://developers.google.com/google-ads/api/docs/oauth/playground
2. Then I use the searchStream query on the last section of this 
page: https://developers.google.com/google-ads/api/docs/rest/common/search

This is the request:

POST /v4/customers/5287347420/googleAds:searchStream HTTP/1.1
Host: googleads.googleapis.com
Developer-token: (removed)
Content-length: 193
Content-type: application/json
Authorization: Bearer (removed)
{
"query": "SELECT ad_group_criterion.keyword.text, 
ad_group_criterion.status FROM ad_group_criterion WHERE 
ad_group_criterion.type = 'KEYWORD' AND ad_group_criterion.status = 
'ENABLED'"
}


This is the response:

HTTP/1.1 401 Unauthorized
Content-length: 653
X-xss-protection: 0
X-content-type-options: nosniff
Transfer-encoding: chunked
Request-id: L_p_e7V2HwauFB2TGytHnA
Vary: Origin, X-Origin, Referer
Server: ESF
-content-encoding: gzip
Cache-control: private
Date: Fri, 31 Jul 2020 13:42:29 GMT
X-frame-options: SAMEORIGIN
Alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":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"
Content-type: application/json; charset=UTF-8

[
  {
"error": {
  "status": "UNAUTHENTICATED", 
  "message": "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.";, 
  "code": 401, 
  "details": [
{
  "errors": [
{
  "errorCode": {
"authenticationError": "AUTHENTICATION_ERROR"
  }, 
  "message": "Authentication of the request failed."
}
  ], 
  "@type": 
"type.googleapis.com/google.ads.googleads.v4.errors.GoogleAdsFailure"
}
  ]
}
  }
]

Best,
Mario

On Thursday, July 30, 2020 at 8:36:47 AM UTC-7 adsapiforumadvisor wrote:

> Hi Mario,
>
> Thank you for the update. Were you able to perform the call successfully?
>
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/016d107b-f0eb-43f8-9fb1-d763bf453809n%40googlegroups.com.


Re: Missing Required Authentication

2020-07-30 Thread Google Ads API Forum Advisor Prod
Hi Mario,

Thank you for the update. Were you able to perform the call successfully?

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/BCVUC0QEAGOQ00EPl33LVmTJKkkIRcBuODQA%40sfdc.net.


Re: Missing Required Authentication

2020-07-29 Thread Mario Anes
Hi,

Just to confirm, I'm looking to access the Google Ads API, instead of 
AdWords API.  But since from what I understand the authentication is the 
same, yes, I have followed the steps to create client credentials (
https://developers.google.com/google-ads/api/docs/first-call/oauth-cloud-project).
  
I have tried putting them both in properties file, and set them manually in 
code.  Using client id and client secret I get a refresh token.  Then using 
the dev token, refresh token, client id, and client secret in the program 
to make API call.

Best,
Mario
On Wednesday, July 29, 2020 at 10:45:11 AM UTC-7 adsapiforumadvisor wrote:

> Hi Mario,
>
> Thank you for the update with the logs. I took a closer look at this issue 
> and it looks like you're missing your client credentials. Have you followed 
> these 
> steps 
> 
>  
> to create your client credentials, and have you put them in the properties 
> file that holds your developer token, refresh token, and client 
> credentials? Could you check that you have set your client credentials and 
> try the call again?
>
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/f73969f6-4ded-498b-b813-5652c9bda657n%40googlegroups.com.


Re: Missing Required Authentication

2020-07-29 Thread Google Ads API Forum Advisor Prod
Hi Mario,

Thank you for the update with the logs. I took a closer look at this issue and 
it looks like you're missing your client credentials. Have you followed these 
steps to create your client credentials, and have you put them in the 
properties file that holds your developer token, refresh token, and client 
credentials? Could you check that you have set your client credentials and try 
the call again?

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/idVBR0QE8RYM00-27zztVnQJqWi_T5kt_A9g%40sfdc.net.


Re: Missing Required Authentication

2020-07-29 Thread Mario Anes
Hi Bryan,

Thanks for your reply.  It doesn't seem that I have permission to use the 
reply privately to author, even after setting gmail as the handler for 
mailto.  I followed the instruction here, 
https://support.google.com/a/users/answer/9308783?hl=en, set my Windows 
setting for default mail application as chrome, and restarted my computer.  
Is there another set of instruction I should follow to have the permission?

In the meantime, I'm using the c# library and here's the response header 
when I use the TraceUtilities class.  It doesn't seem to contain sensitive 
info:


Response

Headers: {
  "request-id": "PdWDMfaB85bFxnmfvZKX1w",
  "date": "Wed, 29 Jul 2020 14:51:49 GMT",
  "alt-svc": "h3-29=\":443\"; ma=2592000,h3-27=\":443\"; 
ma=2592000,h3-T050=\":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\"",
  "google.ads.googleads.v4.errors.googleadsfailure-bin": 
"CiwKA4gBAhIlQXV0aGVudGljYXRpb24gb2YgdGhlIHJlcXVlc3QgZmFpbGVkLg==",
  "grpc-status-details-bin": 
"CBAS1wFSZXF1ZXN0IGlzIG1pc3NpbmcgcmVxdWlyZWQgYXV0aGVudGljYXRpb24gY3JlZGVudGlhbC4gRXhwZWN0ZWQgT0F1dGggMiBhY2Nlc3MgdG9rZW4sIGxvZ2luIGNvb2tpZSBvciBvdGhlciB2YWxpZCBhdXRoZW50aWNhdGlvbiBjcmVkZW50aWFsLiBTZWUgaHR0cHM6Ly9kZXZlbG9wZXJzLmdvb2dsZS5jb20vaWRlbnRpdHkvc2lnbi1pbi93ZWIvZGV2Y29uc29sZS1wcm9qZWN0Lhp1CkN0eXBlLmdvb2dsZWFwaXMuY29tL2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnY0LmVycm9ycy5Hb29nbGVBZHNGYWlsdXJlEi4KLAoDiAECEiVBdXRoZW50aWNhdGlvbiBvZiB0aGUgcmVxdWVzdCBmYWlsZWQu"
}

Fault: {
  "StatusCode": 16,
  "Details": "Request is missing required authentication credential. 
Expected OAuth 2 access token, login cookie or other valid authentication 
credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.";,
  "RequestId": "PdWDMfaB85bFxnmfvZKX1w",
  "Failure": {
"errors": [
  {
"errorCode": {
  "authenticationError": "AUTHENTICATION_ERROR"
},
"message": "Authentication of the request failed."
  }
]
  }
}

Best,
Mario

On Tuesday, July 28, 2020 at 9:00:11 AM UTC-7 adsapiforumadvisor wrote:

> Hi Mario,
>
> Thank you for reaching out to us. I see that you're having trouble 
> connecting to the API using your credentials. Could you provide me with 
> your request and response logs for where you encounter this error linking 
> to the API so that I can further investigate this concern? For privacy, you 
> can reply using "reply privately to the author".
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/cc7814a7-4a09-410e-a63a-fd1cad9fde8fn%40googlegroups.com.


Re: Missing Required Authentication

2020-07-29 Thread Mario Anes
Hi Bryan,

Thanks for your reply.  It doesn't seem that I have permission to use the 
reply privately to the author button.  Is there instructions on how I can 
get that access?

Best,
Mario

On Tuesday, July 28, 2020 at 9:00:11 AM UTC-7 adsapiforumadvisor wrote:

> Hi Mario,
>
> Thank you for reaching out to us. I see that you're having trouble 
> connecting to the API using your credentials. Could you provide me with 
> your request and response logs for where you encounter this error linking 
> to the API so that I can further investigate this concern? For privacy, you 
> can reply using "reply privately to the author".
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5004Q22ZQeA: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/a67b8921-47fe-419c-9d48-22333c7dc805n%40googlegroups.com.


RE: Missing Required Authentication

2020-07-28 Thread Google Ads API Forum Advisor Prod
Hi Mario,

Thank you for reaching out to us. I see that you're having trouble connecting 
to the API using your credentials. Could you provide me with your request and 
response logs for where you encounter this error linking to the API so that I 
can further investigate this concern? For privacy, you can reply using "reply 
privately to the author".

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5004Q22ZQeA: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/slqf90QE6SFO00jD3qgI-qTvGs2MBOlJrZ3Q%40sfdc.net.


Re: Missing Required Authentication

2020-07-28 Thread Mario Anes
I discovered that my connection works with AdWords but not with Ads API.  
Is there a separate sign up for Ads API?

Thank you

On Monday, July 27, 2020 at 11:42:13 AM UTC-7 Mario Anes wrote:

>
> Hi,
>
> I'm trying to connect and pull data from Google Ads API, however, I keep 
> getting error message saying "Request is missing required authentication 
> credential. Expected OAuth 2 access token, login cookie or other valid 
> authentication credential. See 
> https://developers.google.com/identity/sign-in/web/devconsole-project."; 
> <https://developers.google.com/identity/sign-in/web/devconsole-project.>
>
> I have tried these steps:
> 1. Using the playground 
> https://developers.google.com/google-ads/api/docs/oauth/playground
> 2. Using client library
> 3. Using curl/Postman
>
> I have client id, cilent secret, refresh token.  Using method #1 and #3, 
> I'm able to get access token as well.  However, when sending request using 
> the access token (and including developer token), I still get the error 
> message.
>
> Wondering if anyone has ideas on what to try next.
>
> Thank you
> Mario
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7861f1c1-9e9c-4335-967e-bac73e3188c2n%40googlegroups.com.


Missing Required Authentication

2020-07-27 Thread Mario Anes

Hi,

I'm trying to connect and pull data from Google Ads API, however, I keep 
getting error message saying "Request is missing required authentication 
credential. Expected OAuth 2 access token, login cookie or other valid 
authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project."; 
<https://developers.google.com/identity/sign-in/web/devconsole-project.>

I have tried these steps:
1. Using the playground 
https://developers.google.com/google-ads/api/docs/oauth/playground
2. Using client library
3. Using curl/Postman

I have client id, cilent secret, refresh token.  Using method #1 and #3, 
I'm able to get access token as well.  However, when sending request using 
the access token (and including developer token), I still get the error 
message.

Wondering if anyone has ideas on what to try next.

Thank you
Mario

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/de62fea8-6cd4-43c7-b704-94ce011c5bb4n%40googlegroups.com.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-27 Thread Haik
Thanks! associating the user with the account solved it.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1a32d626-8401-47c6-a61c-d9d05d5dff72%40googlegroups.com.


RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-26 Thread Google Ads API Forum Advisor Prod
Hello Haik,

The not_ads_user error usually occurs when the  login used to generate the 
access token is not associated with any Google Ads account. Please make sure 
the email address used to generate the OAuth credentials has a Google Ads 
account.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UBoARK: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/OtehK0PTQ4EA00KMFkYxduR-uaaagO1_f1Dg%40sfdc.net.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-26 Thread Haik
Hi,

Just tested the keys in the app.
This is the error:

{{ "errorCode": { "authenticationError": "NOT_ADS_USER" }, "message": "User 
in the cookie is not a valid Ads user." }}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9d4fa3da-3aaf-4bc5-b6fe-25fa47a0a837%40googlegroups.com.


RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-26 Thread Google Ads API Forum Advisor Prod
Hello Haik,

I see the CURL operation is succeeded, which means the credentials you used in 
the CURL operation are right. Could you please place those credentials in your 
configuration/properties files and retry the API request? If you are facing any 
error, please share the entire error log and the exact credentials you have 
used in the configuration/properties files without redacting using reply 
privately to the author option?

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UBoARK: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/4RIeC0PTQ1Y900TjrGKWT1R0aUCtDW75JazQ%40sfdc.net.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-26 Thread Haik
Ran the curl, but again got a meaningless json

{
  "access_token": "ya29.GlszB59HETtP0sTg..",
  "expires_in": 3600,
  "scope": "https://www.googleapis.com/auth/dfp 
https://www.googleapis.com/auth/adwords";,
  "token_type": "Bearer"
}

The oauth doctor returns the folowing:


2019/06/26 19:02:44 Client library language: dotnet
2019/06/26 19:02:44 Google Ads API client library config file: 
C:\Users\USER\App.Config
2019/06/26 19:02:44 Config keys and values:
2019/06/26 19:02:44 ClientID = *** (hidden)
2019/06/26 19:02:44 ClientSecret = *** (hidden)
2019/06/26 19:02:44 DevToken = *** (hidden)
2019/06/26 19:02:44 RefreshToken = *** (hidden)
2019/06/26 19:02:44 Please enter a Google Ads account ID:
X
2019/06/26 19:03:00 JSON response error: Request is missing required 
authentication credential. Expected OAuth 2 access token, login cookie or 
other valid authentication credential. See 
https://developers.google.com/identity/sign-in/web/devconsole-project.
2019/06/26 19:03:00 ERROR: The login email may not have access to the given 
account.
2019/06/26 19:03:00 Attempting to regenerate refresh token...
2019/06/26 19:03:00 Visit the URL for the auth dialog:





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4b4841ee-478a-4075-86fb-abbc1d719859%40googlegroups.com.


RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-26 Thread Google Ads API Forum Advisor Prod
Hello Haik,

To verify that your credentials are correct, you could try the CURL request 
provided below and see if you are able to generate the access token. If your 
credentials are correct, you should be able to generate an access token for the 
below CURL request.

curl https://www.googleapis.com/oauth2/v4/token \
-d refresh_token=your-refresh_token \
-d client_id=your-client-id \
-d client_secret=your-client-secret \
-d grant_type=refresh_token

If your credentials are incorrect or still facing issue then you could try 
generating a new refresh token with the help of this guide and retry your 
request. Please let me know if the issue persists.

Regards,
Sai Teja, AdWords API Team
ref:_00D1U1174p._5001UBoARK: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/GhyUd0PTPOYK00WLDab9leSHCTaKj4rcaeyg%40sfdc.net.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-26 Thread Haik
I run the OAuth tool but it does not help in any way.
I get the following error - ERROR: OAuth test failed.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b021a7c9-91e4-4404-8f13-532290c5e729%40googlegroups.com.


RE: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-19 Thread Google Ads API Forum Advisor Prod
Hello Haik

You will be able to validate your credentials by using the OAuth doctor. The 
tool will help determine if your OAuth2 credentials are correctly configured 
and ready to make API calls and guide you through fixing any OAuth2 problems it 
detects and verify the corrected configuration. Please give this a try and let 
us know if you have any issues.

Regards,
Sai Teja, Google Ads API Team
ref:_00D1U1174p._5001UBoARK: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/yM8QV0PTCXL200_E1zuwv5S-6VK9MUvb67Hg%40sfdc.net.


Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.

2019-06-19 Thread Haik
We have our app working with our development MCC keys and all works fine.

The problem is when we try to switch to the new production keys, we get 
an Expected OAuth 2 access token error.
  

*Request is missing required authentication credential. Expected OAuth 2 
access token, login cookie or other valid authentication credential.*



The only thing I do is change the app config keys:










As I said before, the application works fine with the old keys, but does 
not work with the new keys.

To generate the new refresh token I used the 
https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuthTokenGenerator
 software.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/40aa80c1-9420-4dd7-9854-086ddcc3a3e1%40googlegroups.com.


Re: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential with Google Ads API request

2018-10-11 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Anirudh,

Looks like there is one more thread created for the same issue. To avoid 
confusion lets continue the discussion on that thread 
<https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/adwords-api/TxGb0WrhJfU/iYhdwxYGAwAJ>
.

Regards,
Sai Teja, AdWords API Team.

On Thursday, October 11, 2018 at 7:14:33 AM UTC-4, anirudh maddy wrote:
>
> Here is my code in Node Js
>
> var newAcessToken = 
> getGoogleAccessToken(refresh_token);
> 
>  var bearerToken = 'Bearer '+ 
> newAcessToken;
>
>  var url =  '
> https://googleads.googleapis.com/v0/customers/XX?key=XX
> ';
>
> var  options = {
>   url: url,
>   headers: {
> 'Authorization': bearerToken,
> 'Accept': '*/*',
> 'developer-token':  'XXXX',
>   }
> };
>
>
> I'm getting Request is missing required authentication credential. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/729d9cb3-3f72-4801-acf1-df144c3917bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Request is missing required authentication credential Google Ads API beta

2018-10-11 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Anirudh,

Could you please confirm whether you are following the steps shown here 

 to 
generate refresh token? You could generate the access token from your 
refresh token using the below command (you can run it from terminal). Could 
you please elaborate what is the myKey in your line '
https://googleads.googleapis.com/v0/customers/myCustomerId?key=myKey';' 

 ?

curl --data ""grant_type=refresh_token""  --data ""refresh_token=
*enter_your_refresh_token_here*""  --data ""client_id=
*enter_your_client_Id_here*""  --data ""client_secret=
*enter_your_client_secret_here*""  
https://www.googleapis.com/oauth2/v4/token

After the successful execution you will receive the access token valid till 
the next 60 minutes. Now try to run the below command to get the campaigns 
of your account.

curl -H "Authorization: Bearer *YOUR_ACCESS_TOKEN*"  -H 
"developer-token: *YOUR_DEVELOPER_TOKEN*"  -H "Content-Type: 
application/json"  https://googleads.googleapis.com/v0/customers/
*YOUR_CLIENT_CUSTOMER_ID*/googleAds:search  --data '{query: "SELECT 
campaign.id, campaign.name FROM campaign ORDER BY campaign.id"}'

If you are still facing issues please share the error log and elaborate the 
scenario you are trying.

Regards,
Sai Teja, AdWords API Team.

On Thursday, October 11, 2018 at 7:14:33 AM UTC-4, anirudh maddy wrote:
>
> var url =  '
> https://googleads.googleapis.com/v0/customers/myCustomerId?key=myKey';
>
> var newAcessToken = 
> getGoogleAccessToken(refresh_token);
>
> var bearerToken = 'Bearer '+ newAcessToken;
>
> var  options = {
>   url: url,
>   headers: {
> 'Authorization': bearerToken,
> 'Accept': '*/*',
> 'developer-token':  myDevToken
>   },
> };
>
>
>request(options, function(err, response) {
>
>  if(err)
>  {
>  console.log(err);
>
>  }
>  else
>  {
>  console.log(response.body);
>  res.end();
>  }
>
>   });
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/1199846f-c212-456b-a52c-46dec855d0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Request is missing required authentication credential Google Ads API beta

2018-10-11 Thread anirudh maddy
var url =  
'https://googleads.googleapis.com/v0/customers/myCustomerId?key=myKey';

var newAcessToken = 
getGoogleAccessToken(refresh_token);

var bearerToken = 'Bearer '+ newAcessToken;

var  options = {
  url: url,
  headers: {
'Authorization': bearerToken,
'Accept': '*/*',
'developer-token':  myDevToken
  },
};


   request(options, function(err, response) {

 if(err)
 {
 console.log(err);

 }
 else
 {
 console.log(response.body);
 res.end();
 }

  });

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/6fe4a3e9-3504-42b8-a279-7eb2e7412a05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential with Google Ads API request

2018-10-11 Thread anirudh maddy
Here is my code in Node Js

var newAcessToken = 
getGoogleAccessToken(refresh_token);

 var bearerToken = 'Bearer '+ newAcessToken;

 var url =  
'https://googleads.googleapis.com/v0/customers/XX?key=XX';

var  options = {
  url: url,
  headers: {
'Authorization': bearerToken,
'Accept': '*/*',
'developer-token':  '',
      }
        };


I'm getting Request is missing required authentication credential. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/367e5000-f6cc-45d0-8200-58aab5e9c686%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.