Re: Bulk job best practices

2010-07-14 Thread khelll
I'm using EC2 machine, and trying to submit to those 3 accounts on
parallel now to the sandbox.
However I'm facing a strange case: the maximum upload the API is
allowing is ~30Kbits/sec, thus for large bulk jobs, the submission to
the API is taking too much time. Is that the case on Production as
well?

Cheers,

On Jul 9, 1:15 am, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi,

 MCC accounts cannot have BulkMutateJobs of their own.  Using MCC
 credentials and a clientEmail or clientCustomerId header is identical
 to using the client's credentials directly, and in both cases the job
 will be created added to the client's queue.

 Best,
 - Eric

 On Jul 7, 6:59 pm, khelll khel...@gmail.com wrote:

  Hey Eric,
  Just wanted to make sure that this will be also the case for MMC
  account, will the queue be for the MMC account or the client account
  it's submitting for?

  Cheers,
  On Jul 7, 8:18 pm, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi,

   Each AdWords account can process one job at a time, given there are
   enough available resources.  Given this, you are better off submitting
   all three jobs at once, which may allow them to run in parallel.

   Best,
   - Eric Koleda, AdWords API Team

   On Jul 7, 4:26 am, khelll khel...@gmail.com wrote:

Any ideas?

On Jul 4, 12:40 pm, khelll khel...@gmail.com wrote:

 I'm updating around 6000 keywords via MMC account and using 3 bulk
 jobs that are executed serially. The jobs are scoped by account, so
 basically I'm updating 3 accounts.
 It's taking around 1 hour and 40 mins to finish the 3 jobs.
 I have the following questions at mind:
 1- Would submitting the 3 jobs on parallel shrink the time consumed,
 considering the fact that I'm using an MMC account to submit the 3
 jobs.
 2- If not, what would be a good solution to reduce the time taken?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Bulk job best practices

2010-07-07 Thread khelll
Any ideas?

On Jul 4, 12:40 pm, khelll khel...@gmail.com wrote:
 I'm updating around 6000 keywords via MMC account and using 3 bulk
 jobs that are executed serially. The jobs are scoped by account, so
 basically I'm updating 3 accounts.
 It's taking around 1 hour and 40 mins to finish the 3 jobs.
 I have the following questions at mind:
 1- Would submitting the 3 jobs on parallel shrink the time consumed,
 considering the fact that I'm using an MMC account to submit the 3
 jobs.
 2- If not, what would be a good solution to reduce the time taken?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Bulk job best practices

2010-07-07 Thread khelll
Hey Eric,
Just wanted to make sure that this will be also the case for MMC
account, will the queue be for the MMC account or the client account
it's submitting for?

Cheers,
On Jul 7, 8:18 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi,

 Each AdWords account can process one job at a time, given there are
 enough available resources.  Given this, you are better off submitting
 all three jobs at once, which may allow them to run in parallel.

 Best,
 - Eric Koleda, AdWords API Team

 On Jul 7, 4:26 am, khelll khel...@gmail.com wrote:

  Any ideas?

  On Jul 4, 12:40 pm, khelll khel...@gmail.com wrote:

   I'm updating around 6000 keywords via MMC account and using 3 bulk
   jobs that are executed serially. The jobs are scoped by account, so
   basically I'm updating 3 accounts.
   It's taking around 1 hour and 40 mins to finish the 3 jobs.
   I have the following questions at mind:
   1- Would submitting the 3 jobs on parallel shrink the time consumed,
   considering the fact that I'm using an MMC account to submit the 3
   jobs.
   2- If not, what would be a good solution to reduce the time taken?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 job best practices

2010-07-04 Thread khelll
I'm updating around 6000 keywords via MMC account and using 3 bulk
jobs that are executed serially. The jobs are scoped by account, so
basically I'm updating 3 accounts.
It's taking around 1 hour and 40 mins to finish the 3 jobs.
I have the following questions at mind:
1- Would submitting the 3 jobs on parallel shrink the time consumed,
considering the fact that I'm using an MMC account to submit the 3
jobs.
2- If not, what would be a good solution to reduce the time taken?


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Customer id is always 0 on sandbox

2010-06-16 Thread khelll
/ns1:phoneNumber
        ns1:postalCode/ns1:postalCode
        ns1:state/ns1:state
       /ns1:primaryAddress
       ns1:timeZoneEffectiveDate1275922932000/
   ns1:timeZoneEffectiveDate
       ns1:timeZoneIdAmerica/New_York/ns1:timeZoneId
      /ns1:getAccountInfoReturn
     /getAccountInfoResponse
    /soapenv:Body
   /soapenv:Envelope

   Thanks for your answer.
   Nicolas

   On Jun 15, 12:12 am, khelll khel...@gmail.com wrote:

Yes still getting 0.

On Jun 14, 8:30 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:

 Hi,

 I'm not able to replicate this issue with my own sandbox account.  Are
 you still seeing this behavior?

 Best,
 - Eric Koleda, AdWords API Team

 On Jun 12, 8:42 pm, khelll khel...@gmail.com wrote:

  I'm trying to get the customer id of some client on sandbox.
  I was using exactly the code 
  examplehttp://code.google.com/p/google-api-adwords-python-lib/source/browse/...,
  It was working well for me, but since few days I started to get 0
  value for all customer ids.
  Any idea?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Customer id is always 0 on sandbox

