Re: Possible to use Adwords API without being MCC?

2011-10-06 Thread Anash P. Oommen
Hi Eazybot,

If you have a developer token, then you can make an API call without an MCC 
account; all you need is the client account's email and password. However, a 
developer token is available only from an API MCC.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: How long must we wait for developer token approval?

2011-10-06 Thread Anash P. Oommen
Hi Eazybot,

As mentioned on 
https://groups.google.com/forum/#!topic/adwords-api/BXyV40LfEEI, the review 
period for a token has been revised to 6 weeks. 

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: ProximityTarget GeoTargets v201101

2011-10-06 Thread Anash P. Oommen
Hi Pete, Jason,

It is 500mi/800km. The limit is listed at 
http://code.google.com/apis/adwords/docs/appendix/limits.html#campaigntarget
.

Cheers,
Anash P.Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Path incorrect

2011-10-06 Thread briandev
Trying to run the reports using the following code:

try
{
$user = new AdWordsUser( NULL, $email, $pass, ADWORDS_API_TOKEN,
NULL, NULL, $client_id );

// Log SOAP XML request and response.
$user->LogDefaults();

// Get the AdGroupService.
$adGroupService = $user->GetService('AdGroupService', 
'v201008');

$adGroupId = (float) $adgroup_id;

// Create ad group with updated status.
$adGroup = new AdGroup();
$adGroup->id = $adGroupId;

// Set status
if ( $state == 'PAUSE' )
{
$adGroup->status = 'PAUSED';
}
elseif ( $state == 'UNPAUSE' )
{
$adGroup->status = 'ENABLED';
}

// Update bids
if ( $bid != '' )
{
// Bid amounts are in microamounts
// (1,000,000 = 1 unit, e.g. $1, so to calculate micro 
amount, it
is amount * 1,000,000)

$adGroupBids = new ManualCPCAdGroupBids();
$adGroupBids->keywordMaxCpc = new Bid( new Money( $bid *
100 ) );
$adGroupBids->keywordContentMaxCpc = new Bid( new 
Money( $bid *
100 ) );
$adGroup->bids = $adGroupBids;
}

// Create operations.
$operation = new AdGroupOperation();
$operation->operand = $adGroup;
$operation->operator = 'SET';

$operations = array($operation);

// Update ad group.
$result = $adGroupService->mutate($operations);

// Display ad groups.
if (isset($result->value))
{
foreach ($result->value as $adGroup)
{
print 'Ad group with name "' . $adGroup->name . 
'", id "'
. $adGroup->id . '", and status "' . 
$adGroup->status
. "\" was updated.\n";
}
}
else
{
print "No ad groups were updated.";
}
}
catch ( Exception $e )
{
print $e->getMessage();
}

However, when I try to run this, I receive the following error:

PHP Warning:  require_once(/home/sites/dev.example.com/includes/
libraries/Google/Api/Ads/AdWords/Lib/../v201008/v201008/
AdGroupService.php): failed to open stream: No such file or directory
in /home/sites/dev.example.com/includes/libraries/Google/Api/Ads/
AdWords/Lib/AdWordsSoapClientFactory.php on line 67

Warning: require_once(/home/sites/dev.example.com/includes/libraries/
Google/Api/Ads/AdWords/Lib/../v201008/v201008/AdGroupService.php):
failed to open stream: No such file or directory in /home/sites/
dev.example.com/includes/libraries/Google/Api/Ads/AdWords/Lib/
AdWordsSoapClientFactory.php on line 67
PHP Fatal error:  require_once(): Failed opening required '/home/sites/
dev.example.com/includes/libraries/Google/Api/Ads/AdWords/Lib/../
v201008/v201008/AdGroupService.php' (include_path='.:/usr/local/share/
pear') in /home/sites/dev.example.com/includes/libraries/Google/Api/
Ads/AdWords/Lib/AdWordsSoapClientFactory.php on line 67

Fatal error: require_once(): Failed opening required '/home/sites/
dev.example.com/includes/libraries/Google/Api/Ads/AdWords/Lib/../
v201008/v201008/AdGroupService.php' (include_path='.:/usr/local/share/
pear') in /home/sites/dev.example.com/includes/libraries/Google/Api/
Ads/AdWords/Lib/AdWordsSoapClientFactory.php on line 67

I'm not sure why it's duplicating the v201008/v201008. I've verified
the directory for the v201008 directory is: /home/sites/
dev.example.com/includes/libraries/Google/Api/Ads/Adwords/, but inside
this, it has the following directories (no files):

ch, cm, info, mcm, o -- it looks like the AdGroupService.php script is
in the 'cm' directory, but the automatic path selection in
AdWordsSoapClientFactory.php doesn't seem to take this into
consideration.

Thoughts? All help appreciated. Thanks.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Is there an adwords api to obtain the recommended maximum/target CPA bid?

2011-10-06 Thread David Torres
Hi,

This is not currently available in the API, but I have filed it as feature 
request for next API releases.

Best,

-David Torres - AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: DataService (v201101) not returning results within the Selector DateRange

2011-10-06 Thread David Torres
Hi,

The dateRange field is generic for the selector and serves to specify a date 
range for statistics returned by other services i.e. CampaignService but it 
has no effect for this service.

Best,

-David Torres - AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: Automated Report Download

2011-10-06 Thread pp
Ok, I found the issue by reverse engineering the PHP library.  My HTTP
headers where "Authorization: GoogleLogin Auth=" when it
should have been "Authorization: GoogleLogin auth="!  My
mistake, but I'm curious why this causes a problem for AdWords but the
same code doesn't cause any problems for the Analytics API.

I can also confirm that you can indeed download reports without a
developer token.  However, due to the recent changes outline here:
https://groups.google.com/forum/#!topic/adwords-api/sHvSoAQTy54

It is no longer possible to download a report defined in the UI, this
leaves me dead in the water as I have no way of defining the report
through the API without a Developer token.  I've wasted several days
of development because Google couldn't be bothered to update the
documentation.

Both AdWords and the related API is a paid for service, how can Google
justify this given that the Analytics API is free, better documented
and supported!?

On Oct 5, 6:19 pm, pp  wrote:
> Hello,
>
> I need to automatically pull data from Google AdWords in CSV format so that
> it can be loaded into an internal reporting application.  Unfortunately, I'm
> quite limited in the language that I can use (WSH - VBScript) and I'm not an
> AdWords Administrator (an external agency owns the admin account).
>
> Is it possible to use "/api/adwords/reportdownload" request to automatically
> download a desired report without a Developer Token?  The API documentation
> doesn't mention passing the Developer Token, however my script always
> returns  
> "!!!1|||805527|||AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID???".  I'm
> sending the clientEmail and Authorization (Auth token return from
> ClientLogin) in the http headers as specified in the documentation and every
> client library I've looked at.
>
> Any help or suggestions would be greatly appreciated.
>
> Cheers
> PP

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Possible to use Adwords API without being MCC?

2011-10-06 Thread Eazybot
Is it possible to use the Adwords API without using an MCC-account?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en