Re: User in the cookie is not a valid Ads user

2022-08-09 Thread Marketing Technology
Hi Anthony.

Thanks for the response.

Then I think that our only choice at this point would be to try with 
OAuth2. 

But, what I don't understand is how are we using OAuth2 for a Microservice. 
I mean, when I create the OAuth2 credentials, it requires me to select 
between one between: Android, Chrome App, IOS, TV and desktop App. My 
application is a *backend* microservice, so none of these matches with what 
I want.

Also, when I prepare for verification the consent screen it requires me 
some staff focus in *my users*, when the only user I have, and the only 
user that will see this consent screen, is myself. 
Specially the Youtube video where I need to explain how will I use the 
scope in my app... It is totally focus in a front end application, which 
will have authorised users. What I am I suppose to record in this video, 
the Java code of my backend microservice?

I don't know if I am missing something.

Best regards,
On Tuesday, 9 August 2022 at 14:09:54 UTC+2 adsapi wrote:

> Hi,
>
> Thanks for getting back to us.
>
> It appears that the link got broken while being sent due to system issues. 
> However, you may please check the response sent from our end with valid 
> links below:
>
> *“Hello,*
>
>
>
> *Thank you for reaching out to us. Let me do the best I can to assist you 
> in this.*
>
> *I can see that you have received the NOT_ADS_USER error when you 
> attempted to connect to the API. The **NOT_ADS_USER* 
> *
>  error 
> is encountered when the service account has not been correctly linked to 
> the Google Ads account via the OAuth2 assertion flow. Please take note that 
> the email address you may have used to generate the credentials should have 
> access or be associated with Google Ads accounts. *
>
> *In order to connect to Google Ads API using a Google service account, you 
> will need a **Google Workspace domain* * since 
> it is a prerequisite for using service accounts. Since you mentioned that 
> you’re using service account credentials, could you confirm if you already 
> followed all the mentioned **requirements* 
> 
> *:*
>
>1. *The service account that you created needs to be granted **domain 
>wide delegation access* * by 
>a super administrator for the domain.* 
>2. *Using a Google Ads user with permissions on the Google Ads account 
>you want to access. * 
>3. *Make sure that you have your own domain registered with Google 
>Workspace.* 
>4. *Service account will have the ability to impersonate any user in 
>the domain* 
>
> *You may refer to this **API documentation* 
> * 
> that 
> discusses how to access the Google Ads API with service accounts. * 
>
> *In addition, kindly note that, we strongly recommend using** OAuth2 
> installed app or web flows * 
> *instead
>  
> of service accounts unless you need domain-specific features (for example, 
> impersonation). OAuth2 installed application and web flows require user 
> interaction only once, when access to the account is granted. You need to 
> implement the code set up on your end to make calls using service accounts. 
> “*
>
> With regards to your follow up questions, Please see below responses:
>
> *1) Is there a way to create authentication for a microservice without 
> Google Workspace Domain?*
>
>-  To be honest there is no way to create authentication for a service 
>account without Google Workspace Domain. 
>
> *2) About Oauth2, in our case, we want to send ourselves the information 
> about all users once a day, with our calculations, so I guess the OAuth2 is 
> not an option for us, right? Or we may use it.*
>
>- We strongly suggest you use oauth authentication instead. 
>
> *3) If I try to use Oauth2, I need to put the consent screen in prod mode, 
> and they ask me to put a video in Youtube, and some staff that shouldn't 
> apply to a microservice...*
>
>- yes you need to veiry your oauth2 for the production mode you can 
>find more information on what needs to go into the video here 
>
> 
>. 
>
>  
>
> Best regards,
> [image: Google Logo] 
> Anthony Cyril 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2dIQUS: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 Fo

Re: User in the cookie is not a valid Ads user

2022-08-09 Thread Marketing Technology
Hi again.

It seems our company is not using Google Workspace Domain, and we are not 
planning to use it.

Is there a way to create authentication for a microservice without Google 
Workspace Domain?

Thanks!

On Tuesday, 9 August 2022 at 09:21:59 UTC+2 Marketing Technology wrote:

