ServicedAccountService: authToken is missing in SoapHeader

2011-03-09 Thread MT
I'm trying to access tge v201101 ServicedAccountService but keep getting a 
"authToken is missing in SoapHeader" error, even though the token certainly 
is there. Do I have the namespaces wrong or what can be the reason for this? 
My request is





XXX
XXX
XXX





false





And the response:


http://schemas.xmlsoap.org/soap/envelope/";>


soap:Server
authToken is missing in SoapHeader. while invoking public 
abstract 
com.google.ads.api.services.mcm.servicedaccounts.v201101.jaxbgen.ServicedAccountGraph
 
com.google.ads.api.services.mcm.servicedaccounts.v201101.jaxbgen.ServicedAccountServiceInterface.get(com.google.ads.api.services.mcm.servicedaccounts.v201101.jaxbgen.ServicedAccountSelector)
 
throws 
com.google.ads.api.services.mcm.servicedaccounts.v201101.jaxbgen.ApiException_Exception
 
with params 
[com.google.ads.api.services.mcm.servicedaccounts.v201101.jaxbgen.ServicedAccountSelector@1ca54e5].





-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 restrict API access for developer?

2011-03-09 Thread Ken Aston
Very good idea. Thank you.

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


login the sandbox with the php client

2011-03-09 Thread Peter
Hello AdWords users
I am new to the AdWords API and I am trying to connect to the sandbox
service via php client.

To get up to 5 client_emails this forum says "Make a call to v13
AccountService.getClientAccounts", e.g.:
$client_accounts = $account_service->call('getClientAccounts');

Can you post a php example file for this ?

Thanks for assistance.

Best regards, Peter

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


can't connect to AdGroupService-- java.net.ConnectException: Connection timed out

2011-03-09 Thread Rajini
Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection timed out
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}
stackTrace:java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:
333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:
559)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.
(SSLSocketImpl.java:360)
at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:
71)
at
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:
92)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:
191)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:
404)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:
118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:
165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at
com.google.api.adwords.v13.ReportServiceSoapBindingStub.getReportJobStatus_aroundBody8(ReportServiceSoapBindingStub.java:
483)
at
com.google.api.adwords.v13.ReportServiceSoapBindingStub.getReportJobStatus_aroundBody9$advice(ReportServiceSoapBindingStub.java:
142)
at
com.google.api.adwords.v13.ReportServiceSoapBindingStub.getReportJobStatus(ReportServiceSoapBindingStub.java:
1)
at AdPerformanceReport.main(AdPerformanceReport.java:129)

