Re: How to get started with AdWords API PHP library 4.7.0 / v201309 ?

2014-01-11 Thread Ad_nu
OK – I created a new client ID (with API console) and executed the file in 
command line (using shell client). Now I can see couple of error messages 
and URL.

When I visit the URL I get error message:
invalid_client
no application name

Errors that are displayed after the file is executed:
Strict Standards: parse_ini_file(): It is not safe to rely on the system's 
timezone settings. Please use the date.timezone setting, the TZ environment 
variable or the date_default_timezone_set() function. In case you used any 
of those methods and you are still getting this warning, you most likely 
misspelled the timezone identifier. We selected 'America/Chicago' for 
'CST/-6.0/no DST' instead in 
_MY_SERVER_PATH_/adwords_api/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php
 
on line 40

Warning: Error parsing 
_MY_SERVER_PATH_/adwords_api/src/Google/Api/Ads/AdWords/Lib/api.properties 
on line 15
 in 
_MY_SERVER_PATH_/adwords_api/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php
 
on line 40


perjantai, 10. tammikuuta 2014 23.16.00 UTC+2 Josh Radcliff (AdWords API 
Team) kirjoitti:

 Hi,

 All of our examples (including the *GetRefreshToken.php*) are meant to be 
 run from the command line.  *GetRefreshToken.php* will write to stdout 
 and prompt you to open a URL in your browser, then will wait on stdin for 
 you to copy and paste the authorization code returned by the URL.  Once 
 you've done that it will print instructions for modifying your auth.ini to 
 stdout.

 Are you running it from the command line or via some other mechanism?

 Thanks,
 Josh, AdWords API Team

 On Friday, January 10, 2014 12:05:35 PM UTC-5, Ad_nu wrote:

 OK – Thanks 
 I’m still getting blank pages though…

 - I copied the developerToken from AdWords API center
 - I created the client_id and client_secret  with API console

 But when I run the “GetRefreshToken.php” page is blank. 

 Is this more of a server issue (at my end) – or is there other required 
 information that I need to fill before I can get the refresh token?


 maanantai, 6. tammikuuta 2014 21.12.56 UTC+2 Josh Radcliff (AdWords API 
 Team) kirjoitti:

 Hi,

 The sandbox endpoint was deprecated a while back in favor of test 
 accounts.

 https://developers.google.com/adwords/api/docs/test-accounts

 Regarding simple tests, the 
 GetCampaignshttps://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201309/BasicOperations/GetCampaigns.phpexample
  is a straightforward, read-only example that should indicate if you 
 have everything set up correctly.  Also, when you run the sample it will 
 create log files in the current directory that you can check to confirm 
 your request went through.

 Cheers,
 Josh, AdWords API Team

 On Sunday, January 5, 2014 6:47:37 AM UTC-5, Ad_nu wrote:

 I haven’t use AdWords API before – so I’m trying to get started with 
 sandbox version.
 I Downloaded and installed the AdWords API PHP Client Library 4.7.0. to 
 my server; I edited the user information in auth.ini and I also edited the 
 settings.ini to use server: https://adwords-sandbox.google.com
 After these “configurations” all example files (under v201309) – like 
 EstimateKeywordTraffic.php – return just a blank page (no API errors or 
 PHP 
 errors).

 What other configurations are required before I can make sandbox 
 calls/requests?
 Are there any simple test files available (other than the files 
 included in client library) that can be used for checking if my server 
 actually made any API requests?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to incrementally fetch Campaign, AdGroup Ads with date range Batch the calls.

2014-01-11 Thread Ewan Heming
Hi Bikram,

You can find the ids of new and changed objects using the 
CustomerSyncServicehttps://developers.google.com/adwords/api/docs/reference/latest/CustomerSyncService,
 
then call the services to get the data. Also, many of the fields are 
available in the reporting service, so you could get all of the data in 
your three API calls from a single ad structure report 
downloadhttps://developers.google.com/adwords/api/docs/guides/structure-reports,
 
which is the recommended way to retrieve data in bulk.

Regards,

Ewan 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Memory leaks storage consuming data

2014-01-11 Thread assaf
Hi,

My application calls Java API via different services ( 
CampaignServiceInterface,CampaignCriterionServiceInterface etc),using -

 Credential oAuth2Credential = new OfflineCredentials.Builder()
.forApi(Api.ADWORDS)
.fromFile()
.build()
.generateCredential();

// Construct an AdWordsSession.
AdWordsSession session = new AdWordsSession.Builder()
.fromFile()
.withOAuth2Credential(oAuth2Credential)
.build();

session.setClientCustomerId(pClientID);

AdWordsServices adwordsServices = new AdWordsServices();
CampaignServiceInterface campaignService = adwordsServices.get(session, 
CampaignServiceInterface.class);

This is done every hour for several dozen clients.
I am using Java application running on Tomcat using API version v201309.

What I see is 2 issues:

1. The Tomcat process memory consumption grows with time.
2. The consumed physical memory of the C drive of the server grows very 
quickly and uses all the free space. I can't really locate where
all the storage going but I suspect some kind of tmp file or log file 
that is being written by the API.
Once I restart the Tomcat all the memory and storage is released.

My questions:
1. Is there a known issue with memory leaks?
2. Are there better ways for using the API than how I am implementing my 
needs?

   - 
*   Perhaps have only 1 session per client created and used every hour 
   rather than re-creating it? *
   -*Perhaps creating the AdwordsServices object every hour is not 
   correct and I should have 1 instance for the entire application or 1 per 
   service?*
   
I appreciate any feedback and help in the matter.

Many thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.