sandbox SOAP PHP trouble

2011-05-20 Thread Claudio Pomo
Hi,
I've a SOAP extension enable but whene I try to lunch exemple code
"GetAllCampings.php", on shell, this is the response:

Fatal error: This client library requires the SOAP extension to be
activated. See http://php.net/manual/en/soap.installation.php for
details. in /Users/claudio/Downloads/aw_api_php_lib_2.6.1_src/src/
Google/Api/Ads/Common/Lib/SoapClientFactory.php on line 90

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: sandbox SOAP PHP trouble

2011-05-20 Thread Claudio Pomo
Hi Evgeniy,

this is the response of 'phpinfo()' on my shell. Probably I've a
problem with php



claudio$ php index.php
PHP Warning:  PHP Startup: Unable to load dynamic library './
php_mcrypt.dll' - (null) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './
php_mysql.dll' - (null) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library './
php_mysqli.dll' - (null) in Unknown on line 0
phpinfo()
PHP Version => 5.2.15

System => Darwin Stasbranger-Flavio.lan 9.8.0 Darwin Kernel Version
9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
i386
Build Date => Dec 16 2010 14:25:44
Configure Command =>  '/SourceCache/apache_mod_php/apache_mod_php-44.7/
php/configure'  '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/
usr/share/info' '--disable-dependency-tracking' '--with-apxs2=/usr/
sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--
with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif'
'--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx'
'--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-
config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql-sock=/
var/mysql' '--with-mysqli=/usr/bin/mysql_config' '--with-mysql=/usr'
'--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--without-pear'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /private/etc/php.ini
Scan this dir for additional .ini files => (none)
additional .ini files parsed => (none)
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => https, ftps, compress.zlib, php, file, data,
http, ftp
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl,
sslv3, sslv2, tls
Registered Stream Filters => zlib.*, convert.iconv.*, string.rot13,
string.toupper, string.tolower, string.strip_tags, convert.*, consumed


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies


 
___


Configuration

PHP Core

Directive => Local Value => Master Value
allow_call_time_pass_reference => On => On
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => Off => Off
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => no value => no value
default_mimetype => text/html => text/html
define_syslog_variables => Off => Off
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => STDOUT => STDOUT
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 6143 => 6143
expose_php => On => On
extension_dir => ./ => ./
file_uploads => On => On
highlight.bg => #FF => #FF
highlight.comment => #FF8000 =>
#FF8000
highlight.default => #BB =>
#BB
highlight.html => #00 => #00
highlight.keyword => #007700 =>
#007700
highlight.string => #DD =>
#DD
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/local/pear => .:/usr/local/pear
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
magic_quotes_gpc => On => On
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off
mail.force_extra_parameters => no value => no value
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
memory_limit => 128M => 128M
open_basedir => no value => no value
output_buffering => 0 => 0
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value
sendmail_from => no value => no value
sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -
i
serialize_precision => 100 => 100
short_open_tag => On => On
SMTP => localhost => localhost
smtp_port => 25 => 25
sql.safe_mode => Off => Off
track_errors => Off => Off
unserialize_callback_func => no value =

Re: sandbox SOAP PHP trouble

2011-05-21 Thread Claudio Pomo
Hi Evgeniy,

thank you for your help!!!

On 20 Mag, 21:01, Evgeniy Bogdanov  wrote:
> Hi Claudio.
>
> Yes, you're right.
> You don't have PHP SOAP extension. I'm not familiar with Darwin or Mac
> OS yet. :)
> Try to use this 
> linkhttp://wiki.developerforce.com/index.php/Workbench#Option_4:_Compile_...
> to install SOAP extension.
>
> Regards,

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


app token

2011-06-03 Thread Claudio Pomo
Hi! I've a developer token approved and I've required an application
token 4 week ago. Now my developer token is reject and the application
token is ever pending

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


getAllCampaings exemple

2011-06-16 Thread Claudio Pomo
Hi!
Today my developer token is approving and I try to use the API without
sandbox. In my adwords account I've a lot of campaings, but when I
start the 'getAllCampaings' (in exemple) the response is 'No campaigns
were found.'
What is the problem?

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


R: Re: app token

2011-06-16 Thread Claudio Pomo
Hi! 
Today my developer token is approving and I try to use the API without 
sandbox. In my adwords account I've a lot of campaings, but when I start the 
'getAllCampaings' (in exemple) the response is 'No campaigns were found.'
What is the problem?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: R: Re: app token

