Hi,

good news that I have managed to authenticate with our Google Ads platform 
(I had to create Manager account also to obtain Developer Token).

My task is pretty simple, → generate json and send it to the correct 
endpoint that will create a customer list.

Can you give me explanation what is {customerId} in this endpoint and give 
a raw HTTP example of utilizing this endpoint?
Currently, when I am trying to upload something on the address

https://googleads.googleapis.com/v9/customers/{123}/userLists:mutate 
I am receiving 400 wrong endpoint error.

Thanks in advance,
Ryszard
On Friday, January 28, 2022 at 7:58:39 PM UTC+1 adsapi wrote:

> Hello,
>
> Thank you for reaching out to the Google Ads API support team.
>
> With regards to your concern, the uploading of customers to lists is with 
> customers.offlineUserDataJobs 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v9/customers.offlineUserDataJobs?hl=en>,
>  
> you will create, add operations and then run it and poll(get) for results. 
> The end points are all in the 
> documentation. "/v9/customers/{customerId}/userLists:mutate" is used for 
> creation and modification of the list itself. You may refer to this REST 
> cookbook <https://developers.google.com/google-ads/api/rest/examples> to 
> make call.
>
> For your concern about adding customers TO THE LIST via SFTP, we are not 
> supporting. I would suggest to you please reach out to the your SFTP 
> support.
>
> To generate the refresh token without using client library, please see the 
> below step:
>
> First, create a new refresh token by putting this in the browser. Make 
> sure to replace the <INSERT_YOUR_CLIENT_ID_FROM_API_CONSOLE> with your 
> client ID from the Cloud console. There is an extra scope here.  
>    
>    - 
>    
> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=<INSERT_YOUR_CLIENT_ID_FROM_API_CONSOLE>&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email
>  
>    
> <https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=%3CINSERT_YOUR_CLIENT_ID_FROM_API_CONSOLE%3E&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email>
>  
>
> That should return an authorization code in your browser. You'll need that 
> for the next step. Now, on the command line of your server, run the 
> following command to get a refresh token: 
>    
>    - curl --request POST -H 
>    "Content-Type:application/x-www-form-urlencoded" --data 
>    
> "client_id=<INSERT_YOUR_CLIENT_ID_FROM_API_CONSOLE>&client_secret=<INSERT_YOUR_CLIENT_SECRET_FROM_API_CONSOLE>&redirect_uri=urn:ietf:wg:oauth:2.0:oob&grant_type=authorization_code&code=<INSERT_YOUR_AUTHORIZATION_CODE>"
>  
>    https://accounts.google.com/o/oauth2/token 
>
> This returns a refresh token.  If that works, then generate an access 
> token from that refresh token. 
>    
>    - curl --data 
>    
> "refresh_token=<INSERT_REFRESH_TOKEN>&client_id=<INSERT_YOUR_CLIENT_ID_FROM_API_CONSOLE>&client_secret=<INSERT_CLIENT_SECRET>&grant_type=refresh_token"
>  
>    -X POST "https://oauth2.googleapis.com/token"; 
>
> Now, we want to check the data on the access token to make sure everything 
> on the access token is working as expected. Put this in your browser with 
> the access token inserted that you got back. 
>    
>    - 
>    https://oauth2.googleapis.com/tokeninfo?access_token=<INSERT_ACCESS_TOKEN>
>    ; 
>
> Then you can try request. Let me know if you have any question.
>
> Thanks,
> [image: Google Logo] 
> Nirmita Patel 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2VQ6nT: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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6dab9fe3-72b6-44b2-8ac7-28bd1c2dbab2n%40googlegroups.com.
  • Da... Ryszard Rogalski
    • ... Ryszard Rogalski
      • ... Ryszard Rogalski
        • ... Marcin Tabedzki
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Ryszard Rogalski
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... Ryszard Rogalski

Reply via email to