Intermittent issues with WSDL

2012-09-17 Thread Brandon Parise
 

We are experiencing intermittent issues downloading reports resulting in 
this error being thrown:

Error Message: SOAP-ERROR: Parsing WSDL: Couldn't load from '
https://adwords.google.com/api/adwords/cm/v201109/ReportDefinitionService?wsdl' 
: failed to load external entity 
https://adwords.google.com/api/adwords/cm/v201109/ReportDefinitionService?wsdl


Anyone else experiencing this?
Brandon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Timezone reference table updated

2012-08-15 Thread Brandon Parise
This is the first time that we pulled AccountTimeZoneId in reports so I am
not sure if this has always been the case. It's creating issues on our end
since at the moment -05:00 is US/Central, not Eastern so our DateTime logic
gets messed up;

$date = new DateTime('2012-07-15 00:00:00 -05:00'); // 2012-07-15 00:00:00
$date-setTimeZone(new DateTimeZone('America/New_York')); // 2012-07-15
01:00:00

Changing TimeZone to EST shifts the time +1 hour due to the incorrect
offset coming down through the reports.

Brandon

On Wed, Aug 15, 2012 at 5:39 AM, Oliver oliver.darra...@gmail.com wrote:

 Brandon, are you saying you only just started getting inaccurate results
 for timezone?  Has it not always been like this?


 On Tuesday, August 14, 2012 9:31:51 PM UTC+1, Brandon Parise wrote:

 The timezone is not being shifted based upon the observance of daylight
 savings time.

 I pulled a report for today:

 103526900,2012-08-14,1.0,4,1,**7.59,9,(GMT-05:00) Eastern Time

 The current offset should be GMT-04:00

 B

 On Wednesday, February 29, 2012 6:05:16 PM UTC-5, Eric Koleda wrote:

 Hi All,

 We've recently updated the timezone reference table in our documentation:

 http://code.google.com/apis/**adwords/docs/appendix/**timezones.htmlhttp://code.google.com/apis/adwords/docs/appendix/timezones.html

 This table now includes the POSIX name of the timezone used by the
 CreateAccountService as well as the display name returned in the
 AccountTimeZoneId file of reports.  For example, the timezone
 America/New_York is displayed as (GMT-05:00) Eastern Time in reports.
  The offset displayed in the parenthesis will change based upon
 the observance of daylight savings time, etc.

 We are still working to making it simpler to retrieve the timezone of an
 account, but for now downloading it in a report is the only method
 available.

 Best,
 - Eric Koleda, 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


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Timezone reference table updated

2012-08-14 Thread Brandon Parise
The timezone is not being shifted based upon the observance of daylight 
savings time.

I pulled a report for today:

103526900,2012-08-14,1.0,4,1,7.59,9,(GMT-05:00) Eastern Time

The current offset should be GMT-04:00

B

On Wednesday, February 29, 2012 6:05:16 PM UTC-5, Eric Koleda wrote:

 Hi All,

 We've recently updated the timezone reference table in our documentation:

 http://code.google.com/apis/adwords/docs/appendix/timezones.html

 This table now includes the POSIX name of the timezone used by the 
 CreateAccountService as well as the display name returned in the 
 AccountTimeZoneId file of reports.  For example, the timezone 
 America/New_York is displayed as (GMT-05:00) Eastern Time in reports. 
  The offset displayed in the parenthesis will change based upon 
 the observance of daylight savings time, etc.

 We are still working to making it simpler to retrieve the timezone of an 
 account, but for now downloading it in a report is the only method 
 available.

 Best,
 - Eric Koleda, 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


Report account timezone has incorrect offset

2012-08-13 Thread Brandon Parise
I pull a report @ 3:30PM EST and this is an example row:

98697020,2012-08-13,15,(GMT-05:00) Eastern Time

The problem here is that currently Eastern Time is GMT-04:00 due to 
daylight savings.

