Thanks a bunch Derek. Seems like when in doubt...Query! Nice. On Monday, 25 February 2019 14:53:41 UTC-4, [email protected] wrote: > > Hi De1, > > Try this: > > var options = { > method: 'POST', > muteHttpExceptions: true, > headers: { > 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', > 'developer-token': 'YOUR_DEVELOPER_TOKEN', > 'login-customer-id': 'YOUR_LOGIN_CUSTOMER_ID', > 'x-goog-api-client': 'YOUR_USER_AGENT_NAME', > }, > body: { > query: 'SELECT customer.id, customer.descriptive_name, > customer_client.resource_name, customer_client.client_customer, > customer_client.level, customer_client.hidden FROM customer_client', > }, > }; > > try { > var url = ' > https://googleads.googleapis.com/v0/customers/YOUR_LOGIN_CUSTOMER_ID/googleAds:search > '; > var response = UrlFetchApp.fetch(url, options); > > Logger.log(response.getContentText()) > } catch (err) { > throw err; > } > > On Monday, February 25, 2019 at 8:28:32 AM UTC-8, De1 wrote: >> >> Hi, >> >> I'm creating a solution using Apps Script so I'm not using a client >> library. I'm finding it difficult to get at how to do things using REST as >> the documentation focuses on gRPC. >> eg. >> I would like to retrieve a list of accounts. >> The section that explains the Call Structure >> <https://developers.google.com/google-ads/api/docs/concepts/call-structure> >> gives >> some insights into the RESTful stuff, but then, to retrieve a list of >> accounts it says; >> >>> Note: You can retrieve the list of accounts that are directly accessible >>> via your OAuth credentials by issuing a >>> CustomerService.ListAccessibleCustomers request. The login-customer-id is >>> not required for this request type, and has no effect on the list of >>> customers returned. >> >> >> I can't figure out how to resolve that into a RESTful call. >> >> Any guidance? >> >> >> Thanks >> De1 >> >
-- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. 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/fab10da9-21a9-42a0-a7cb-fe93cae504b0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
