Re: EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;

2010-08-10 Thread Christian Fuentes
Hi Eric,

You were right, it was an error in the code.

Sorry for the inconvenience.

On 10 ago, 15:29, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Christian,

 There are two authentication options for the API:

 1) Authenticate as an AdWords account.

 2) Authentication as an MCC account and include a clientEmail or
 clientCustomerId header which specifies the AdWords account to operate
 against.

 From looking at the logs you are authenticating as the MCC account but
 not specifying a client* header.  Please check your configuration and
 ensure that you include this information in the request.

 Best,
 - Eric

 On Aug 8, 6:56 pm, Christian Fuentes khr...@gmail.com wrote:



  But the thing is that I've already created campaigns, ad groups and
  text ads. I don't know why in the keywords gives me the error

  On Aug 6, 11:34 pm, AdWords API Advisor adwordsapiadvi...@google.com
  wrote:

   Hi Christian,

   It looks like you are authenticating the request as the MCC account
   and not including a clientEmail or clientCustomerId header to specify
   which client to operate against.

   Best,
   - Eric Koleda, AdWords API Team

   On Aug 6, 11:17 am, Christian Fuentes khr...@gmail.com wrote:

Oh, BTW, the exactly same code (with different credentials) worked OK
in the sandbox environment

On 6 ago, 17:08, Christian Fuentes khr...@gmail.com wrote:

 I searched in the group before but I forgot to say that I'm using
 (float) before the adgroup id to convert it.

 On 6 ago, 16:51, Christian Fuentes khr...@gmail.com wrote:

  I'm getting this error for an ad group id that exists (check with 
  the
  same API) when adding a new keyword. Anyone can give a tip?

  EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;
  trigger:'1954082482'

           [0] = SoapVar Object
               (
                   [enc_type] = 0
                   [enc_value] = EntityNotFound Object
                      (
                          [reason] = INVALID_ID
                          [fieldPath] = 
  operations[0].operand.adGroupId
                          [trigger] = 1954082482
                          [errorString] = EntityNotFound.INVALID_ID
                          [ApiErrorType] = EntityNotFound
                          [_parameterMap:private] = Array
                             (
                                  [ApiError.Type] = ApiErrorType
                              )
                       )
                     [enc_stype] = EntityNotFound
                     [enc_ns] 
  =https://adwords.google.com/api/adwords/cm/v201003
                 )

  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: EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;

2010-08-08 Thread Christian Fuentes
But the thing is that I've already created campaigns, ad groups and
text ads. I don't know why in the keywords gives me the error


On Aug 6, 11:34 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Christian,

 It looks like you are authenticating the request as the MCC account
 and not including a clientEmail or clientCustomerId header to specify
 which client to operate against.

 Best,
 - Eric Koleda, AdWords API Team

 On Aug 6, 11:17 am, Christian Fuentes khr...@gmail.com wrote:



  Oh, BTW, the exactly same code (with different credentials) worked OK
  in the sandbox environment

  On 6 ago, 17:08, Christian Fuentes khr...@gmail.com wrote:

   I searched in the group before but I forgot to say that I'm using
   (float) before the adgroup id to convert it.

   On 6 ago, 16:51, Christian Fuentes khr...@gmail.com wrote:

I'm getting this error for an ad group id that exists (check with the
same API) when adding a new keyword. Anyone can give a tip?

EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;
trigger:'1954082482'

         [0] = SoapVar Object
             (
                 [enc_type] = 0
                 [enc_value] = EntityNotFound Object
                    (
                        [reason] = INVALID_ID
                        [fieldPath] = operations[0].operand.adGroupId
                        [trigger] = 1954082482
                        [errorString] = EntityNotFound.INVALID_ID
                        [ApiErrorType] = EntityNotFound
                        [_parameterMap:private] = Array
                           (
                                [ApiError.Type] = ApiErrorType
                            )
                     )
                   [enc_stype] = EntityNotFound
                   [enc_ns] 
=https://adwords.google.com/api/adwords/cm/v201003
               )

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


EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;

2010-08-06 Thread Christian Fuentes
I'm getting this error for an ad group id that exists (check with the
same API) when adding a new keyword. Anyone can give a tip?

EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;
trigger:'1954082482'

 [0] = SoapVar Object
 (
 [enc_type] = 0
 [enc_value] = EntityNotFound Object
(
[reason] = INVALID_ID
[fieldPath] = operations[0].operand.adGroupId
[trigger] = 1954082482
[errorString] = EntityNotFound.INVALID_ID
[ApiErrorType] = EntityNotFound
[_parameterMap:private] = Array
   (
[ApiError.Type] = ApiErrorType
)
 )
   [enc_stype] = EntityNotFound
   [enc_ns] = https://adwords.google.com/api/adwords/cm/v201003
   )


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: EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;

2010-08-06 Thread Christian Fuentes
I searched in the group before but I forgot to say that I'm using
(float) before the adgroup id to convert it.

