Hi Krunal,

The first request to the sandbox creates 5 accounts. You have to use one of 
this created accounts as a clientId. 
You can get this accounts executing GetHierarchy. 
The usual response it's gonna be like this ((Customer Id, Account 
Name/Login, Link Status)
0, [email protected], N/A)

As you can see none accounts are showed. Add the highlighted print in this 
part of the code in GetHierarchy.php and you will get all the accounts 
available.

*  if (isset($graph->accounts)) {*
* print_r($graph);*
*    // Create map from customerId to parent and child links.*
*    $childLinks = array();*
*    $parentLinks = array();*
*    if (isset($graph->links)) {*
*      foreach ($graph->links as $link) {*
*        $childLinks[$link->managerId->id][] = $link;*
*        $parentLinks[$link->clientId->id][] = $link;*
*      }*
*    }*

I hope It helps u )
On Thursday, 21 June 2012 15:43:42 UTC+2, krunal shah wrote:
>
> Hello,
> I have downloaded the php code library and edited settings.ini to sandbox 
> for requestss. First I run the GetCampaigns request which gives 'No 
> campaings found' result as expected. after that I run the AddCampaigns.php 
> file but it gives me the following error.   
>
> An error has occurred: [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED 
> @ oper
> ations[0], OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ 
> operations[1]]
>
> I am checking this code from the command prompt. 
>

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