I've only just started looking into v200909 today, so I might not have
found all the information.

I have managed to bring back a list of all campaigns, including
deleted ones.

How do I bring back only active/paused campaigns?


So far I have:

// Get the CampaignService.
$campaignService = $user->GetCampaignService();

// Get all campaigns.
$campaignPage = $campaignService->get(new CampaignSelector(NULL, array
('ACTIVE','PAUSED') ));


This produces:
  <SOAP-ENV:Body>
    <ns1:get>
      <ns1:selector>
        <ns1:campaignStatuses>ACTIVE</ns1:campaignStatuses>
        <ns1:campaignStatuses>PAUSED</ns1:campaignStatuses>
      </ns1:selector>
    </ns1:get>
  </SOAP-ENV:Body>

Which seems to be correct (based on other posts in this forum).

However I get:

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

                                )

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

                )

        )

Thanks,


Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to