This is causing some confusion on our end because 3PM @ -05:00 offset is 
actually in the future

Brandon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: AdGroupAdService Really Slow to get get 10 ads

2012-08-08 Thread Brandon Parise
Email sent.
Thank!!
Brandon

On Tuesday, August 7, 2012 10:21:32 PM UTC-4, Anash P. Oommen wrote:

 Hi Brandon,

 Sure, we'd like to see the SOAP request and response. Could you email them 
 to anash.p...@google.com javascript: and ping this thread? I'll follow 
 up with you over the email.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Tuesday, 7 August 2012 23:44:21 UTC+5:30, Brandon Parise wrote:

 Yes we are.  It seems to be with our larger accounts that we see this 
 massive slowdown.  Do you want a full SOAP Request?  I would appreciate the 
 help!!

 B

 On Tue, Aug 7, 2012 at 1:48 PM, David Torres david@google.comwrote:

 Hi Brandon,

 Are you still experiencing this problem?

 Best,

 -David Torres - AdWords API Team


 On Friday, August 3, 2012 9:16:53 AM UTC-4, Brandon Parise wrote:

 Is there anyway to batch ::get() requests like BulkMutateJob?

 B

 On Friday, August 3, 2012 8:31:05 AM UTC-4, Danial Klimkin wrote:

 Hello Brandon,


 The reply time depends on many parameters including current system 
 load. Please consider joining your requests into batches or use reporting 
 if you need to query large number of AdGroups for Ads.


 -Danial, AdWords API Team.


 On Wednesday, August 1, 2012 12:04:36 AM UTC+4, Brandon Parise wrote:

 We are experiencing really long response times from the API.  This 
 operation is trying to get 10 Ads from the AdGroupAdService using NO 
 predicates;

 Response snippet:

 soap:HeaderResponseHeader xmlns=https://adwords.google.**
 com/api/adwords/cm/v201109_1https://adwords.google.com/api/adwords/cm/v201109_1
 **requestId**0004c625a338a6380a96b0047e**
 8c/requestIdserviceName**AdGroupAdService/serviceName**
 methodNameget/methodName**operations10/operations**
 responseTime*3917*/**responseTimeunits10/units**
 /ResponseHeader/soap:**Header

 These historically ran about 500-600ms responseTime.  Any indication 
 why?  My selector is only selecting the following fields:

 ?php
 $selector-fields = array(
 'Id', 
 'AdGroupId', 
 'Url', 
 'DisplayUrl', 
 'Headline', 
 'Description1', 
 'Description2', 
 'Status'
 );
 ?

 Any help would be greatly appreciated!!!
 Brandon

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




-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: AdGroupAdService Really Slow to get get 10 ads

2012-08-07 Thread Brandon Parise
Yes we are.  It seems to be with our larger accounts that we see this
massive slowdown.  Do you want a full SOAP Request?  I would appreciate the
help!!

B

On Tue, Aug 7, 2012 at 1:48 PM, David Torres david.t+m...@google.comwrote:

 Hi Brandon,

 Are you still experiencing this problem?

 Best,

 -David Torres - AdWords API Team


 On Friday, August 3, 2012 9:16:53 AM UTC-4, Brandon Parise wrote:

 Is there anyway to batch ::get() requests like BulkMutateJob?

 B

 On Friday, August 3, 2012 8:31:05 AM UTC-4, Danial Klimkin wrote:

 Hello Brandon,


 The reply time depends on many parameters including current system load.
 Please consider joining your requests into batches or use reporting if you
 need to query large number of AdGroups for Ads.


 -Danial, AdWords API Team.


 On Wednesday, August 1, 2012 12:04:36 AM UTC+4, Brandon Parise wrote:

 We are experiencing really long response times from the API.  This
 operation is trying to get 10 Ads from the AdGroupAdService using NO
 predicates;

 Response snippet:

 soap:HeaderResponseHeader xmlns=https://adwords.google.**
 com/api/adwords/cm/v201109_1https://adwords.google.com/api/adwords/cm/v201109_1
 **requestId**0004c625a338a6380a96b0047e**
 8c/requestIdserviceName**AdGroupAdService/serviceName**
 methodNameget/methodName**operations10/operations**
 responseTime*3917*/**responseTimeunits10/units**
 /ResponseHeader/soap:**Header

 These historically ran about 500-600ms responseTime.  Any indication
 why?  My selector is only selecting the following fields:

 ?php
 $selector-fields = array(
 'Id',
 'AdGroupId',
 'Url',
 'DisplayUrl',
 'Headline',
 'Description1',
 'Description2',
 'Status'
 );
 ?

 Any help would be greatly appreciated!!!
 Brandon

  --
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 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


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