On 6 ago, 16:51, Christian Fuentes khr...@gmail.com wrote:
 I'm getting this error for an ad group id that exists (check with the
 same API) when adding a new keyword. Anyone can give a tip?

 EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId;
 trigger:'1954082482'

          [0] = SoapVar Object
              (
                  [enc_type] = 0
                  [enc_value] = EntityNotFound Object
                     (
                         [reason] = INVALID_ID
                         [fieldPath] = operations[0].operand.adGroupId
                         [trigger] = 1954082482
                         [errorString] = EntityNotFound.INVALID_ID
                         [ApiErrorType] = EntityNotFound
                         [_parameterMap:private] = Array
                            (
                                 [ApiError.Type] = ApiErrorType
                             )
                      )
                    [enc_stype] = EntityNotFound
                    [enc_ns] 
 =https://adwords.google.com/api/adwords/cm/v201003
                )

 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: Check operations in SANDBOX

2010-08-03 Thread Christian Fuentes
It's been working perfectly, but when I try to get from this java
software the ads, keywords or placements for one specific ad group it
says:

InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ ]

Does someone know why? Or if the source code version is more updated
than the jar version?

Thanks

On 2 ago, 16:18, Christian Fuentes khr...@gmail.com wrote:
 Wow, thanks I didn't know about that.

 On 2 ago, 13:37, AdWords API Advisor adwordsapiadvi...@google.com
 wrote:



  Hi Christian,

  You can use thesandboxaccount viewer to see the objects you create
  in the AdWords Apisandbox. 
  Seehttp://adwordsapi.blogspot.com/2010/05/sandbox-account-viewer-release...
  for details onsandboxaccount viewer.

  Cheers,
  Anash P. Oommen,
  AdWords API Advisor.

  On Aug 2, 3:13 pm, Christian Fuentes khr...@gmail.com wrote:

   Hi,

   I've created a new campaign in thesandboxwith the API and the result
   was:

   Campaign with name SANDBOX01 and id 89462 was added.

   How can I check it's data and configuration, I went 
   tohttp://adwords-sandbox.google.comandloggedwith the same credentials
   but I can't see the campaign there.

   Any ideas?

   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


Check operations in SANDBOX

2010-08-02 Thread Christian Fuentes
Hi,

I've created a new campaign in the sandbox with the API and the result
was:

Campaign with name SANDBOX 01 and id 89462 was added.

How can I check it's data and configuration, I went to
http://adwords-sandbox.google.com and logged with the same credentials
but I can't see the campaign there.

Any ideas?

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: Check operations in SANDBOX

2010-08-02 Thread Christian Fuentes
Wow, thanks I didn't know about that.

On 2 ago, 13:37, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi Christian,

 You can use the sandbox account viewer to see the objects you create
 in the AdWords Api sandbox. 
 Seehttp://adwordsapi.blogspot.com/2010/05/sandbox-account-viewer-release...
 for details on sandbox account viewer.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Aug 2, 3:13 pm, Christian Fuentes khr...@gmail.com wrote:



  Hi,

  I've created a new campaign in the sandbox with the API and the result
  was:

  Campaign with name SANDBOX 01 and id 89462 was added.

  How can I check it's data and configuration, I went 
  tohttp://adwords-sandbox.google.comandlogged with the same credentials
  but I can't see the campaign there.

  Any ideas?

  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


Sandbox initialization

2010-07-29 Thread Christian Fuentes
After some problema getting used to the Adwords API I finally got it
working, now I'd like to run some deep tests, like creating campagins,
changing bids, ... but I wan't start this tests in production. Is
there a way to export one or more productions campaigns to the sandbox
environment to test it with real data?

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: Got Fault occurred while processing error

2010-07-29 Thread Christian Fuentes
Thanks a lot!!

