You don't want to be setting the customerId in your
CampaignSelector ...

You want the procedure to be something similar to:

Get client email + customerId
Create AdWordsUser with the AuthToken and customer credentials
( including your appToken and username pass and other info )
Get the CampaignService for that AdWordsUser:
adWordsUser.getService( AdWordsService.V200909.CAMPAIGN_SERVICE ) )
Get all campaigns for the user with an empty selector:
campaignService.get( new CampaignSelector() );

http://code.google.com/p/google-api-adwords-java/source/browse/trunk/examples/v200909/GetAllCampaigns.java

Pete




On Mar 22, 9:27 pm, "Joshua J. Kugler" <[email protected]> wrote:
> I am doing an operation like this via the SOAP API.
>
> Get a list of client e-mails.
> Get the client account (for their ID)
> CampaignService.get() with the following selector:
>
> selector = {
>             'ids': [client.customerId],
>             'statsSelector': {}
>
> }
>
> Most of my calls to CampaignService.get() are returning:
>
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
>
> Is there any way to debug this?  Some (very few) of my get() queries
> succeed, but most of them return the given error.  I would suspect I'm
> passing malformed parameters, but since some of the queries work, I
> must be passing in OK parameters.
>
> Anyone know what is going on?
>
> j
>
> --
> Joshua Kugler
> Part-Time System Admin/Programmerhttp://www.eeinternet.com
> PGP Key:http://pgp.mit.edu/ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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 [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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to