New AdWords PHP Client (rewrite)

2012-08-07 Thread Brandon Parise
I was wondering if there is anything in the pipeline to rewrite the adwords 
PHP client.  It feels really dated and lacks a lot of essential features of 
high-end vendor libraries like PSR-0 autoloader, event handlers, proper 
logging, etc.  A utility or plugin repository for features like 
asynchronous report downloading (w/ curl_multi) would be great for the 
community!  I have tons ideas..

Would also be great to host this on github :)

Brandon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: AdGroupAdService Really Slow to get get 10 ads

2012-08-03 Thread Brandon Parise
Is there anyway to batch ::get() requests like BulkMutateJob?

B

On Friday, August 3, 2012 8:31:05 AM UTC-4, Danial Klimkin wrote:

 Hello Brandon,


 The reply time depends on many parameters including current system load. 
 Please consider joining your requests into batches or use reporting if you 
 need to query large number of AdGroups for Ads.


 -Danial, AdWords API Team.


 On Wednesday, August 1, 2012 12:04:36 AM UTC+4, Brandon Parise wrote:

 We are experiencing really long response times from the API.  This 
 operation is trying to get 10 Ads from the AdGroupAdService using NO 
 predicates;

 Response snippet:

 soap:HeaderResponseHeader xmlns=
 https://adwords.google.com/api/adwords/cm/v201109_1
 requestId0004c625a338a6380a96b0047e8c/requestIdserviceNameAdGroupAdService/serviceNamemethodNameget/methodNameoperations10/operationsresponseTime
 *3917*/responseTimeunits10/units/ResponseHeader/soap:Header

 These historically ran about 500-600ms responseTime.  Any indication 
 why?  My selector is only selecting the following fields:

 ?php
 $selector-fields = array(
 'Id', 
 'AdGroupId', 
 'Url', 
 'DisplayUrl', 
 'Headline', 
 'Description1', 
 'Description2', 
 'Status'
 );
 ?

 Any help would be greatly appreciated!!!
 Brandon



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


AdGroupAdService Really Slow to get get 10 ads

2012-07-31 Thread Brandon Parise
We are experiencing really long response times from the API.  This 
operation is trying to get 10 Ads from the AdGroupAdService using NO 
predicates;

Response snippet:

soap:HeaderResponseHeader 
xmlns=https://adwords.google.com/api/adwords/cm/v201109_1;requestId0004c625a338a6380a96b0047e8c/requestIdserviceNameAdGroupAdService/serviceNamemethodNameget/methodNameoperations10/operationsresponseTime
*3917*/responseTimeunits10/units/ResponseHeader/soap:Header

These historically ran about 500-600ms responseTime.  Any indication why?  
My selector is only selecting the following fields:

?php
$selector-fields = array(
'Id', 
'AdGroupId', 
'Url', 
'DisplayUrl', 
'Headline', 
'Description1', 
'Description2', 
'Status'
);
?

Any help would be greatly appreciated!!!
Brandon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Bulk Downloading Definitions

