$oauth2Info['client_id']='6921605****.apps.googleusercontent.com';
$oauth2Info['client_secret']='mjnJSzHpcyTe5gMPrg0IY***';
$oauth2Info['access_token']='ya**.AHES6ZT0Cd6_zy7RBo8Mlz9NRRslnwfTomBFa5IK_EDQ**';
$oauth2Info['refresh_token']='1\/6Bn46zuJYtRXbCUulBWulvELoqF39IsnYEML1qL****';
$user = new AdWordsUser(NULL, NULL, NULL, 'dVe2cHa8yooikOeu****',
$applicationToken, $userAgent, '425-200-****', NULL, NULL,
$oauth2Info);
try{
echo '<pre>';
print_r($campaignService = $user->getCampaignFeedService('v201302',
'https://adwords.google.com'));
}
catch(Exception $e) {
echo '<pre>';
print_r($e);
echo '</pre>';
}
The response attached.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
CampaignFeedService Object
(
[options:protected] => Array
(
[trace] => 1
[encoding] => utf-8
[connection_timeout] => 0
[features] => 1
[compression] => 49
[user_agent] => PHP-SOAP/5.4.3, gzip
[cache_wsdl] => 0
[stream_context] => Resource id #29
[classmap] => Array
(
[getResponse] => CampaignFeedServiceGetResponse
[get] => CampaignFeedServiceGet
[mutate] => CampaignFeedServiceMutate
[mutateResponse] => CampaignFeedServiceMutateResponse
[mutateCallToAction] => CampaignFeedServiceMutateCallToAction
[search] => CampaignFeedServiceSearch
[Function] => FeedFunction
[DateTime] => AdWordsDateTime
[SoapHeader] => SoapRequestHeader
[ApiError] => ApiError
[ApiException] => ApiException
[ApplicationException] => ApplicationException
[AuthenticationError] => AuthenticationError
[AuthorizationError] => AuthorizationError
[CampaignFeed] => CampaignFeed
[CampaignFeedError] => CampaignFeedError
[CampaignFeedOperation] => CampaignFeedOperation
[Operation] => Operation
[CampaignFeedPage] => CampaignFeedPage
[NullStatsPage] => NullStatsPage
[CampaignFeedReturnValue] => CampaignFeedReturnValue
[ListReturnValue] => ListReturnValue
[ClientTermsError] => ClientTermsError
[CollectionSizeError] => CollectionSizeError
[ConstantOperand] => ConstantOperand
[FunctionArgumentOperand] => FunctionArgumentOperand
[DatabaseError] => DatabaseError
[DateRange] => DateRange
[DistinctError] => DistinctError
[EntityCountLimitExceeded] => EntityCountLimitExceeded
[EntityNotFound] => EntityNotFound
[FeedAttributeOperand] => FeedAttributeOperand
[FunctionError] => FunctionError
[FunctionOperand] => FunctionOperand
[IdError] => IdError
[InternalApiError] => InternalApiError
[NotEmptyError] => NotEmptyError
[NotWhitelistedError] => NotWhitelistedError
[NullError] => NullError
[Page] => Page
[OperationAccessDenied] => OperationAccessDenied
[OrderBy] => OrderBy
[Paging] => Paging
[Predicate] => Predicate
[QuotaCheckError] => QuotaCheckError
[RangeError] => RangeError
[RateExceededError] => RateExceededError
[ReadOnlyError] => ReadOnlyError
[RequestContextOperand] => RequestContextOperand
[RequestError] => RequestError
[RequiredError] => RequiredError
[Selector] => Selector
[SelectorError] => SelectorError
[SizeLimitError] => SizeLimitError
[SoapResponseHeader] => SoapResponseHeader
[StringLengthError] => StringLengthError
[AuthenticationError.Reason] => AuthenticationErrorReason
[AuthorizationError.Reason] => AuthorizationErrorReason
[CampaignFeed.Status] => CampaignFeedStatus
[CampaignFeedError.Reason] => CampaignFeedErrorReason
[ClientTermsError.Reason] => ClientTermsErrorReason
[CollectionSizeError.Reason] => CollectionSizeErrorReason
[ConstantOperand.ConstantType] => ConstantOperandConstantType
[DatabaseError.Reason] => DatabaseErrorReason
[DistinctError.Reason] => DistinctErrorReason
[EntityCountLimitExceeded.Reason] => EntityCountLimitExceededReason
[EntityNotFound.Reason] => EntityNotFoundReason
[Function.Operator] => FunctionOperator
[FunctionError.Reason] => FunctionErrorReason
[IdError.Reason] => IdErrorReason
[InternalApiError.Reason] => InternalApiErrorReason
[NotEmptyError.Reason] => NotEmptyErrorReason
[NotWhitelistedError.Reason] => NotWhitelistedErrorReason
[NullError.Reason] => NullErrorReason
[OperationAccessDenied.Reason] => OperationAccessDeniedReason
[Operator] => Operator
[Predicate.Operator] => PredicateOperator
[QuotaCheckError.Reason] => QuotaCheckErrorReason
[RangeError.Reason] => RangeErrorReason
[RateExceededError.Reason] => RateExceededErrorReason
[ReadOnlyError.Reason] => ReadOnlyErrorReason
[RequestContextOperand.ContextType] => RequestContextOperandContextType
[RequestError.Reason] => RequestErrorReason
[RequiredError.Reason] => RequiredErrorReason
[SelectorError.Reason] => SelectorErrorReason
[SizeLimitError.Reason] => SizeLimitErrorReason
[SortOrder] => SortOrder
[StringLengthError.Reason] => StringLengthErrorReason
)
[typemap] => Array
(
[0] => Array
(
[type_ns] => http://www.w3.org/2001/XMLSchema
[type_name] => long
[from_xml] => AdsSoapClient::TypemapLongFromXml
[to_xml] => AdsSoapClient::TypemapLongToXml
)
)
)
[user:protected] => AdWordsUser Object
(
[libVersion:AdWordsUser:private] => 4.5.0
[libName:AdWordsUser:private] => AwApi-PHP
[defaultVersion:AdWordsUser:private] => v201306
[defaultServer:AdWordsUser:private] => https://adwords.google.com
[email:AdWordsUser:private] =>
[password:AdWordsUser:private] =>
[userAgent:AdWordsUser:private] => Bearer
[requestHeaderElements:AdsUser:private] => Array
(
[authToken] =>
[userAgent] => Bearer (AwApi-PHP/4.5.0, Common-PHP/5.0.0, PHP/5.4.3)
[clientCustomerId] => 425-200-3840
[developerToken] => dVe2cHa8yooikOeuULTlKg
[applicationToken] =>
)
[logsDirectory:AdsUser:private] => C:\wamp\www\adwords
[soapCompression:AdsUser:private] => 1
[soapCompressionLevel:AdsUser:private] => 1
[wsdlCache:AdsUser:private] => 0
[authServer:AdsUser:private] => https://accounts.google.com
[oauth2Info:AdsUser:private] => Array
(
[client_id] => 69216050569.apps.googleusercontent.com
[client_secret] => mjnJSzHpcyTe5gMPrg0IY0wK
[access_token] => ya29.AHES6ZT0Cd6_zy7RBo8Mlz9NRRslnwfTomBFa5IK_EDQ8w
[refresh_token] => 1\/6Bn46zuJYtRXbCUulBWulvELoqF39IsnYEML1qLYUQY
)
[oauth2Handler:AdsUser:private] => SimpleOAuth2Handler Object
(
[curlUtils:SimpleOAuth2Handler:private] => CurlUtils Object
(
)
[server:OAuth2Handler:private] => https://accounts.google.com
[scope:protected] => https://adwords.google.com/api/adwords/
)
[libVersion:AdsUser:private] => 5.0.0
[libName:AdsUser:private] => Common-PHP
[defaultServer:AdsUser:private] => https://adwords.google.com
[defaultVersion:AdsUser:private] => v201306
)
[headers:protected] => Array
(
[authToken] =>
[userAgent] => Bearer (AwApi-PHP/4.5.0, Common-PHP/5.0.0, PHP/5.4.3)
[clientCustomerId] => 425-200-3840
[developerToken] => dVe2cHa8yooikOeuULTlKg
[applicationToken] =>
)
[serviceName:protected] => CampaignFeedService
[serviceNamespace:protected] => https://adwords.google.com/api/adwords/cm/v201306
[lastRequest:protected] =>
[lastRequestDom:AdsSoapClient:private] =>
[lastResponse:protected] =>
[lastResponseDom:AdsSoapClient:private] =>
[lastSoapFault:protected] =>
[lastMethodName:protected] =>
[lastArguments:protected] =>
[lastHeaders:protected] =>
[transportLayer:protected] =>
[trace] => 1
[compression] => 49
[_encoding] => utf-8
[_classmap] => Array
(
[getResponse] => CampaignFeedServiceGetResponse
[get] => CampaignFeedServiceGet
[mutate] => CampaignFeedServiceMutate
[mutateResponse] => CampaignFeedServiceMutateResponse
[mutateCallToAction] => CampaignFeedServiceMutateCallToAction
[search] => CampaignFeedServiceSearch
[Function] => FeedFunction
[DateTime] => AdWordsDateTime
[SoapHeader] => SoapRequestHeader
[ApiError] => ApiError
[ApiException] => ApiException
[ApplicationException] => ApplicationException
[AuthenticationError] => AuthenticationError
[AuthorizationError] => AuthorizationError
[CampaignFeed] => CampaignFeed
[CampaignFeedError] => CampaignFeedError
[CampaignFeedOperation] => CampaignFeedOperation
[Operation] => Operation
[CampaignFeedPage] => CampaignFeedPage
[NullStatsPage] => NullStatsPage
[CampaignFeedReturnValue] => CampaignFeedReturnValue
[ListReturnValue] => ListReturnValue
[ClientTermsError] => ClientTermsError
[CollectionSizeError] => CollectionSizeError
[ConstantOperand] => ConstantOperand
[FunctionArgumentOperand] => FunctionArgumentOperand
[DatabaseError] => DatabaseError
[DateRange] => DateRange
[DistinctError] => DistinctError
[EntityCountLimitExceeded] => EntityCountLimitExceeded
[EntityNotFound] => EntityNotFound
[FeedAttributeOperand] => FeedAttributeOperand
[FunctionError] => FunctionError
[FunctionOperand] => FunctionOperand
[IdError] => IdError
[InternalApiError] => InternalApiError
[NotEmptyError] => NotEmptyError
[NotWhitelistedError] => NotWhitelistedError
[NullError] => NullError
[Page] => Page
[OperationAccessDenied] => OperationAccessDenied
[OrderBy] => OrderBy
[Paging] => Paging
[Predicate] => Predicate
[QuotaCheckError] => QuotaCheckError
[RangeError] => RangeError
[RateExceededError] => RateExceededError
[ReadOnlyError] => ReadOnlyError
[RequestContextOperand] => RequestContextOperand
[RequestError] => RequestError
[RequiredError] => RequiredError
[Selector] => Selector
[SelectorError] => SelectorError
[SizeLimitError] => SizeLimitError
[SoapResponseHeader] => SoapResponseHeader
[StringLengthError] => StringLengthError
[AuthenticationError.Reason] => AuthenticationErrorReason
[AuthorizationError.Reason] => AuthorizationErrorReason
[CampaignFeed.Status] => CampaignFeedStatus
[CampaignFeedError.Reason] => CampaignFeedErrorReason
[ClientTermsError.Reason] => ClientTermsErrorReason
[CollectionSizeError.Reason] => CollectionSizeErrorReason
[ConstantOperand.ConstantType] => ConstantOperandConstantType
[DatabaseError.Reason] => DatabaseErrorReason
[DistinctError.Reason] => DistinctErrorReason
[EntityCountLimitExceeded.Reason] => EntityCountLimitExceededReason
[EntityNotFound.Reason] => EntityNotFoundReason
[Function.Operator] => FunctionOperator
[FunctionError.Reason] => FunctionErrorReason
[IdError.Reason] => IdErrorReason
[InternalApiError.Reason] => InternalApiErrorReason
[NotEmptyError.Reason] => NotEmptyErrorReason
[NotWhitelistedError.Reason] => NotWhitelistedErrorReason
[NullError.Reason] => NullErrorReason
[OperationAccessDenied.Reason] => OperationAccessDeniedReason
[Operator] => Operator
[Predicate.Operator] => PredicateOperator
[QuotaCheckError.Reason] => QuotaCheckErrorReason
[RangeError.Reason] => RangeErrorReason
[RateExceededError.Reason] => RateExceededErrorReason
[ReadOnlyError.Reason] => ReadOnlyErrorReason
[RequestContextOperand.ContextType] => RequestContextOperandContextType
[RequestError.Reason] => RequestErrorReason
[RequiredError.Reason] => RequiredErrorReason
[SelectorError.Reason] => SelectorErrorReason
[SizeLimitError.Reason] => SizeLimitErrorReason
[SortOrder] => SortOrder
[StringLengthError.Reason] => StringLengthErrorReason
)
[_features] => 1
[_stream_context] => Resource id #29
[_user_agent] => PHP-SOAP/5.4.3, gzip
[_soap_version] => 1
[sdl] => Resource id #31
[typemap] => Resource id #32
[location] => https://adwords.google.com/api/adwords/cm/v201306/CampaignFeedService
)