Look the yaml file:
adwords:
client_secret: 'HIDDEN SECRET'
refresh_token: 'MY REFRESH TOKEN'
user_agent: 'My UA'
developer_token: 'MY DEV TOKEN'
I used to be able to create sub accounts (python code):
YAML_KEY = 'adwords'
# A list of values which must be provided to use AdWords.
REQUIRED_INIT_VALUES = ('user_agent', 'developer_token')
# A list of values which may optionally be provided when using AdWords.
OPTIONAL_INIT_VALUES = ('validate_only', 'partial_failure', 'client_customer_id', 'https_proxy')
yaml_path = '/home/kk/googleads.yaml'
kwargs = googleads.common.LoadFromStorage(
yaml_path, YAML_KEY, REQUIRED_INIT_VALUES,
OPTIONAL_INIT_VALUES)
client = adwords.AdWordsClient(**kwargs)
import random
rnum = random.randint(1, 10000)
acc_name = 'Test client %d' % rnum
currency, timezone = 'EUR', 'Europe/Berlin'
operations = [{
'operator': 'ADD',
'operand': {
'name': acc_name,
'currencyCode': currency,
'dateTimeZone': timezone,
}
}]
managed_customer_service = client.GetService(
'ManagedCustomerService', version='v201409')
accounts = managed_customer_service.mutate(operations)
I am getting the error:
WebFault: Server raised fault: '[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']'
I am pretty sure the code above was working . In fact I have already created some accounts
Thanks