2012-07-31 Thread Brandon Parise
I have an account that has 150,000 ads that I need to pull down.  Up until 
this point I've been using AdGroupAdService with paging but that's insanely 
slow (5-10s per 100 definitions).  I've seen mention of people using the 
ReportDefinitionService but I am not sure that's the suggested way.  What's 
the best way to download large amounts of definitions from AdWords API?

This is just 1 of maybe 50 accounts we manage so this needs to be quick.

Brandon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Get New Campaigns Only

2012-07-30 Thread Brandon Parise
Thanks for the clarification!
Don't know why it took me this long but I can use our local list of 
campaigns as an inverse selector:

?php
$list = array('of','campaign','ids','locally');
$selector-predicates []= new \Predicate('CampaignId', 'NOT_IN', 
array($list));
?

Brandon

On Monday, July 30, 2012 11:28:10 AM UTC-4, Kevin Winter wrote:

 To clarify, I meant to say that ordering of IDs is not guaranteed and 
 should not be relied upon.  Please don't make any assumptions about IDs 
 other than that they are unique.

 - Kevin Winter
 AdWords API Team

 On Monday, July 30, 2012 11:19:01 AM UTC-4, Kevin Winter wrote:

 Hi Brandon,
   Campaign IDs are roughly incremental.  That is, a campaign created a 
 year ago will have a lower ID than the one created today (to the best of my 
 knowledge).  However, this is guaranteed.  We do guarantee that IDs will be 
 unique, but with no constraint on ordering.

 In general, there are better ways to approach this.  For services that 
 use a generic selector, you can specify a Paging value to only retrieve N 
 results at a time.  However, the CustomerSyncService uses its own 
 selectorhttps://developers.google.com/adwords/api/docs/reference/latest/CustomerSyncService.CustomerSyncSelectorwhich
  doesn't support paging.  It also doesn't support predicates, so your 
 proposed method will not work.  Instead we recommend to specify a smaller 
 time interval in the selector.  If you find retrieving everything for a day 
 to be overwhelming, change the date range to one hour and make 24 calls, 
 for example.

 - Kevin Winter
 AdWords API Team

 On Tuesday, July 17, 2012 4:43:59 PM UTC-4, Brandon Parise wrote:

 Are CampaignID's incremental?

 I am performing a CustomerSyncService operation but don't want to 
 download the entire list of Campaign's each time.  I was thinking of using 
 the MAX(CampaignID) from my previous sync as a predicate to only fetch 
 *NEW* campaigns since my last sync:

 ?php
 $max = '12345'; // saved from my last sync (saved in local db)
 $selector-predicates []= new \Predicate('CampaignId', 'GREATER_THAN', 
 array($max));
 ?

 So only CampaignId's  12345 would need to be pulled down, thoughts?

 Brandon



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Production Environment - FAILED_TO_RETRIEVE_LOGIN_COOKIE

2012-07-26 Thread Brandon Parise
We are encountering the same issue:

[AuthenticationError.FAILED_TO_RETRIEVE_LOGIN_COOKIE @ ]

Brandon

On Thursday, July 26, 2012 2:27:35 PM UTC-4, yaron wrote:

 Hi to the support Team
 we are experiencing lots of 
 FAILED_TO_RETRIEVE_LOGIN_COOKIE api errors during the last few hours 
 do you have any knowledge of the issue?
 thanks
 Yaron


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Get New Campaigns Only

2012-07-17 Thread Brandon Parise
Are CampaignID's incremental?

I am performing a CustomerSyncService operation but don't want to download 
the entire list of Campaign's each time.  I was thinking of using the 
MAX(CampaignID) from my previous sync as a predicate to only fetch *NEW* 
campaigns since my last sync:

?php
$max = '12345'; // saved from my last sync (saved in local db)
$selector-predicates []= new \Predicate('CampaignId', 'GREATER_THAN', 
array($max));
?

So only CampaignId's  12345 would need to be pulled down, thoughts?

Brandon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Get New Campaigns Only

2012-07-17 Thread Brandon Parise
Further clarification:

