Re: Sandbox not generating 5 new accounts and gives OperationAccessDenied error

2012-07-04 Thread joanfihu
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, xxx...@gmail.com, 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 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


Sandbox not generating 5 new accounts and gives OperationAccessDenied error

2012-06-21 Thread krunal shah
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 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