Hi,

Because an MCC account can't have campaigns of its own, you can't run
getAllAdWordsCampaigns() as the MCC user.  Instead, you must set the
header <clientEmail> in your request to the login email of the client
account you wish to get campaigns for.  You can find out more
information about the request headers here:
http://code.google.com/apis/adwords/docs/developer/index.html#adwords_api_intro_request.

Best,
- Eric

On Oct 20, 2:39 am, Hakan Atik <[email protected]> wrote:
> Hi,
> my previous message said, when i use these code, I did not receive my
> clients capmaigns, but receive the clients,when I use below these
> codes,
>
> AccountService service =  (AccountService)User.GetService
> (ApiServices.v13.AccountService);
>         String[] loginMails = service.getClientAccounts();
>
>  but  when I call these function,
>
> CampaignService campaignService = (CampaignService)
> Kullanici.GetService
> (ApiServices.v13.CampaignService);
>  Campaign[] myCampaigns = campaignService.getAllAdWordsCampaigns(0);
>
> return null, why? can you help me please?
>
> my Accounts has many clients and belongs campaigns have, when I log in
> to  adwords panel I see clients and clicking the clients i see
> campaigns and other infos, now I need get my clients and belongs
> campaigns and campaign informations but I am not succes yet ...
>
> On 19 Ekim, 17:57, AdWords API Advisor <[email protected]>
> wrote:
>
>
>
> > Hi,
>
> > Using the CampaignService is the right approach to determine what
> > campaigns belong to a given customer.  What is the problem you are
> > encountering with this call?  Is there an exception being thrown?  Do
> > you have any logs of the SOAP XML request and response?
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Oct 19, 7:54 am, Hakan Atik <[email protected]> wrote:
>
> > > Hi All,
>
> > > I trying take a my customer list and its belongs to campaigns list, I
> > > am taking a customer list now (emails) but  I didnot take customers
> > > belongs campaigns and ID's when I am using (I am using .Net c#)
>
> > > CampaignService campaignService = (CampaignService)Kullanici.GetService
> > > (ApiServices.v13.CampaignService);
> > >  Campaign[] myCampaigns = campaignService.getAllAdWordsCampaigns(0);
>
> > >  these code i caanot campaigns, can you help me please how can I take
> > > my customer and belongs campaign list ?
> > > Thanks a lot...- Alıntıyı gizle -
>
> > - Alıntıyı göster -
--~--~---------~--~----~------------~-------~--~----~
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