On Wednesday, May 22, 2013 11:21:38 AM UTC+3, Modestas Stankevičius wrote:
>
> I have a problem with my google adwords api. I do a request and i get a
> null response. I'm using v201209 also tried using v201302 it was the same
> thing. my code:
>
> $user = new AdWordsUser(NULL, $email, $password, $developerToken,
> $applicationToken, $userAgent, $clientId);
> // Get the CampaignService.
> $campaignService = $user->GetCampaignService('v201209');
> $selector = new Selector();
> $selector->fields = array('Id', 'Name', 'Status');
> $selector->ordering = array(new OrderBy('Name', 'ASCENDING'));
> // Get all campaigns.
> $page = $campaignService->get($selector);
>
> $page is null. i know that because i tried to put var_dump($page) after
> the $page = $campaingService->get($selector) and it didn't print anythign.
> Also i get this error
>
> Notice: Failed to load response into DOM: DOMDocument::loadXML(): Empty
> string
> supplied as input in
> C:\wamp\www\google_ad_stats\src201209\Google\Api\Ads\Common\Lib\AdsSoapClient.php
>
> on line 234
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.