I also tried below, too bad without success

$oCampainservice->get(array('ids' => NULL, 'campaignStatuses' => NULL,
'statsSelector' => NULL, 'paging' => NULL));

On 23 mrt, 15:36, Jan de Vries <i...@vinto.nl> wrote:
> I'm trying to get all campaigns from my sandbox evironment.
> I updated my script from the supplied php example where you can add a
> campaign, that script worked fine. This script however, gets the same
> error every time: [RequiredError.REQUIRED @ selector]
>
> As I read on the documentation for getting campaigns, no selectors are
> required, so I don't sent them.
> What am I doing wrong? I know I can use the library, but I want to
> know how things work, so I can create my own stuff ;)
>
> This is my script:
>
> $sWsdl = 'https://adwords-sandbox.google.com/api/adwords/cm/v201008/
> CampaignService?wsdl';
>         $sNamespace = 'https://adwords.google.com/api/adwords/cm/
> v201008';
>         $aOptions = array(
>             'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
>             'encoding' => 'utf-8');
>
>         $oCampainservice = new SoapClient($sWsdl, $aOptions);
>         $oHeaders = new SoapHeader($sNamespace, 'RequestHeader',
> array(
>             'authToken' => $this->oAuthtoken->GetAuthToken(),
>             'clientEmail' => ADWORDS_CLIENT_EMAIL,
>             'userAgent' => ADWORDS_USER_AGENT,
>             'developerToken' => ADWORDS_DEVELOPER_TOKEN));
>         $oCampainservice->__setSoapHeaders($oHeaders);
>
>         try {
>             $oCampainservice->get();
>         }
>         catch (SoapFault $oError) {
>             print_r($oError);
>         exit();

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

Reply via email to