{http://xml.apache.org/axis/}hostname:prddw15.mynewplace.local

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


How to get all keywords and corresponding stats?

2011-03-09 Thread Sam Yu
Hi experts,

I am a newbie on using google adwords api.  And I have a problem about how
to get all keywords and their corresponding stats from a AdGroup?

I get some information:
"
Batch keywords in STATS requests

Unlike IDEAS requests that generate new keyword ideas, STATS requests can be
used to retrieve just the statistics of known keywords. One
TargetingIdeais
returned for each keyword in the
RelatedToKeywordsSearchParameter,
and the data for multiple keywords can be retrieved in a single request. For
example, when fetching the stats for 100 keywords, it’s more efficient to
make one request with all 100 keywords then it is to make 100 requests with
one keyword each.
"

Who could give me an example?  Thanks very much!

BR.
Sam

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 get bulk keywords stats using PHP Client

2011-03-09 Thread Androidman
I fix its all.. thank you.
No need reply.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 get bulk keywords stats using PHP Client

2011-03-09 Thread Androidman

Hi Veer,
If use your original script, You can get all the results by changing
$paging->numberResults = 1;
to
$paging->numberResults = 4; //where 4 is number of your keywords.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 get bulk keywords stats using PHP Client

2011-03-09 Thread Androidman
Hi, can you help me? I have same project and problem with Veer. I try your 
solution and got this error.

[RequiredError.REQUIRED @ selector.searchParameters[1].keywords[0].text, 
RequiredError.REQUIRED @ selector.searchParameters[1].keywords[0].matchType, 
RequiredError.REQUIRED @ selector.searchParameters[1].keywords[1].text, 
RequiredError.REQUIRED @ selector.searchParameters[1].keywords[1].matchType, 
DistinctError.DUPLICATE_ELEMENT @ selector.searchParameters[1].keywords[1]]

and this is my script :
  $targetingIdeaService = $user->GetTargetingIdeaService('v201008');
  $keyword_array = array('star','kerajaan');

  // Create seed keyword.
  //$keyword = new Keyword();
 // $keyword->text = $isi;
  //$keyword->matchType = 'BROAD';

  // Create selector.
  $selector = new TargetingIdeaSelector();
  $selector->requestType = 'STATS';
  $selector->ideaType = 'KEYWORD';
  $selector->requestedAttributeTypes =
  array('KEYWORD', 'AVERAGE_TARGETED_MONTHLY_SEARCHES');

  // Set selector paging (required for targeting idea service).
  $paging = new Paging();
  $paging->startIndex = 0;
  $paging->numberResults = 5;
  $selector->paging = $paging;

  // Create related to keyword search parameter.
 $relatedToKeywordSearchParameter = new 
RelatedToKeywordSearchParameter($keyword_array);

  // Create keyword match type search parameter to ensure unique results.
  $keywordMatchTypeSearchParameter = new KeywordMatchTypeSearchParameter();
  $keywordMatchTypeSearchParameter->keywordMatchTypes = array('BROAD');

  $selector->searchParameters = array($relatedToKeywordSearchParameter, 
$keywordMatchTypeSearchParameter);

  // Get related keywords.
  $page = $targetingIdeaService->get($selector);

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Hourly AdGroup Performance Report

2011-03-09 Thread Peter Stannett
Hi Tyler

I'm definitely no expert but I would imagine you might need to run a
cron job?

Would you be willing to show me the code in php for how you wrote your
report?

I'm very new to the api and trying to find a decent example of
reporting in php is quite hard!

Kind regards
Peter

On Mar 9, 5:26 pm, Tyler  wrote:
> Can anyone provide an example of how to run an AdGroup performance
> report for a given time frame at the hour level?
>
> For example, 8pm Wednesday to 8pm Thursday.
>
> Any help or a point in the right direction would be great. I'm
> currently using the PHP client library to do things like update bids
> but I can't find any examples of how to run an hourly report.

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


Hourly AdGroup Performance Report

2011-03-09 Thread Tyler
Can anyone provide an example of how to run an AdGroup performance
report for a given time frame at the hour level?

For example, 8pm Wednesday to 8pm Thursday.

Any help or a point in the right direction would be great. I'm
currently using the PHP client library to do things like update bids
but I can't find any examples of how to run an hourly report.

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


Input is not proper UTF-8, indicate encoding

2011-03-09 Thread dmitriy
Hi.
I have next exception:


exception 'DOMException' with message 'DOMDocument::loadXML(): Input
is not proper UTF-8, indicate encoding !
Bytes: 0xA0 0x3C 0x2F 0x6E in Entity, line: 2' in ../includes/lib/
Google/Api/Ads/Common/Util/XmlUtils.php:81
Stack trace:
#0 [internal function]: HandleXmlError(2, 'DOMDocument::lo...', '',
44, Array)
#1 ../includes/lib/Google/Api/Ads/Common/Util/XmlUtils.php(44):
DOMDocument->loadXML('FixXml('PrepareRequest('__doRequest('https://adwords...', '', 1)
#6 [internal function]: AdWordsSoapClient->__doRequest('https://adwords...', '', 1, 0)
#7 ../includes/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php(179):
SoapClient->__soapCall('get', Array, NULL, Array, Array)
#8 ../includes/lib/Google/Api/Ads/AdWords/v201008/o/
TargetingIdeaService.php(7320): AdsSoapClient->__soapCall('get',
Array)

Data for making request stored in table with latin1 charset and as I
know, it should be utf-8 compatible.
Can you help me resolve 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: How to restrict API access for developer?

2011-03-09 Thread Orly Junior
Hi Ken,

I don't think what you ask specifically is currently implemented, but
my suggestion is that you request your developer to program using the
sandbox API, until the routine is full tested. The sandbox does make
actual changes to your campaign and does not require a developer
token. Your developer should also be able to program the software ask
for the developer token and automatically switch to the production
version of the API services when you are satisfied with the results.

Kind regards,

Orly

On Mar 9, 6:54 am, Ken Aston  wrote:
> Is there a way to restrict the API access right to certain commands? I want
> to hire a developer to develop an application but would like to avoid the
> risk of an unrestricted API access by that developer. For example I want to
> allow him to change CPC settings but not to set up new campaigns.

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


Planned Jobs Problems

2011-03-09 Thread Alexander Alex
Hello!

We using Java v13 API to make cross-client reports. Logic to plan report is 
such:
1. Check if there is room for report (15 queue limit)
2. If ok - validate it
3. If ok - plan it, store Job ID.
4. For each not downloaded reports, check their statuses; if status OK - 
download it.

It works fine for hundreds of accounts (partially there is cross-client 
reports, while partially not).
But sometimes, Report Service just don't believe our credential information.
Example:

   5
   Either this object does not exist, or this user does not 
have permission to access it.
   Job ID: 1856723944

It happens not rarely, and it's have global effect, if we have such 
problems, then it happened not with one account, but with many.
If we plan, plan, plan new feports, eventually some report is done and we 
can download it.

Do you need any additional info?

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


QuotaCheckError.ACCOUNT_INACCESSIBLE

2011-03-09 Thread Locobee
Started getting this error a couple days ago.  We reset the developer
token and this did not work.  There was info out about the possibility
of our account having suspicious activity.  We have been using the API
for years and never had this issue.  We reset all mcc passwords and
updated our application with new API toekn and MCC password.  Now we
are getting a Login Failed error??? My API has been down for two days
now!  Is anyone else having issues with this?

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