Hi, I need your help please, I try to get all campaign for a MCC with a client ID :
$user = new AdWordsUser(); $user->SetEmail(mcc...@xxx.com) $user->SetClientId(xxx-xxx-xxxx); $user->SetPassword(xxxx) $user->ValidateUser() return true; $campaignServiceObject = $user->GetService('CampaignService', ADWORDS_VERSION); CampaignService Object ( [options:protected] => Array ( [trace] => 1 [encoding] => utf-8 [connection_timeout] => 0 [features] => 1 [compression] => 33 [user_agent] => PHP-SOAP/5.3.15-1~dotdeb.0, gzip [cache_wsdl] => 0 [stream_context] => Resource id #60 [classmap] => Array ( [getResponse] => CampaignServiceGetResponse [get] => CampaignServiceGet [mutate] => CampaignServiceMutate [mutateResponse] => CampaignServiceMutateResponse [DateTime] => AdWordsDateTime [SoapHeader] => SoapRequestHeader [AdxError] => AdxError [ApiError] => ApiError [AuthenticationError] => AuthenticationError [AuthorizationError] => AuthorizationError [BetaError] => BetaError [BiddingError] => BiddingError [BiddingTransitionError] => BiddingTransitionError [BudgetError] => BudgetError [CampaignError] => CampaignError [CampaignStats] => CampaignStats [Stats] => Stats [ClientTermsError] => ClientTermsError [ConversionOptimizer] => ConversionOptimizer [BiddingStrategy] => BiddingSt...rce id #63 [location] => https://adwords.google.com/api/adwords/cm/v201209/CampaignService ) // Create selector. $selector = new Selector(); $selector->fields = array('Id', 'Name'); $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); Selector Object ( [fields] => Array ( [0] => Id [1] => Name ) [predicates] => [dateRange] => [ordering] => Array ( [0] => OrderBy Object ( [field] => Name [sortOrder] => ASCENDING ) ) [paging] => ) // Create paging controls. $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); $page = $campaignServiceObject->get($selector); An error has occurred: Call to a member function getAttribute() on a non-object I don't know where is the problème ? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.