Create account using RESTful methods

69 views
Skip to first unread message

Joris Garnier

unread,
May 28, 2019, 2:38:12 AM5/28/19
to AdWords API and Google Ads API Forum
Hello,

I am new to using the google ads api and I'm struggling on creating an account under my manager account. I'm using nodejs so I can't use any of the given libraries.
 
Hence, I have to be able to do this using REST methods only. Browsing the documentation, I understand that I have to use the `CustomerService` and the `CreateCustomerClientRequest` but I don't understand how I should get the route to that.

Reading the API call structure, I though the right route would be something like `/v1/customers/<MY_MANAGER_ID>/customer:create`

I'm authenticating just well and can execute queries successfully. But I can't get that route right

Could you give me a cURL example for how to do that? I'm just trying to do the same thing as this example (https://developers.google.com/google-ads/api/docs/account-management/create-account) but only using REST methods.

Thanks

Google Ads API Forum Advisor Prod

unread,
May 28, 2019, 9:44:48 AM5/28/19
to jorisg...@voodoo.io, adwor...@googlegroups.com
Hi Joris,

Thanks for the question! The path you're looking for is: 

/v1/customers/<manager ID>:createCustomerClient

Also you can use the discovery endpoint to find the endpoints for any of the service methods, see here:

https://googleads.googleapis.com/$discovery/rest?version=v1

Lastly if you're using NodeJS you might want to investigate some of the open source projects that are available for our API. Here's a good example to take a look at: https://github.com/Opteo/google-ads-api

Best,
Ben Karl, Google Ads API Team
 

ref:_00D1U1174p._5001UAqoH7:ref
Reply all
Reply to author
Forward
0 new messages