I don't want to have to download the entire account's campaigns (using 
CampaignService) prior to calling CustomerSyncService.  This would be a lot 
of redundant definitions.  Instead, I want to download only those NEW 
campaigns and then use my local DB to supply the CampaignID's to pass to 
the CustomerSyncService.

On Tuesday, July 17, 2012 4:43:59 PM UTC-4, Brandon Parise wrote:

 Are CampaignID's incremental?

 I am performing a CustomerSyncService operation but don't want to download 
 the entire list of Campaign's each time.  I was thinking of using the 
 MAX(CampaignID) from my previous sync as a predicate to only fetch *NEW* 
 campaigns since my last sync:

 ?php
 $max = '12345'; // saved from my last sync (saved in local db)
 $selector-predicates []= new \Predicate('CampaignId', 'GREATER_THAN', 
 array($max));
 ?

 So only CampaignId's  12345 would need to be pulled down, thoughts?

 Brandon


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Create unique criterion id's for same criterion text

2012-05-17 Thread Brandon Parise
Keywords are AdGroupCriterion which means they are unique to the AdGroup 
they were created.  Whenever you perform a mutate() on the AdGroupCriterion 
(keyword) you must specify the scoping AdGroupId.  I can only assume it's 
this way because if each AdGroup would create a unique Keyword ID then that 
ID could go pass the bounds of an unsigned 64-bit int.

Brandon

On Thursday, May 17, 2012 4:15:14 AM UTC-4, Natalia wrote:

 I have been creating keywords on *different adroups *but with the same 
 text and I expected each of them to have a different ID but it seems that 
 even though the adgroup id's are different when the text is the same I get 
 the same criterion id's returned. I am baffled as to how I am supposed to 
 work with these id's in terms of pausing keywords. Maybe I'm failing to see 
 something but it seems that if I pause one it would pause that keywords 
 across all adgroups, is that correct?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 to separate specific dates from daterange?

2012-05-17 Thread Brandon Parise
What would be a good use case to pull stats at the Campaign entity rather 
than through a performance report?

On Tuesday, May 15, 2012 10:15:44 AM UTC-4, Kevin Winter wrote:

 Hi,
   Alexander is correct - you should use reports.  The CampaignService will 
 return aggregated stats for the daterange you request - if you request two 
 days worth, both days will be summed in the results.  Reports, on the other 
 hand, can be segmented by day.

 - Kevin Winter
 AdWords API Team

 On Wednesday, May 9, 2012 7:15:25 AM UTC-4, Alexander Nitschke wrote:

 Hi Mika,

 I would do this with a report, not with the CampaignService. With a 
 report it's not difficult to get daily stats.

 Best wishes
 Alexander


 Am Mittwoch, 9. Mai 2012 10:22:42 UTC+2 schrieb MikaSaarinen:

 Hi, I am wondering how to get stats for specific dates within the 
 DateRange I have setup? I am using CampaignService v201109_1. 

 Basicly what I want to do is to change the presentation from DateRange 
 (example: 20120501 - 20120509) to show me all dates between that DateRange 
 as own values instead of showing total amount for that daterange only. How 
 is this solved most easily?



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Cache AuthToken Benefits?

2011-01-04 Thread Brandon Parise
Is there any benefit of caching an AuthToken locally versus just
requesting one each time you invoke the API?

The problem with caching is that you have to then wrap every mutate()
to catch the ApiException and then regenerate/store the new AuthToken
then somehow re-run the mutate().  Seems to be a lot of points of
failure to save a few hundred milliseconds to fetch a new AuthToken.

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: Selector.dateRange vs Predicate

2010-12-14 Thread Brandon Parise
Oh, interesting!
So when you add/edit a ReportDefinition and get an ID back, you can
continue to re-download that same report using that ID?

I am used to the whole request report, get id, use the id to download
the report process.

Thanks,
Brandon

