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, 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 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
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,
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/5zSOT000000000000000000000000000000000000000000000R6FOPD00OqwNIGr5Rwip3Con22tOUg%40sfdc.net.