I need to get the list of all MCC with an Adwords account via Google API and R. So far I've found some packages to get the list of all clientID within a single MCC but I've found no example to get the list of all MCC within an Adwords account.
Do someone have experience on this topic?
So far I've tried:
library(RAdwordsPlus) library(RAdwords) google_auth <- doAuth() api_version <- "v201809" customer_id <- "MCC-MAIN-CODE" request <- RAdwordsPlus::managed.customer.request(fields = c("Name", "CustomerId")) r <- RAdwordsPlus::get.service(request = request, cid = customer_id, auth = google_auth, api.version = api_version, user.agent = "r-adwordsplus-test", verbose = FALSE, raw = FALSE, partial.failure = FALSE)
Code ended up with this error:
Warning message: In parser(response) : x is not a valid managed.customer
My Account structure is something like:
Main MCC
Customer 1 (client_id_1)
Customer 2 (client_id_2)
Customer 3 (client_id_3)
As stated, my goal will be to get all the client_id in order to gathering data for every Customer in the account
Thanks.