On 29 jul, 17:26, AdWords API Advisor adwordsapiadvi...@google.com
wrote:
 Hi,

 This error is being thrown because the date is formatted incorrectly.
 The correct format is Ymd, for example 20100729.  I'll work with the
 core engineering team to have a better error thrown in this case.

 Best,
 - Eric Koleda, AdWords API Team

 On Jul 28, 11:28 am, Christian Fuentes khr...@gmail.com wrote:



  Trying to add a ReportDefinition I got this error, but the code is the
  same as the example called AddKeywordsPerformanceReportDefinition, and
  the credentials are OK (I got all my campaigns and adGroups from the
  API).

  This is the code

      $adwords = new AdWordsUser(NULL, $email, $password,
  $developerToken, $applicationToken, $userAgent, $clientIds['es']);
      $adwords-LogDefaults();
      /* add report definition */
      // Get the GetReportDefinitionService.
      $reportDefinitionService = $adwords-

  GetReportDefinitionService('v201003');

      $adGroupId = (float) 1312246342;
      $startDate = date('Y-m-d', strtotime('-2 days'));
      $endDate = date('Y-m-d', strtotime('yesterday'));

      // Create ad group predicate.
      $adGroupPredicate = new Predicate();
      $adGroupPredicate-field = 'AdGroupId';
      $adGroupPredicate-operator = 'EQUALS';
      $adGroupPredicate-values = array($adGroupId);

      // Create selector.
      $selector = new Selector();
      $selector-fields = array('AdGroupId', 'Id', 'KeywordText',
  'KeywordMatchType', 'Impressions', 'Clicks', 'Cost');
      $selector-predicates = array($adGroupPredicate);
      $selector-dateRange = new DateRange($startDate, $endDate);

      // Create report definition.
      $reportDefinition = new ReportDefinition();
      $reportDefinition-reportName = 'Keywords performance report #' .
  time();
      $reportDefinition-dateRangeType = 'CUSTOM_DATE';
      $reportDefinition-reportType = 'KEYWORDS_PERFORMANCE_REPORT';
      $reportDefinition-downloadFormat = 'XML';
      $reportDefinition-selector = $selector;

      // Create operations.
      $operation = new ReportDefinitionOperation();
      $operation-operand = $reportDefinition;
      $operation-operator = 'ADD';

      $operations = array($operation);

      // Add report definition.
      $result = $reportDefinitionService-mutate($operations);

  Can someone please help... 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: INVALID_TOKEN_HEADER error

2010-07-28 Thread Christian Fuentes
Hi Anash,

My credentials include:

email = mcc adwords account
password = password
userAgent = My own invented user agent
applicationToken = got it from adwords My Account
developerToken = email++currency
clientId = client_n+email

Is there anything wrong? Sorry, but I'm still getting the error

On Wed, Jul 28, 2010 at 6:33 AM, AdWords API Advisor 
adwordsapiadvi...@google.com wrote:

 Hi Christian,

 When making calls to production account, the email and clientEmail
 headers should be valid adwords accounts. My guess is that the server
 throws an error because of one of the following reasons:
 - the email account you are using is a gmail account,  but not an
 adwords account.
 - the clientEmail account is not a valid adwords account.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Jul 27, 7:59 pm, Christian Fuentes khr...@gmail.com wrote:
  Sorry for the newbie question but I got the sandbox environment
  working ok, made some tests, but when I tried to get all campaigns in
  not sandbox mode I got this error
 
  Fatal error: Uncaught SoapFault exception: [soap:Server]
  QuotaCheckError.INVALID_TOKEN_HEADER @ ; 
  trigger:'em...@email.comtrigger%3a%27em...@email.com
 '
 
  I've read that's because I'm using sandbox credentials... but what's
  the difference?
 
  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


Got Fault occurred while processing error

2010-07-28 Thread Christian Fuentes
Trying to add a ReportDefinition I got this error, but the code is the
same as the example called AddKeywordsPerformanceReportDefinition, and
the credentials are OK (I got all my campaigns and adGroups from the
API).

This is the code

$adwords = new AdWordsUser(NULL, $email, $password,
$developerToken, $applicationToken, $userAgent, $clientIds['es']);
$adwords-LogDefaults();
/* add report definition */
// Get the GetReportDefinitionService.
$reportDefinitionService = $adwords-
GetReportDefinitionService('v201003');

$adGroupId = (float) 1312246342;
$startDate = date('Y-m-d', strtotime('-2 days'));
$endDate = date('Y-m-d', strtotime('yesterday'));

// Create ad group predicate.
$adGroupPredicate = new Predicate();
$adGroupPredicate-field = 'AdGroupId';
$adGroupPredicate-operator = 'EQUALS';
$adGroupPredicate-values = array($adGroupId);

// Create selector.
$selector = new Selector();
$selector-fields = array('AdGroupId', 'Id', 'KeywordText',
'KeywordMatchType', 'Impressions', 'Clicks', 'Cost');
$selector-predicates = array($adGroupPredicate);
$selector-dateRange = new DateRange($startDate, $endDate);

// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition-reportName = 'Keywords performance report #' .
time();
$reportDefinition-dateRangeType = 'CUSTOM_DATE';
$reportDefinition-reportType = 'KEYWORDS_PERFORMANCE_REPORT';
$reportDefinition-downloadFormat = 'XML';
$reportDefinition-selector = $selector;

// Create operations.
$operation = new ReportDefinitionOperation();
$operation-operand = $reportDefinition;
$operation-operator = 'ADD';

$operations = array($operation);

// Add report definition.
$result = $reportDefinitionService-mutate($operations);

Can someone please help... 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


INVALID_TOKEN_HEADER error

2010-07-27 Thread Christian Fuentes
Sorry for the newbie question but I got the sandbox environment
working ok, made some tests, but when I tried to get all campaigns in
not sandbox mode I got this error

Fatal error: Uncaught SoapFault exception: [soap:Server]
QuotaCheckError.INVALID_TOKEN_HEADER @ ; trigger:'em...@email.com'

I've read that's because I'm using sandbox credentials... but what's
the difference?

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