I managed to fix it by removing the clientId from the auth.ini and setting 
one of the clientCustomerId's in the PHP code after receiving the 
accountHierarchy by doing this:
  $user->SetClientId(2731918***);

Thanks for your help!

Op dinsdag 6 november 2012 17:23:30 UTC+1 schreef Jeremy Aube het volgende:
>
> auth.ini should work. Did you include hyphens in your clientCustomerId?
>
> On Tuesday, November 6, 2012 8:51:58 AM UTC-5, Stefan den Hartog wrote:
>>
>> I tried adding the clientCustomerId to the auth.ini but that doesn't make 
>> any difference, should I set it in the PHP bit? 
>> $user->setCustomerId('4856529***')  for example?
>>
>>
>>
>>
>> On Tuesday, November 6, 2012 1:45:55 PM UTC+1, Jeremy Aube wrote:
>>>
>>> Try setting clientCustomerId to one of the 5 customer ids.
>>>
>>> On Monday, November 5, 2012 3:43:23 PM UTC-5, Stefan den Hartog wrote:
>>>>
>>>> I'm trying to set up a fresh Adwords account, at this moment I can get 
>>>> the account hierarchy and I get this back:
>>>>
>>>> (Customer Id, Account Name/Login) 9607306***, ***@***.nl
>>>> --6169612***, client_1+***@***.nl
>>>> --8294223***, client_2+***@***.nl
>>>> --2731918***, client_3+***@***.nl
>>>> --1920388***, client_4+***@***.nl
>>>> --4856529***, client_5+***@***.nl
>>>>
>>>> But from then on I'm stuck, when i'm trying to use the PHP API (Version 
>>>> 201209) to add a campaign I get the 'ADD_OPERATION_NOT_PERMITTED' 
>>>> which seems to be logical seems it is now accessing the MCC account? 
>>>>
>>>> So what do I do with the data received, I've read a lot about the 
>>>> clientCustomerID but adding this to my Auth.ini doesn't seem to help.
>>>>
>>>> My Auth.ini is currently looking like this:
>>>>
>>>> email = "***@***.nl"
>>>> password = "mypassword"
>>>> userAgent = "firstaccessthingy"
>>>> developerToken = "***@***.nl++USD"
>>>>
>>>> clientId = '9607306***'
>>>>
>>>> I've tried changing the clientId to one of the received client's but 
>>>> that doesn't help. Not even when I change the
>>>> 'developerToken' to:
>>>> client1+***@***.nl++USD
>>>> and change the clientId Prop to tge corresponding clientID.
>>>>
>>>>
>>>> Any suggestions? Thanks in advance!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to