Hi Josh. I'm having the same issue. I'm using the python client library, v201603 for your reference. I'm using the same top-level MCC for both AccountLabelService (which works) and ManagedCustomerService, which doesn't. If I use the the "AccountLabels" in the predicate of the selector, it fails with the following:
On Friday, June 5, 2015 at 5:06:41 AM UTC+8, Josh Radcliff (AdWords API Team) wrote:
-- WebFault: Server raised fault: '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]'
However, if I just include "AccountLabels" as a column but not in the predicate, the query works but the results do not contain any "accountLabel" field. Below is my selector passed into ManagedCustomerService.
{'predicates': [{'operator': 'IN', 'field': 'AccountLabels', 'values': [4038216, 4038261]}], 'fields': ['AccountLabels', 'CanManageClients', 'CompanyName', 'CurrencyCode', 'CustomerId', 'DateTimeZone', 'Name', 'TestAccount'], 'paging': {'startIndex': '0', 'numberResults': '500'}}
Pls help, thanks!
Yang
On Friday, June 5, 2015 at 5:06:41 AM UTC+8, Josh Radcliff (AdWords API Team) wrote:
Hi,It looks like you may be setting the clientCustomerId SOAP header to the child account, in which case you won't get the account labels back in the response because they are defined in the MCC account (437-819-4458), not the child account.Instead, please try setting the clientCustomerId SOAP header to the MCC account that owns the account labels (437-819-4458 in this case), then add a predicate on CustomerId if you want to limit the request to specific child accounts.Thanks,Josh, AdWords API Team
On Wednesday, June 3, 2015 at 5:56:20 PM UTC-4, Zweitze wrote:Hi,
I'm trying to retrieve the labels of an account. To my surprise it is always NULL.
Sample code (C#)
ManagedCustomerService mcs = User.GetService(
AdWordsService.v201502.ManagedCustomerService);
Selector Selector = new Selector();
Selector.fields = new string[] { "CustomerId", "AccountLabels",
"Name", "CompanyName", "CanManageClients" };
ManagedCustomerPage mcp = mcs.get(Selector);
And then I end up with exactly one ManagedCustomer, where attributes customerId, name, companyName and canManageClients are all set, but accountLabels is not.
I tested this with MCC 437-819-4458 (meaning, the refreshToken was issued to a login to this MCC) and CustomerId 892-838-4200. In the AdWords web interface, when logged in to the same MCC, I see two labels.
A recent RequestId of such a call is 000517a3e84613800ac216e46100e07b.
I tried with requesting fewer fields, just CustomerId and AccountLabels, but attribute accountLabels remain empty. What am I doing wrong?
Thank in advance!
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 adwords-api+unsubscribe@googlegroups.com.
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/f6a1cbad-0e5d-472f-bee1-e72f92a196c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment