Thanks Anash - huge progress.

Now the customerid is coming back as a 0. Here's what I entered:

$ php GetCampaigns.php
No campaigns were found.

The no campaigns found makes sense because I ran GetCampaigns.php 
previously. Then I entered:

$ php GetAccountHierarchy.php
(Customer Id, Account Name/Login, Link Status)
0, [email protected], N/A
$

I tried using the customerid of 0 as the clientid in auth.ini but, as 
expected, the result fails:

$ php AddCampaigns.php
An error has occurred: [AuthorizationError.USER_PERMISSION_DENIED @ ]
$

Suggestions appreciated.

Bill


On Thursday, April 26, 2012 6:34:48 AM UTC-5, Anash P. Oommen wrote:
>
> Hi Bill,
>
> Sandbox and production are two different environments, so you cannot use 
> prod developer token or customerids in sandbox and vice versa. To use 
> sandbox, 
>
> 1. Run GetCampaigns example ( 
> http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109/BasicOperations/GetCampaigns.php
>  ). 
> This will initialize the sandbox and create 5 test accounts for you.
> 2. Run GetAccountHierarchy example (
> http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201109/AccountManagement/GetAccountHierarchy.php).
>  
> This will retrieve the sandbox accounts that were created in the first call.
>
> Use one of the customerIds from the above example to make the remaining 
> API calls. Dashes in the customerids doesn't matter.
>
> Cheers,
> Anash P. Oommen,.
> AdWords API Advisor.
>
> On Wednesday, 25 April 2012 18:38:09 UTC+5:30, Bill Jenkins wrote:
>>
>> Anash - are you saying we can't use actual customer IDs in the sandbox?
>>
>> Bill
>>
>>
>>
>> On Wednesday, April 25, 2012 5:41:09 AM UTC-5, Anash P. Oommen wrote:
>>>
>>> Hi Pinki,
>>>
>>> You might also want to check if you are sending your request to the 
>>> sandbox environment or the production environment. The customer ids in the 
>>> two environments aren't compatible with each other.
>>>
>>> Cheers,
>>> Anash P. Oommen,
>>> AdWords API Advisor.
>>>
>>> On Monday, 23 April 2012 18:30:53 UTC+5:30, Yavuz wrote:
>>>>
>>>> *Hi pinki!*
>>>> *Use the customer id   "6227910869"*
>>>> *Don use '622-791-0869'* 
>>>>
>>>> 23 Nisan 2012 Pazartesi 14:18:39 UTC+3 tarihinde pinki chaudhary yazdı:
>>>>
>>>>>
>>>>> i want to get credential but i m facing error like 
>>>>>> "AuthenticationError.CUSTOMER_NOT_FOUND @ ; trigger:'622-791-0869' 
>>>>>> Service[CampaignService.get].."
>>>>>> so please suggest me how we remove this error. i am implementing in 
>>>>>> php.
>>>>>>
>>>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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

Reply via email to