Hi,
i'm using the adowrds api ,
we are migrating the version to 201607
one of the changes in this version is the way we get the customers , the
get method will not be in the new version and will be new method
getCustomers()
in the previous version we did
currently in 201605 we used this method =>
Customer mainCustomer = customerService.get();
and in case mainCustomer.getCanManageClients() equal to true
we used this code to get all customers
String mccCustomerId = mainCustomer.getCustomerId().toString();
ManagedCustomerServiceInterface customerServiceInterface =
adWordsServices.get(session, ManagedCustomerServiceInterface.class);
// Create selector.
com.google.api.ads.adwords.axis.v201605.cm.Selector selector = new
com.google.api.ads.adwords.axis.v201605.cm.Selector();
selector.setFields(new String[] { "Name", "CustomerId", "CurrencyCode",
"DateTimeZone", "CanManageClients" });
// Get results.
ManagedCustomerPage page = customerServiceInterface.get(selector);
when i try to get the customers by the new version we got an error that no
such method .
example what we trying to do => Customer []mainCustomer2 =
customerService.getCustomers();
the log : Method threw 'java.lang.NoSuchMethodError' exception.
cause/detailMessage : =>
com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
questions
1)how to solve the problem ?
2)is there an migration guide for customers ? i didn't found in the library
it only have the campaigns .
3)how to get mainCustomer , and how to get all the customers that related
to this mainCustomer .
Thanks in advance,
Raneen.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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 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/5263d28c-8fc7-4ad3-9bda-f4be40298acd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.