2010-06-14 Thread khelll
Yes still getting 0.

On Jun 14, 8:30 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi,

 I'm not able to replicate this issue with my own sandbox account.  Are
 you still seeing this behavior?

 Best,
 - Eric Koleda, AdWords API Team

 On Jun 12, 8:42 pm, khelll khel...@gmail.com wrote:





  I'm trying to get the customer id of some client on sandbox.
  I was using exactly the code 
  examplehttp://code.google.com/p/google-api-adwords-python-lib/source/browse/...,
  It was working well for me, but since few days I started to get 0
  value for all customer ids.
  Any idea?

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


Customer id is always 0 on sandbox

2010-06-12 Thread khelll
I'm trying to get the customer id of some client on sandbox.
I was using exactly the code example
http://code.google.com/p/google-api-adwords-python-lib/source/browse/trunk/examples/v13/get_accounts_info.py,
It was working well for me, but since few days I started to get 0
value for all customer ids.
Any idea?

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


AdWords API Re: BulkMutateJobService

2010-04-11 Thread khelll
Yea, I'm facing exactly the same question, how can I get the customer
id for clients on sandbox?
I need to test the scopingEntityId with customer_id type on
sandbox.

On Mar 10, 6:15 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Dan,

 I'm not able to replicate that behavior, as my auto-generated client
 accounts are returned with a customerId.  Do you have the SOAP XML
 logs or requestId from a request that demonstrates this behavior?

 Best,
 - Eric

 On Mar 9, 6:03 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
 wrote:

  AccountService.getAccountInfo() returns 0 for customer id for all 1 -
  5 sandbox accounts.

  Dan

  On Mar 8, 10:15 pm, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi Daniel,

   In production environment you can obtain your customer id in the
   AdWords web interface.  For the sandbox environment this id can only
   be obtained by using the v13 AccountService.getAccountInfo() method.

   Best,
   - Eric Koleda, AdWords API Team

   On Mar 8, 10:05 am, daniel.pl...@gmail.com daniel.pl...@gmail.com
   wrote:

After playing with the request, I've fixed an error, only to come up
with an UNEXPECTED_INTERNAL_API_ERROR

I still have yet to come up with an answer to theCUSTOMER_IDvalue,
but I'm starting to think in the Sandbox it should be 0.

[Mar 08 2010 13:26:36.00 - INFO] POST /api/adwords/job/v200909/
BulkMutateJobService HTTP/1.1
Host: adwords-sandbox.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.9-0.dotdeb.2, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: 
Content-Length: 926

?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/
envelope/ xmlns:ns1=https://adwords.google.com/api/adwords/cm/
v200909 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  SOAP-ENV:Header
    ns1:RequestHeader xsi:type=ns1:RequestHeader
        ** Hidden **
    /ns1:RequestHeader
  /SOAP-ENV:Header
  SOAP-ENV:Body
    ns1:mutate
      ns1:operation
        ns1:operatorADD/ns1:operator
        ns1:operand xmlns:ns1=https://adwords.google.com/api/adwords/
cm/v200909 xsi:type=ns1:BulkMutateJob
          ns1:request
            ns1:partIndex0/ns1:partIndex
            ns1:operationStreams
              ns1:scopingEntityId
                ns1:typeCUSTOMER_ID/ns1:type
                ns1:value0/ns1:value
              /ns1:scopingEntityId
              ns1:operations xmlns:ns1=https://adwords.google.com/
api/adwords/cm/v200909 xsi:type=ns1:Campaign
                ns1:nameFeed 1268054790: Amplifiers amp; Receivers/
ns1:name
                ns1:statusACTIVE/ns1:status
                ns1:budget
                  ns1:periodDAILY/ns1:period
                  ns1:amount
                    ns1:microAmount1/ns1:microAmount
                  /ns1:amount
                  ns1:deliveryMethodACCELERATED/ns1:deliveryMethod
                /ns1:budget
                ns1:biddingStrategy xmlns:ns1=https://
adwords.google.com/api/adwords/cm/v200909 xsi:type=ns1:ManualCPC/
              /ns1:operations
            /ns1:operationStreams
          /ns1:request
          ns1:numRequestParts1/ns1:numRequestParts
        /ns1:operand
      /ns1:operation
    /ns1:mutate
  /SOAP-ENV:Body
/SOAP-ENV:Envelope

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Transfer-Encoding: chunked
Date: Mon, 08 Mar 2010 13:26:36 GMT
Expires: Mon, 08 Mar 2010 13:26:36 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Server: GSE
X-XSS-Protection: 0

?xml version=1.0?
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Body
    soap:Fault
      faultcodesoap:Server/faultcode
      faultstringInternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ /
faultstring
      detail
        ApiExceptionFault xmlns=https://adwords.google.com/api/
adwords/cm/v200909
          messageInternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ /
message
          ApplicationException.TypeApiException/
