PHP Client library - Create campaign issue

104 views
Skip to first unread message

Andy

unread,
Nov 13, 2009, 12:24:13 PM11/13/09
to AdWords API Forum
Hi,
I am having troubble with adding campaigns using the v200909 download.
I am running on the sandbox, with all the right details..

The "getallcampaigns.php" example, I believe works, as there are no
errors, only "No campaigns found. " which i guess is corrent..

However, when i run the addcampaignsexample.php in the examples
folder, i get the following error:

[faultstring] => [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED
@ operations[0], OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @
operations[1]]
[faultcode] => soap:Server
[detail] => stdClass Object
(
[ApiExceptionFault] => stdClass Object
(
[message] =>
[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0],
OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[1]]
[ApplicationException.Type] => ApiException
[errors] => Array
(
[0] => SoapVar Object
(
[enc_type] => 0
[enc_value] =>
OperationAccessDenied Object
(
[reason] =>
ADD_OPERATION_NOT_PERMITTED
[fieldPath] => operations
[0]
[trigger] =>
[ApiErrorType] =>
OperationAccessDenied
[_parameterMap:private] =>
Array
(
[ApiError.Type] =>
ApiErrorType
)

)

[enc_stype] =>
OperationAccessDenied
[enc_ns] =>
https://adwords.google.com/api/adwords/cm/v200909
)



I cant think or seem to find the solution to this problem, do you have
any ideas??


Thanks in advance,
Andy

AdWords API Advisor

unread,
Nov 16, 2009, 12:28:50 PM11/16/09
to AdWords API Forum
Hi Andy,

This error is likely due to trying to add a campaign to an MCC
account. Ensure that you specify a clientId in the auth.ini file.
More information about how setting the clientEmail header in the
sandbox is available here:
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html#requestheaders.

Best,
- Eric Koleda, AdWords API Team
Reply all
Reply to author
Forward
0 new messages