On Dec 14, 5:05 am, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Brandon,

 I haven't tried it myself, but I believe that both should give you
 same results.

 Since you mentioned that you want to retrieve reports for Yesterday,
 a better way would be to set the ReportDefinition.dateRangeType as
 Yesterday, and leave out the selector.dateRange and Date predicates.
 This way, you don't have to create a new report definition every day,
 you can reuse the existing report definition. 
 Seehttp://code.google.com/apis/adwords/docs/reference/latest/ReportDefin...
 for details.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Dec 14, 2:29 am, Brandon Parise bpar...@gmail.com wrote:

  Want to load Keyword Performance Report for yesterday...

  2010-12-12 through 2010-12-12

  What is the difference between:

  $selector-dateRange = new DateRange('20101212', '20101212');

  vs.

  $startDatePredicate = new Predicate ();
  $startDatePredicate-field = 'Date';
  $startDatePredicate-operator = 'GREATER_THAN_EQUALS';
  $startDatePredicate-values = array ('20101212');

  $endDatePredicate = new Predicate ();
  $endDatePredicate-field = 'Date';
  $endDatePredicate-operator = 'LESS_THAN_EQUALS';
  $endDatePredicate-values = array ('20101212');

  $selector-predicates = array($startDatePredicate, $endDatePredicate);

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Selector.dateRange vs Predicate

2010-12-14 Thread Brandon Parise
The issue, too, is if I enter TODAY how is that affected by
timezones?
If I run it at 12:01AM EST on Dec 20 for TODAY will it return data
for 12/20 or 12/19 or does it depend on the timezones set on each
account?

Thanks!

On Dec 14, 5:05 am, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Brandon,

 I haven't tried it myself, but I believe that both should give you
 same results.

 Since you mentioned that you want to retrieve reports for Yesterday,
 a better way would be to set the ReportDefinition.dateRangeType as
 Yesterday, and leave out the selector.dateRange and Date predicates.
 This way, you don't have to create a new report definition every day,
 you can reuse the existing report definition. 
 Seehttp://code.google.com/apis/adwords/docs/reference/latest/ReportDefin...
 for details.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Dec 14, 2:29 am, Brandon Parise bpar...@gmail.com wrote:

  Want to load Keyword Performance Report for yesterday...

  2010-12-12 through 2010-12-12

  What is the difference between:

  $selector-dateRange = new DateRange('20101212', '20101212');

  vs.

  $startDatePredicate = new Predicate ();
  $startDatePredicate-field = 'Date';
  $startDatePredicate-operator = 'GREATER_THAN_EQUALS';
  $startDatePredicate-values = array ('20101212');

  $endDatePredicate = new Predicate ();
  $endDatePredicate-field = 'Date';
  $endDatePredicate-operator = 'LESS_THAN_EQUALS';
  $endDatePredicate-values = array ('20101212');

  $selector-predicates = array($startDatePredicate, $endDatePredicate);

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Maximum number of Report Definitions?

2010-12-14 Thread Brandon Parise
Is there a maximum number of report definitions you can ADD to a
single account?
We have added a lot and only get 100 back via
ReportDefinitionService::get(), so I was wondering if that was the
maximum.

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


Selector.dateRange vs Predicate

2010-12-13 Thread Brandon Parise
Want to load Keyword Performance Report for yesterday...

2010-12-12 through 2010-12-12

What is the difference between:

$selector-dateRange = new DateRange('20101212', '20101212');

vs.

$startDatePredicate = new Predicate ();
$startDatePredicate-field = 'Date';
$startDatePredicate-operator = 'GREATER_THAN_EQUALS';
$startDatePredicate-values = array ('20101212');

$endDatePredicate = new Predicate ();
$endDatePredicate-field = 'Date';
$endDatePredicate-operator = 'LESS_THAN_EQUALS';
$endDatePredicate-values = array ('20101212');

$selector-predicates = array($startDatePredicate, $endDatePredicate);

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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