When I go to adwords.google.com and log in I see I have four campaigns
that are currently enabled. According to the API, however, I have no
campaigns. Any ideas as to why? Here's the PHP script I'm using:
<?php
require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
try {
// Get AdWordsUser from credentials in "../auth.ini"
// relative to the AdWordsUser.php file's directory.
$user = new AdWordsUser();
// Log SOAP XML request and response.
$user->LogDefaults();
// Get the CampaignService.
$campaignService = $user->GetCampaignService('v201008');
// Create selector.
$selector = new CampaignSelector();
// Get all campaigns.
$page = $campaignService->get($selector);
echo '<pre>';
print_r($page);
echo '<pre>';
?>
Here's the output of that script:
CampaignPage Object
(
[totalBudget] => Budget Object
(
[period] => DAILY
[amount] => Money Object
(
[microAmount] => 0
[ComparableValueType] => Money
[_parameterMap:ComparableValue:private] => Array
(
[ComparableValue.Type] =>
ComparableValueType
)
)
[deliveryMethod] => STANDARD
)
[entries] =>
[totalNumEntries] => 0
[PageType] => CampaignPage
[_parameterMap:Page:private] => Array
(
[Page.Type] => PageType
)
)
Any ideas?
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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