> Hi, thanks for the answer.
>
> About Service Credentials, I think the only thing we didn't follow is 
> using a Google Workspace Domain. I'll investigate about it, because we 
> weren't using it.
>
> About Oauth2, in our case, we want to send ourselves the information about 
> all users once a day, with our calculations, so I guess the *OAuth2* is 
> not an option for us, right?
> Or we may use it.
> If I try to use Oauth2, I need to put the consent screen in prod mode, and 
> they ask me to put a video in Youtube, and some staff that shouldn't apply 
> to a microservice...
>
> Other thing, I can't see the links you sent, login with this Google 
> Account.
>
> Thanks!
>
> On Monday, 8 August 2022 at 14:30:07 UTC+2 adsapi wrote:
>
>> Hello,
>>
>> Thank you for reaching out to us. Let me do the best I can to assist you 
>> in this. 
>>
>> I can see that you have received the NOT_ADS_USER error when you 
>> attempted to connect to the API. The NOT_ADS_USER 
>> <https://google-dev-relations.lightning.force.com/lightning/r/Case/5004Q2dIQUSQA4/undefined>
>>  error 
>> is encountered when the service account has not been correctly linked to 
>> the Google Ads account via the OAuth2 assertion flow. Please take note that 
>> the email address you may have used to generate the credentials should have 
>> access or be associated with Google Ads accounts. 
>>
>>  
>>
>> In order to connect to Google Ads API using a Google service account, you 
>> will need a *Google Workspace domain* 
>> <https://google-dev-relations.lightning.force.com/lightning/r/Case/5004Q2dIQUSQA4/undefined>
>>  since 
>> it is a prerequisite for using service accounts. Since you mentioned that 
>> you’re using service account credentials, could you confirm if you already 
>> followed all the mentioned *requirements* 
>> <https://google-dev-relations.lightning.force.com/lightning/r/Case/5004Q2dIQUSQA4/undefined>
>> :
>>
>>1. The service account that you created needs to be granted domain 
>>wide delegation access 
>>
>> <https://google-dev-relations.lightning.force.com/lightning/r/Case/5004Q2dIQUSQA4/undefined>
>>  by 
>>a super administrator for the domain. 
>>2. Using a Google Ads user with permissions on the Google Ads account 
>>you want to access.  
>>3. Make sure that you have your own domain registered with Google 
>>Workspace. 
>>4. Service account will have the ability to impersonate any user in 
>>the domain 
>>
>>  
>>
>> You may refer to this *API documentation* 
>> <https://google-dev-relations.lightning.force.com/lightning/r/Case/5004Q2dIQUSQA4/undefined>
>>  that 
>> discusses how to access the Google Ads API with service accounts. 
>>
>>  
>>
>> In addition, kindly note that, we strongly recommend using* OAuth2 
>> installed app or web flows * 
>> <https://google-dev-relations.lightning.force.com/lightning/r/Case/5004Q2dIQUSQA4/undefined>instead
>>  
>> of service accounts unless you need domain-specific features (for example, 
>> impersonation). OAuth2 installed application and web flows require user 
>> interaction only once, when access to the account is granted. You need to 
>> implement the code set up on your end to make calls using service accounts. 
>> Regards,
>> [image: Google Logo] 
>> Teejay Wennie 
>> Google Ads API Team 
>>   
>>  
>>
>> ref:_00D1U1174p._5004Q2dIQUS: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/01334072-cf8d-4356-a2bb-0dfcd423a2f6n%40googlegroups.com.


Re: User in the cookie is not a valid Ads user

2022-08-09 Thread Marketing Technology
Hi, thanks for the answer.

About Service Credentials, I think the only thing we didn't follow is using 
a Google Workspace Domain. I'll investigate about it, because we weren't 
using it.

About Oauth2, in our case, we want to send ourselves the information about 
all users once a day, with our calculations, so I guess the *OAuth2* is not 
an option for us, right?
Or we may use it.
If I try to use Oauth2, I need to put the consent screen in prod mode, and 
they ask me to put a video in Youtube, and some staff that shouldn't apply 
to a microservice...

Other thing, I can't see the links you sent, login with this Google Account.

Thanks!

On Monday, 8 August 2022 at 14:30:07 UTC+2 adsapi wrote:

> Hello,
>
> Thank you for reaching out to us. Let me do the best I can to assist you 
> in this. 
>
> I can see that you have received the NOT_ADS_USER error when you attempted 
> to connect to the API. The NOT_ADS_USER 
> 
>  error 
> is encountered when the service account has not been correctly linked to 
> the Google Ads account via the OAuth2 assertion flow. Please take note that 
> the email address you may have used to generate the credentials should have 
> access or be associated with Google Ads accounts. 
>
>  
>
> In order to connect to Google Ads API using a Google service account, you 
> will need a *Google Workspace domain* 
> 
>  since 
> it is a prerequisite for using service accounts. Since you mentioned that 
> you’re using service account credentials, could you confirm if you already 
> followed all the mentioned *requirements* 
> 
> :
>
>1. The service account that you created needs to be granted domain 
>wide delegation access 
>
> 
>  by 
>a super administrator for the domain. 
>2. Using a Google Ads user with permissions on the Google Ads account 
>you want to access.  
>3. Make sure that you have your own domain registered with Google 
>Workspace. 
>4. Service account will have the ability to impersonate any user in 
>the domain 
>
>  
>
> You may refer to this *API documentation* 
> 
>  that 
> discusses how to access the Google Ads API with service accounts. 
>
>  
>
> In addition, kindly note that, we strongly recommend using* OAuth2 
> installed app or web flows * 
> instead
>  
> of service accounts unless you need domain-specific features (for example, 
> impersonation). OAuth2 installed application and web flows require user 
> interaction only once, when access to the account is granted. You need to 
> implement the code set up on your end to make calls using service accounts. 
> Regards,
> [image: Google Logo] 
> Teejay Wennie 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2dIQUS: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/902080f5-2411-421d-a0ab-1feac8529204n%40googlegroups.com.


User in the cookie is not a valid Ads user

2022-08-08 Thread Marketing Technology
Hi there.

I am trying to connect with the Adwords API, using service account 
credentials, and I receive this error:







*com.google.ads.googleads.v10.errors.GoogleAdsException: errors {  
error_code {authentication_error: NOT_ADS_USER  }  message: "User in 
the cookie is not a valid Ads user."}request_id: "FVch8JXeLpvz9JXo7V5sAg"*

Using the same email, but with Oauth2 credentials, I can connect, but I 
need to connect as a service account, as I need to connect a microservice.

How could I fix it?

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/494782ae-db72-4cd1-9461-6dbbdcf14c99n%40googlegroups.com.