2011-06-17 Thread Claudio Pomo
ok, thank you vary much!

On 17 Giu, 08:05, "Anash P. Oommen"  wrote:
> Hi Claudio,
>
> I'd check in the following sequence:
>
> - Ensure that your request is going tohttps://adwords.google.com
> - If you are using an MCC to generate credentials, then
>   -- your authtoken should be generated using MCC credentials, and
>   -- you should provide ClientEmail or ClientCustomerId for the client
> account you want to manage using API.
> - If you are using client credentials directly, then
>   -- your authtoken should be generated using client account credentials,
> and
>   -- you should not provide ClientEmail or ClientCustomerId for the client
> account you want to manage using API.
> - Ensure that your account actually has campaigns.
>
> 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


GeoTarget

2011-06-17 Thread Claudio Pomo
I want obtain only Provincetraget and I use this code but I have some
problem. What is the trouble?


$campaignTargetService = $user->GetCampaignTargetService('v201101');

  $campaignId = (float) '56869364';

  $selector = new CampaignTargetSelector();
  $selector->campaignIds = array($campaignId);

  $page = $campaignTargetService->get($selector);

  if (isset($page->entries)) {
foreach ($page->entries as $targetList) {
  print 'Campaign target with campaign id "' . $targetList-
>campaignId
  . '" and type "' . $targetList->GeoTargetList-
>ProvinceTarget . "\" was found.\n";
}
  } else {
print "No campaign targets were found.\n";
  }

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


set provinceCode INTERNAL ERROR

2011-06-23 Thread Claudio Pomo

http://schemas.xmlsoap.org/soap/envelope/";>
  