ApplicationException.Type
          errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-
instance xsi:type=InternalApiError
            fieldPath/
            trigger/
            ApiError.TypeInternalApiError/ApiError.Type
            reasonUNEXPECTED_INTERNAL_API_ERROR/reason
          /errors
        /ApiExceptionFault
      /detail
    /soap:Fault
  /soap:Body
/soap:Envelope

On Mar 8, 12:37 pm, daniel.pl...@gmail.com daniel.pl...@gmail.com
wrote:

 I'm confused about the BulkMutateJobService.

 

AdWords API Limit for operation streams and operations

2010-04-01 Thread khelll
Im wondering what is the maximum allowed operation streams for each
request part/ and for each job.
Also the maximum allowed operations for each stream.

Cheers,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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: AdWords API Cannot access client library in python

2010-03-23 Thread khelll
I'm using this in python and it works great for me:

# Initialize client object.
headers = {
'email': 'some_em...@gmail.com',
'password': 'mylovleypass',
'userAgent': 'Fetcher',
'clientEmail': 'client_1+some_em...@gmail.com',
'developerToken': 'some_em...@gmail.com++usd',
'validateOnly': 'n'
}


client = Client(headers=headers)


Things works smoothly after that:

campaign_service = client.GetCampaignService(
'https://adwords-sandbox.google.com', 'v200909')

# Construct selector and get all campaigns.
selector = {}
campaigns = campaign_service.Get(selector)[0]

# Display results.
if 'entries' in campaigns:
  for campaign in campaigns['entries']:
print ('Campaign with id \'%s\', name \'%s\', and status \'%s\'
was found.'
   % (campaign['id'], campaign['name'], campaign['status']))
else:
  print 'No campaigns were found.'

print
print ('Usage: %s units, %s operations' % (client.GetUnits(),
   client.GetOperations()))


On Mar 23, 8:13 am, dsay dhavalsha...@gmail.com wrote:
 Moreover the link that you have provided is for v12. Will it be same
 for v2009?

 On Mar 23, 7:27 am, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:

  Hi,

  This error is being returned because the header values you are using
  are not valid for the sandbox.  More information on how to set headers
  in the sandbox is available here:

   http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo...
   http://www.youtube.com/watch?v=cqVtUdB975M

  Best,
  - Eric Koleda, AdWords API Team

  On Mar 20, 3:10 pm, dsay dhavalsha...@gmail.com wrote:

           adwordsGoogleHeader = {}
           adwordsGoogleHeader['applicationToken'] =
   Types.untypedType('TOK')
           adwordsGoogleHeader['authToken'] = Types.untypedType('TOK')
           adwordsGoogleHeader['clientEmail'] =
   Types.untypedType('EMAIL')
           adwordsGoogleHeader['developerToken'] =
   Types.untypedType('TOK')
           adwordsGoogleHeader['userAgent'] = Types.untypedType('UA')
           adwordsGoogleHeader['validateOnly'] = Types.untypedType('1')

           adwordsGoogleHeaderHOLD = Types.headerType()

   adwordsGoogleHeaderHOLD._addItem('RequestHeader',adwordsGoogleHeader)
           #adwordsGoogleHeaderHOLD.__ns = 'https://adwords.google.com/
   api/adwords/cm/v200909'
           adwordsGoogleHeaderHOLD._setAttr(
             'xmlns',
             'https://adwords.google.com/api/adwords/cm/v200909')

   On Mar 19, 11:41 pm, Joshua J. Kugler jos...@eeinternet.com wrote:

On Friday 19 March 2010,dsayelucidated thus:

 I am not sure if someone is able to use client library for python as
 I continue to get the following error

 Traceback (most recent call last):
   File get_related_keywords.py, line 53, in module
     page = targeting_idea_service.Get(selector)[0]
   File ../../aw_api/TargetingIdeaService.py, line 105, in Get
     'TargetingIdea', self.__loc, request)
   File ../../aw_api/WebService.py, line 350, in CallMethod
     raise ValidationError(error['data'])
 aw_api.Errors.ValidationError: Invalid headers for 'https://adwords-
 sandbox.google.com', see
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbo
x.html#requestheaders.

 I have tried to run in python 2.5 and 2.6 and on ubuntu and fedora.
 Its giving same error everywhere.

What code are you using to set your headers?

j

--
Joshua Kugler
Part-Time System Admin/Programmerhttp://www.eeinternet.com
PGP Key:http://pgp.mit.edu/ID0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


AdWords API 502 Server Error for BulkMutateJob on sandbox

2010-03-23 Thread khelll
I'm getting this error from time to time when using the sandbox with
the same data set:

aw_api.Errors.Error: 502 Server Error. The server encountered a
temporary error and could not complete your request. Please try again
in 30 seconds.

This happens when I use BulkMutateJob to update around 40,000 keywords
in one account using one job divided to 40 parts, 1000 keywords for
each.   I have few questions here:

1-Why am I getting this error?
2-Would I have that kind of errors(502) on AdWords Production servers?
3-This statement is confusing me: Please try again in 30 seconds.,
is the job still there and still processing or what?


Cheers,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.