https://adwords.google.com/api/adwords/cm/
v201101">
  aa5b38e5dfde9d024e1c3b842c33bd7d
  0
  234
  0

  
  

  soap:Server
  [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
[Ljava.lang.StackTraceElement;@1666e32]
  
https://adwords.google.com/api/
adwords/cm/v201101">
  [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
[Ljava.lang.StackTraceElement;@1666e32]
  ApiException
  http://www.w3.org/2001/XMLSchema-
instance" xsi:type="InternalApiError">


 
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
InternalApiError
UNEXPECTED_INTERNAL_API_ERROR
  

  

  


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


INTERNAL API ERROR

2011-06-23 Thread Claudio Pomo
[Jun 23 2011 16:02:30.00 - INFO] POST 
/api/adwords/cm/v201101/CampaignTargetService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.3.6, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 774


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201101"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
https://adwords.google.com/api/adwords/cm/v201101"; 
xsi:type="ns1:RequestHeader">
  *
  
  *
  AwApi-PHP-2.6.1-ingored

  
  

  
  
REMOVE
https://adwords.google.com/api/adwords/cm/v201101"; 
xsi:type="ns1:GeoTargetList">
  --
  https://adwords.google.com/api/adwords/cm/v201101"; 
xsi:type="ns1:ProvinceTarget">
'AR'
  

  

  



HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Thu, 23 Jun 2011 14:02:32 GMT
Expires: Thu, 23 Jun 2011 14:02:32 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 500
Server: GSE


http://schemas.xmlsoap.org/soap/envelope/";>
  
https://adwords.google.com/api/adwords/cm/v201101";>
  aa5b38e5dfde9d024e1c3b842c33bd7d
  0
  234
  0

  
  

  soap:Server
  [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
[Ljava.lang.StackTraceElement;@1666e32]
  
https://adwords.google.com/api/adwords/cm/v201101";>
  [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
[Ljava.lang.StackTraceElement;@1666e32]
  
ApiException
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="InternalApiError">



InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
InternalApiError
UNEXPECTED_INTERNAL_API_ERROR
  

  

  


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


intenal api error

2011-06-27 Thread Claudio Pomo
Sorry, but this problem is already instead to one week!! Have you a 
solution?   


[Jun 23 2011 16:02:30.00 - INFO] POST /api/adwords/cm/v201101/
CampaignTargetService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.3.6, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 774


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201101"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
  
https://adwords.google.com/api/adwords/cm/v201101"; 
xsi:type="ns1:RequestHeader">
  *
  
  *
  AwApi-PHP-2.6.1-ingored

  
  

  
  
REMOVE
https://adwords.google.com/api/adwords/cm/v201101"; 
xsi:type="ns1:GeoTargetList">
  --
  https://adwords.google.com/api/adwords/cm/v201101"; 
xsi:type="ns1:ProvinceTarget">
'AR'
  

  

  



HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Thu, 23 Jun 2011 14:02:32 GMT
Expires: Thu, 23 Jun 2011 14:02:32 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 500
Server: GSE


http://schemas.xmlsoap.org/soap/envelope/";>
  
https://adwords.google.com/api/adwords/cm/v201101
">
  aa5b38e5dfde9d024e1c3b842c33bd7d
  0
  234
  0

  
  

  soap:Server
  [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
[Ljava.lang.StackTraceElement;@1666e32]
  
https://adwords.google.com/api/adwords/cm/v201101";>
  [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
[Ljava.lang.StackTraceElement;@1666e32]
  
ApiException
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="InternalApiError">



InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
InternalApiError
UNEXPECTED_INTERNAL_API_ERROR
  

  

  


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


R: Re: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in CustomerSyncService

2011-06-27 Thread Claudio Pomo
I've some problem

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


R: Re: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in CustomerSyncService

2011-06-27 Thread Claudio Pomo
I've same problem...

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


GeoTargetList v201109

2012-03-08 Thread Claudio Pomo
Hi, I've a problem with GeoTargetList in php api v201109!!
With api v201101 I use this code to set province-target


$on = array();
$i=0;
foreach ($attivate as $pr){
$provincia = new ProvinceTarget();
$provincia->provinceCode = $pr;
$provincia->excluded = false;
$on[$i] = $provincia;
$i++;
}
 // Create geo targets.
$geoTargetList = new GeoTargetList();
$geoTargetList->campaignId = $campaignId;
 $geoTargetList->targets =$on;

// Create operations.
$geoTargetOperation = new CampaignTargetOperation();
$geoTargetOperation->operand = $geoTargetList;
$geoTargetOperation->operator = 'SET';

$operations = array($geoTargetOperation);
 $result = $campaignTargetService->mutate($operations);

But I don't know to have some effect with new v201109 
because ProvinceTarget class doesn' exist. How I can solve this problem?
I've read documentation but I've found only way with using Address. 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: GeoTargetList v201109

2012-03-11 Thread Claudio Pomo
Thank you Jim for your reply!
I've just modified my code trough the way indicated by you:

$campaignCriterionService = $user->GetService('CampaignCriterionService', 
'v201109');
$campaignCriteria = array(); 
$provincia = array();
 foreach ($id_camp as $id){

//$campaignId = (float) '57171644';
$campaignId = (float) $id;

foreach ($staccate as $provi){
$provincia = new Location();
$provincia->id = (float) $provi['code'];
$campaignCriteria[] = new CampaignCriterion($campaignId, $provincia);
}
// Create operations.
  $operations = array();
foreach ($campaignCriteria as $campaignCriterion) {
$operations[] = new CampaignCriterionOperation($campaignCriterion, 
'REMOVE');
  }

  // Make the mutate request.
   $result = $campaignCriterionService->mutate($operations);
foreach ($result->value as $campaignCriterion) {
printf("Campaign targeting criterion with id '%s' and type '%s' was "
. "added.\n", $campaignCriterion->criterion->id,
$campaignCriterion->criterion->CriterionType);
}
.
.

but I still have a problem: [EntityNotFound.INVALID_ID @ 
operations[0].operand.criterion; trigger:'20548', EntityNotFound.INVALID_ID 
@ operations[1].operand.criterion; trigger:'20553', 
EntityNotFound.INVALID_ID @ operations[2].operand.criterion; 
trigger:'20572', EntityNotFound.INVALID_ID @ 
operations[3].operand.criterion; trigger:'20582', EntityNotFound.INVALID_ID 
@ operations[4].operand.criterion; trigger:'20587', 
EntityNotFound.INVALID_ID @ operations[5].operand.criterion; 
trigger:'20616', EntityNotFound.INVALID_ID @ 
operations[6].operand.criterion; trigger:'20520', EntityNotFound.INVALID_ID 
@ operations[7].operand.criterion; trigger:'20537', 
EntityNotFound.INVALID_ID @ operations[8].operand.criterion; 
trigger:'20535', EntityNotFound.INVALID_ID @ 
operations[9].operand.criterion; trigger:'20542', EntityNotFound.INVALID_ID 
@ operations[10].operand.criterion; trigger:'20541', 
EntityNotFound.INVALID_ID @ operations[11].operand.criterion; 
trigger:'20546', EntityNotFound.INVALID_ID @ 
operations[12].operand.criterion; trigger:'20560', 
EntityNotFound.INVALID_ID @ operations[13].operand.criterion; 
trigger:'20549', EntityNotFound.INVALID_ID @ 
operations[14].operand.criterion; trigger:'20554', 
EntityNotFound.INVALID_ID @ operations[15].operand.criterion; 
trigger:'20555', EntityNotFound.INVALID_ID @ 
operations[16].operand.criterion; trigger:'20525', 
EntityNotFound.INVALID_ID @ operations[17].operand.criterion; 
trigger:'20565', EntityNotFound.INVALID_ID @ 
operations[18].operand.criterion; trigger:'20562', 
EntityNotFound.INVALID_ID @ operations[19].operand.criterion; 
trigger:'20573', EntityNotFound.INVALID_ID @ 
operations[20].operand.criterion; trigger:'20568', 
EntityNotFound.INVALID_ID @ operations[21].operand.criterion; 
trigger:'20574', EntityNotFound.INVALID_ID @ 
operations[22].operand.criterion; trigger:'20578', 
EntityNotFound.INVALID_ID @ operations[23].operand.criterion; 
trigger:'20587', EntityNotFound.INVALID_ID @ 
operations[24].operand.criterion; trigger:'20590', 
EntityNotFound.INVALID_ID @ operations[26].operand.criterion; 
trigger:'20592', EntityNotFound.INVALID_ID @ 
operations[27].operand.criterion; trigger:'20595', 
EntityNotFound.INVALID_ID @ operations[28].operand.criterion; 
trigger:'20603', EntityNotFound.INVALID_ID @ 
operations[29].operand.criterion; trigger:'20606', 
EntityNotFound.INVALID_ID @ operations[30].operand.criterion; 
trigger:'20607', EntityNotFound.INVALID_ID @ 
operations[32].operand.criterion; trigger:'20610', 
EntityNotFound.INVALID_ID @ operations[33].operand.criterion; 
trigger:'21233', EntityNotFound.INVALID_ID @ 
operations[34].operand.criterion; trigger:'20621']
"Trigger" indicate provinceTarget id code, but I can not understand where the 
problem!


On Friday, March 9, 2012 4:54:05 PM UTC+1, Jim McCabe wrote:
>
> Campaign geo targeting has changed quite a bit in v201109.
>
> One big change is that you can't use the SET operator to replace all the 
> geo targets in one call.  Instead, you have to issue ADD and REMOVE 
> operations for the specific geo targets.  This means you'll have to compute 
> the difference between the existing geo targets and the new state.
>
> Another big change is that most geo targets are specified with a location 
> ID.  You can ask Google to lookup the location ID for a province, or you 
> can just download the IDs 
> here. 
>  Provinces, states, cities, metro areas, all these use a simple Location 
> criterion with a unique location ID.  It's simple now but requires a bit of 
> change from earlier APIs.
>
> Jim
>

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

Re: EntityNotFound.INVALID_ID @ operations[ *]operand.criterion; trigger:'******'

2012-03-14 Thread Claudio Pomo
Hi Anash!

I used, before now, adwords API v201008 and I used SET to update 
provinceTarget for all of my campaign. Now I use adwords API v201109 and I 
would get the same result. I've read the documentation and I understand 
that SET operator isn't used, so I can try to delete any location criteria 
for campaign and then set these!
Into $staccate are present all province id to remove from my  campaign.
This is my trouble, how can I help me? How can I update in v201109 location 
criteria of my campaign?

On Wednesday, March 14, 2012 10:30:01 AM UTC+1, Anash P. Oommen wrote:
>
> Hi Claudio,
>
> The error means that AdWords couldn't find criterion id 20525 in campaign 
> id 57171644 (i.e. the campaign is not targeting L'Aquila, and you are 
> trying to remove a targeting that doesn't exist). How do you 
> populate $staccate?
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Tuesday, 13 March 2012 22:38:03 UTC+5:30, Claudio Pomo wrote:
>>
>> I'm trying to update my campaign targetCriteri with this code:
>>
>> foreach ($id_camp as $id){
>>
>> //$campaignId = (float) '57171644';
>> $campaignId = (float) $id;
>>
>> foreach ($staccate as $provi){
>> $provincia = new Location();
>> $provincia->id = (float) $provi['code'];
>> $campaignCriteria[] = new CampaignCriterion($campaignId, $provincia);
>> }
>>
>> // Create operations.
>>   $operations = array();
>> foreach ($campaignCriteria as $campaignCriterion) {
>> $operations  [] = new CampaignCriterionOperation($campaignCriterion, 
>> 'REMOVE');
>>} 
>> }
>>
>> but this code returned me: EntityNotFound.INVALID_ID @ 
>> operations[0].operand.criterion; trigger:'20525', EntityNotFound.INVALID_ID 
>> @ operations[3].operand.criterion; trigger:'20546', 
>> EntityNotFound.INVALID_ID @ operations[5].operand.criterion; 
>> trigger:'20553', EntityNotFound.INVALID_ID @ 
>> operations[6].operand.criterion; trigger:'20560',.
>>
>> Anybody help me?
>>
>
On Wednesday, March 14, 2012 10:30:01 AM UTC+1, Anash P. Oommen wrote:
>
> Hi Claudio,
>
> The error means that AdWords couldn't find criterion id 20525 in campaign 
> id 57171644 (i.e. the campaign is not targeting L'Aquila, and you are 
> trying to remove a targeting that doesn't exist). How do you 
> populate $staccate?
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Tuesday, 13 March 2012 22:38:03 UTC+5:30, Claudio Pomo wrote:
>>
>> I'm trying to update my campaign targetCriteri with this code:
>>
>> foreach ($id_camp as $id){
>>
>> //$campaignId = (float) '57171644';
>> $campaignId = (float) $id;
>>
>> foreach ($staccate as $provi){
>> $provincia = new Location();
>> $provincia->id = (float) $provi['code'];
>> $campaignCriteria[] = new CampaignCriterion($campaignId, $provincia);
>> }
>>
>> // Create operations.
>>   $operations = array();
>> foreach ($campaignCriteria as $campaignCriterion) {
>> $operations  [] = new CampaignCriterionOperation($campaignCriterion, 
>> 'REMOVE');
>>} 
>> }
>>
>> but this code returned me: EntityNotFound.INVALID_ID @ 
>> operations[0].operand.criterion; trigger:'20525', EntityNotFound.INVALID_ID 
>> @ operations[3].operand.criterion; trigger:'20546', 
>> EntityNotFound.INVALID_ID @ operations[5].operand.criterion; 
>> trigger:'20553', EntityNotFound.INVALID_ID @ 
>> operations[6].operand.criterion; trigger:'20560',.
>>
>> Anybody help me?
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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[?].operand;

2012-06-05 Thread Claudio Pomo
I'm using adwords API for java but when I try to "mutate" my campaign I get 
this error:
>
> AxisFault
>
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>
>  faultSubcode: 
>
>  faultString: [EntityNotFound.INVALID_ID @ operations[0].operand; 
>> trigger:'CampaignId: 93996448', EntityNotFound.INVALID_ID @ 
>> operations[1].operand; trigger:'CampaignId: ***', 
>> EntityNotFound.INVALID_ID @ operations[2].operand; 
>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>> operations[3].operand; trigger:'CampaignId: ***', 
>> EntityNotFound.INVALID_ID @ operations[4].operand; 
>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>> operations[5].operand; trigger:'CampaignId: ***', 
>> EntityNotFound.INVALID_ID @ operations[6].operand; 
>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>> operations[7].operand; trigger:'CampaignId: ***'
>
>
I don't understand where is the problem because I've used adwords API with 
PHP and there never still have been problem.

I create a linkedList of "CampaignCriterionOperation" 

> operations2.add(new CampaignCriterionOperation(Operator.ADD, 
> campaignCriterionType, new CampaignCriterion(campaign.getId(), location, 
> campaignCriterionType)));


then I mutate the campaing

> CampaignCriterionOperation[] operations = new 
> CampaignCriterionOperation[operations2.size()];

CampaignCriterionReturnValue result = 
> campaignServiceOperation.mutate(operations2.toArray(operations));

 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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[?].operand;

2012-06-07 Thread Claudio Pomo
Hi David, 

where I can found a request id?

On Thursday, June 7, 2012 9:22:59 PM UTC+2, David Torres wrote:
>
> Hi Claudio,
>
> Can you post a request id? I'll be glad to check.
>
> Best,
>
> -David Torres - AdWords API Team
>
> On Tuesday, June 5, 2012 1:46:16 PM UTC-4, Claudio Pomo wrote:
>>
>> I'm using adwords API for java but when I try to "mutate" my campaign I 
>> get this error:
>>>
>>> AxisFault
>>>
>>>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>>>
>>>  faultSubcode: 
>>>
>>>  faultString: [EntityNotFound.INVALID_ID @ operations[0].operand; 
>>>> trigger:'CampaignId: 93996448', EntityNotFound.INVALID_ID @ 
>>>> operations[1].operand; trigger:'CampaignId: ***', 
>>>> EntityNotFound.INVALID_ID @ operations[2].operand; 
>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>> operations[3].operand; trigger:'CampaignId: ***', 
>>>> EntityNotFound.INVALID_ID @ operations[4].operand; 
>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>> operations[5].operand; trigger:'CampaignId: ***', 
>>>> EntityNotFound.INVALID_ID @ operations[6].operand; 
>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>> operations[7].operand; trigger:'CampaignId: ***'
>>>
>>>
>> I don't understand where is the problem because I've used adwords API 
>> with PHP and there never still have been problem.
>>
>> I create a linkedList of "CampaignCriterionOperation" 
>>
>>> operations2.add(new CampaignCriterionOperation(Operator.ADD, 
>>> campaignCriterionType, new CampaignCriterion(campaign.getId(), location, 
>>> campaignCriterionType)));
>>
>>
>> then I mutate the campaing
>>
>>> CampaignCriterionOperation[] operations = new 
>>> CampaignCriterionOperation[operations2.size()];
>>
>> CampaignCriterionReturnValue result = 
>>> campaignServiceOperation.mutate(operations2.toArray(operations));
>>
>>  
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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[?].operand;

2012-06-08 Thread Claudio Pomo
*requestId=0004c1bcd7694f100a3414e350c1*

On Thursday, June 7, 2012 10:41:39 PM UTC+2, Claudio Pomo wrote:
>
> Hi David, 
>
> where I can found a request id?
>
> On Thursday, June 7, 2012 9:22:59 PM UTC+2, David Torres wrote:
>>
>> Hi Claudio,
>>
>> Can you post a request id? I'll be glad to check.
>>
>> Best,
>>
>> -David Torres - AdWords API Team
>>
>> On Tuesday, June 5, 2012 1:46:16 PM UTC-4, Claudio Pomo wrote:
>>>
>>> I'm using adwords API for java but when I try to "mutate" my campaign I 
>>> get this error:
>>>>
>>>> AxisFault
>>>>
>>>>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>>>>
>>>>  faultSubcode: 
>>>>
>>>>  faultString: [EntityNotFound.INVALID_ID @ operations[0].operand; 
>>>>> trigger:'CampaignId: 93996448', EntityNotFound.INVALID_ID @ 
>>>>> operations[1].operand; trigger:'CampaignId: ***', 
>>>>> EntityNotFound.INVALID_ID @ operations[2].operand; 
>>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>>> operations[3].operand; trigger:'CampaignId: ***', 
>>>>> EntityNotFound.INVALID_ID @ operations[4].operand; 
>>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>>> operations[5].operand; trigger:'CampaignId: ***', 
>>>>> EntityNotFound.INVALID_ID @ operations[6].operand; 
>>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>>> operations[7].operand; trigger:'CampaignId: ***'
>>>>
>>>>
>>> I don't understand where is the problem because I've used adwords API 
>>> with PHP and there never still have been problem.
>>>
>>> I create a linkedList of "CampaignCriterionOperation" 
>>>
>>>> operations2.add(new CampaignCriterionOperation(Operator.ADD, 
>>>> campaignCriterionType, new CampaignCriterion(campaign.getId(), location, 
>>>> campaignCriterionType)));
>>>
>>>
>>> then I mutate the campaing
>>>
>>>> CampaignCriterionOperation[] operations = new 
>>>> CampaignCriterionOperation[operations2.size()];
>>>
>>> CampaignCriterionReturnValue result = 
>>>> campaignServiceOperation.mutate(operations2.toArray(operations));
>>>
>>>  
>>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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[?].operand;

2012-06-20 Thread Claudio Pomo
I want to retrieve all clientID from my MCC account. I'm using this code

 
  AdWordsUser user = new 
AdWordsUser(adwordsPropertyService.getEmail(), 
adwordsPropertyService.getPassword(),
  null, adwordsPropertyService.getUseragent(), 
adwordsPropertyService.getDeveloperToken(),
  adwordsPropertyService.getUseSandbox());

  InfoServiceInterface infoService = 
user.getService(AdWordsService.V201109.INFO_SERVICE);

  
  InfoSelector selector = new InfoSelector();
  selector.setApiUsageType(ApiUsageType.UNIT_COUNT_FOR_CLIENTS);
  String today = new SimpleDateFormat("MMdd").format(new 
Date());
  selector.setDateRange(new DateRange(today, today));
  selector.setIncludeSubAccounts(true);

  ApiUsageInfo apiUsageInfo = infoService.get(selector);
  for (ApiUsageRecord record : apiUsageInfo.getApiUsageRecords()) {
  ..

But apiUsageInfo.getApiUsageRecords return my only some clientId.
Have you any suggests?

On Friday, June 8, 2012 6:01:29 PM UTC+2, David Torres wrote:
>
> Hi Claudio,
>
> The problem is that you are specifying your MCC id as clientCustomerId, 
> instead what you want to specify the id of the account owner of those 
> campaigns.
>
> Best,
>
> -David Torres - AdWords API Team 
>
> On Friday, June 8, 2012 3:30:16 AM UTC-4, Claudio Pomo wrote:
>>
>> *requestId=0004c1bcd7694f100a3414e350c1*
>>
>> On Thursday, June 7, 2012 10:41:39 PM UTC+2, Claudio Pomo wrote:
>>>
>>> Hi David, 
>>>
>>> where I can found a request id?
>>>
>>> On Thursday, June 7, 2012 9:22:59 PM UTC+2, David Torres wrote:
>>>>
>>>> Hi Claudio,
>>>>
>>>> Can you post a request id? I'll be glad to check.
>>>>
>>>> Best,
>>>>
>>>> -David Torres - AdWords API Team
>>>>
>>>> On Tuesday, June 5, 2012 1:46:16 PM UTC-4, Claudio Pomo wrote:
>>>>>
>>>>> I'm using adwords API for java but when I try to "mutate" my 
>>>>> campaign I get this error:
>>>>>>
>>>>>> AxisFault
>>>>>>
>>>>>>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>>>>>>
>>>>>>  faultSubcode: 
>>>>>>
>>>>>>  faultString: [EntityNotFound.INVALID_ID @ operations[0].operand; 
>>>>>>> trigger:'CampaignId: 93996448', EntityNotFound.INVALID_ID @ 
>>>>>>> operations[1].operand; trigger:'CampaignId: ***', 
>>>>>>> EntityNotFound.INVALID_ID @ operations[2].operand; 
>>>>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>>>>> operations[3].operand; trigger:'CampaignId: ***', 
>>>>>>> EntityNotFound.INVALID_ID @ operations[4].operand; 
>>>>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>>>>> operations[5].operand; trigger:'CampaignId: ***', 
>>>>>>> EntityNotFound.INVALID_ID @ operations[6].operand; 
>>>>>>> trigger:'CampaignId: ***', EntityNotFound.INVALID_ID @ 
>>>>>>> operations[7].operand; trigger:'CampaignId: ***'
>>>>>>
>>>>>>
>>>>> I don't understand where is the problem because I've used adwords API 
>>>>> with PHP and there never still have been problem.
>>>>>
>>>>> I create a linkedList of "CampaignCriterionOperation" 
>>>>>
>>>>>> operations2.add(new CampaignCriterionOperation(Operator.ADD, 
>>>>>> campaignCriterionType, new CampaignCriterion(campaign.getId(), location, 
>>>>>> campaignCriterionType)));
>>>>>
>>>>>
>>>>> then I mutate the campaing
>>>>>
>>>>>> CampaignCriterionOperation[] operations = new 
>>>>>> CampaignCriterionOperation[operations2.size()];
>>>>>
>>>>> CampaignCriterionReturnValue result = 
>>>>>> campaignServiceOperation.mutate(operations2.toArray(operations));
>>>>>
>>>>>  
>>>>>
>>>>

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