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

2014-01-16 Thread Ray Tsang (AdWords API Team)
Bikram,

Yes, the newly created ad should show up in 
AdGroupChangeDatahttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData.changedAds
 
object even if the Ad Group itself doesn't have other changes.

Thanks,

On Wednesday, January 15, 2014 7:59:35 PM UTC-5, Bikram Bhuyan wrote:

 Thanks a lot for the response. I wanted to verify that, if there is a new 
 ad created during the timeframe but there is no change to adgroup, will 
 that new ad be returned by the service call. That part was not very clear 
 from the documentation.

 Thanks,
 Bikram.

 On Wednesday, January 15, 2014 3:32:08 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 In the documentation that you referenced, adGroupChangeStatus can be NEW 
 - which indicates this entity was created during the time frame you are 
 looking at.

 I hope this helps,

 --
 Ray Tsang (AdWords API Advisor)



 On Tuesday, January 14, 2014 5:30:30 PM UTC-5, Bikram Bhuyan wrote:

 Hello,

 Does the CustomerSyncService returns the newly added adgroups and newly 
 added ads? The below link does not specifically says about new ads. So 
 wanted to confirm.


 https://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData

 If this service does not return the newly added ads, then how should I 
 get the new ads for a particular date range?

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 2:15:35 PM UTC-8, Bikram Bhuyan wrote:

 Hello,

 I could figure out how to make a call to this service. But I am facing 
 one issues. When I make a call to this service for a date range for a 
 campaign, I am getting the error *[CustomerSyncError.TOO_MANY_CHANGES 
 @ selector]*. Any information what does this mean.

 I am trying to make a call with the date range from 1 year period for a 
 single campaign.

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 1:09:24 PM UTC-8, Bikram Bhuyan wrote:

 Hi Ray,

 Thanks a lot for the information. I got the required information from 
 this and it is really helpful. But I am finding it little difficult how 
 to 
 create the AWQL for this service call. Not sure how to pass the date 
 range. 
 If you have a sample example, could you please send me or you couple 
 point 
 to any old post which have the answer to it.

 Thanks,
 Bikram.

 On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad 
 Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects 
 in which we are using the API calls in Java to fetch the list of 
 Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the 
 full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I 
 get the changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 
 ads, 
 I am making 25 API calls which is not efficient. Could you please 
 suggest 
 how do I batch the calls so that the data can be returned efficiently 
 with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER 
 BY Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId 
 =  + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE 
 AdGroupId =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



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

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

2014-01-15 Thread Ray Tsang (AdWords API Team)
Bikram,

Please see the AdWords API common 
errorshttps://developers.google.com/adwords/api/docs/common-errors?csw=1#CustomerSyncErrorpage
 for more detail about the TOO_MANY_CHANGES error.
1 year period may be too long - you will have to reduce the date range.

Thanks,

--
Ray Tsang (AdWords API Advisor)


On Tuesday, January 14, 2014 5:15:35 PM UTC-5, Bikram Bhuyan wrote:

 Hello,

 I could figure out how to make a call to this service. But I am facing one 
 issues. When I make a call to this service for a date range for a campaign, 
 I am getting the error *[CustomerSyncError.TOO_MANY_CHANGES @ selector]*. 
 Any information what does this mean.

 I am trying to make a call with the date range from 1 year period for a 
 single campaign.

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 1:09:24 PM UTC-8, Bikram Bhuyan wrote:

 Hi Ray,

 Thanks a lot for the information. I got the required information from 
 this and it is really helpful. But I am finding it little difficult how to 
 create the AWQL for this service call. Not sure how to pass the date range. 
 If you have a sample example, could you please send me or you couple point 
 to any old post which have the answer to it.

 Thanks,
 Bikram.

 On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad 
 Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects in 
 which we are using the API calls in Java to fetch the list of Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I get 
 the changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 
 ads, 
 I am making 25 API calls which is not efficient. Could you please suggest 
 how do I batch the calls so that the data can be returned efficiently with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER BY 
 Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId = 
  + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE 
 AdGroupId =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-15 Thread Ray Tsang (AdWords API Team)
Bikram,

In the documentation that you referenced, adGroupChangeStatus can be NEW - 
which indicates this entity was created during the time frame you are 
looking at.

I hope this helps,

--
Ray Tsang (AdWords API Advisor)



On Tuesday, January 14, 2014 5:30:30 PM UTC-5, Bikram Bhuyan wrote:

 Hello,

 Does the CustomerSyncService returns the newly added adgroups and newly 
 added ads? The below link does not specifically says about new ads. So 
 wanted to confirm.


 https://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData

 If this service does not return the newly added ads, then how should I get 
 the new ads for a particular date range?

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 2:15:35 PM UTC-8, Bikram Bhuyan wrote:

 Hello,

 I could figure out how to make a call to this service. But I am facing 
 one issues. When I make a call to this service for a date range for a 
 campaign, I am getting the error *[CustomerSyncError.TOO_MANY_CHANGES @ 
 selector]*. Any information what does this mean.

 I am trying to make a call with the date range from 1 year period for a 
 single campaign.

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 1:09:24 PM UTC-8, Bikram Bhuyan wrote:

 Hi Ray,

 Thanks a lot for the information. I got the required information from 
 this and it is really helpful. But I am finding it little difficult how to 
 create the AWQL for this service call. Not sure how to pass the date range. 
 If you have a sample example, could you please send me or you couple point 
 to any old post which have the answer to it.

 Thanks,
 Bikram.

 On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad 
 Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects in 
 which we are using the API calls in Java to fetch the list of Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I get 
 the changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 
 ads, 
 I am making 25 API calls which is not efficient. Could you please suggest 
 how do I batch the calls so that the data can be returned efficiently 
 with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER 
 BY Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId = 
  + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE 
 AdGroupId =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-15 Thread Bikram Bhuyan
Thanks a lot for the response. I wanted to verify that, if there is a new 
ad created during the timeframe but there is no change to adgroup, will 
that new ad be returned by the service call. That part was not very clear 
from the documentation.

Thanks,
Bikram.

On Wednesday, January 15, 2014 3:32:08 PM UTC-8, Ray Tsang (AdWords API 
Team) wrote:

 Bikram,

 In the documentation that you referenced, adGroupChangeStatus can be NEW - 
 which indicates this entity was created during the time frame you are 
 looking at.

 I hope this helps,

 --
 Ray Tsang (AdWords API Advisor)



 On Tuesday, January 14, 2014 5:30:30 PM UTC-5, Bikram Bhuyan wrote:

 Hello,

 Does the CustomerSyncService returns the newly added adgroups and newly 
 added ads? The below link does not specifically says about new ads. So 
 wanted to confirm.


 https://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData

 If this service does not return the newly added ads, then how should I 
 get the new ads for a particular date range?

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 2:15:35 PM UTC-8, Bikram Bhuyan wrote:

 Hello,

 I could figure out how to make a call to this service. But I am facing 
 one issues. When I make a call to this service for a date range for a 
 campaign, I am getting the error *[CustomerSyncError.TOO_MANY_CHANGES 
 @ selector]*. Any information what does this mean.

 I am trying to make a call with the date range from 1 year period for a 
 single campaign.

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 1:09:24 PM UTC-8, Bikram Bhuyan wrote:

 Hi Ray,

 Thanks a lot for the information. I got the required information from 
 this and it is really helpful. But I am finding it little difficult how to 
 create the AWQL for this service call. Not sure how to pass the date 
 range. 
 If you have a sample example, could you please send me or you couple point 
 to any old post which have the answer to it.

 Thanks,
 Bikram.

 On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad 
 Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects 
 in which we are using the API calls in Java to fetch the list of 
 Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I get 
 the changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 
 ads, 
 I am making 25 API calls which is not efficient. Could you please 
 suggest 
 how do I batch the calls so that the data can be returned efficiently 
 with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER 
 BY Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId 
 =  + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE 
 AdGroupId =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



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

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

2014-01-14 Thread Bikram Bhuyan
Hi Ray,

Thanks a lot for the information. I got the required information from this 
and it is really helpful. But I am finding it little difficult how to 
create the AWQL for this service call. Not sure how to pass the date range. 
If you have a sample example, could you please send me or you couple point 
to any old post which have the answer to it.

Thanks,
Bikram.

On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API Team) 
wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects in 
 which we are using the API calls in Java to fetch the list of Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I get the 
 changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 ads, 
 I am making 25 API calls which is not efficient. Could you please suggest 
 how do I batch the calls so that the data can be returned efficiently with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER BY 
 Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId =  
 + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE AdGroupId 
 =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-14 Thread Bikram Bhuyan
Hello,

I could figure out how to make a call to this service. But I am facing one 
issues. When I make a call to this service for a date range for a campaign, 
I am getting the error *[CustomerSyncError.TOO_MANY_CHANGES @ selector]*. 
Any information what does this mean.

I am trying to make a call with the date range from 1 year period for a 
single campaign.

Thanks,
Bikram.

On Tuesday, January 14, 2014 1:09:24 PM UTC-8, Bikram Bhuyan wrote:

 Hi Ray,

 Thanks a lot for the information. I got the required information from this 
 and it is really helpful. But I am finding it little difficult how to 
 create the AWQL for this service call. Not sure how to pass the date range. 
 If you have a sample example, could you please send me or you couple point 
 to any old post which have the answer to it.

 Thanks,
 Bikram.

 On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects in 
 which we are using the API calls in Java to fetch the list of Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I get 
 the changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 ads, 
 I am making 25 API calls which is not efficient. Could you please suggest 
 how do I batch the calls so that the data can be returned efficiently with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER BY 
 Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId =  
 + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE AdGroupId 
 =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-14 Thread Bikram Bhuyan
Hello,

Does the CustomerSyncService returns the newly added adgroups and newly 
added ads? The below link does not specifically says about new ads. So 
wanted to confirm.

https://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData

If this service does not return the newly added ads, then how should I get 
the new ads for a particular date range?

Thanks,
Bikram.

On Tuesday, January 14, 2014 2:15:35 PM UTC-8, Bikram Bhuyan wrote:

 Hello,

 I could figure out how to make a call to this service. But I am facing one 
 issues. When I make a call to this service for a date range for a campaign, 
 I am getting the error *[CustomerSyncError.TOO_MANY_CHANGES @ selector]*. 
 Any information what does this mean.

 I am trying to make a call with the date range from 1 year period for a 
 single campaign.

 Thanks,
 Bikram.

 On Tuesday, January 14, 2014 1:09:24 PM UTC-8, Bikram Bhuyan wrote:

 Hi Ray,

 Thanks a lot for the information. I got the required information from 
 this and it is really helpful. But I am finding it little difficult how to 
 create the AWQL for this service call. Not sure how to pass the date range. 
 If you have a sample example, could you please send me or you couple point 
 to any old post which have the answer to it.

 Thanks,
 Bikram.

 On Monday, January 13, 2014 12:57:48 PM UTC-8, Ray Tsang (AdWords API 
 Team) wrote:

 Bikram,

 The return value of the CustomerSyncService should also include Ad 
 Group 
 changedhttps://developers.google.com/adwords/api/docs/reference/v201309/CustomerSyncService.AdGroupChangeData(and
  Ad changed).  Please refer to the documentation.

 Thanks!

 --
 Ray Tsang (AdWords API Advisor)


 On Wednesday, January 8, 2014 8:25:56 PM UTC-5, Bikram Bhuyan wrote:

 Hi,

 Currently we are working on the AdWords integration in our projects in 
 which we are using the API calls in Java to fetch the list of Campaigns, 
 AdGroups  Ads and store it in the database. I am able to fetch the full 
 details in each call successfully. In order to reduce the api calls I 
 wanted to fetch only incremental details for each day if there are any 
 change and store it.

 Could you please provide some information on the below questions.

 1. I am using AWQL to fetch the list of campaigns. How can I get the 
 changed or new campaigns for a particular date range.
 2. The input to fetch the AdGroups is the CampaignId. So how do I get 
 the changed or new AdGroups for a particular date range.
 3. The input to fetch the Ads is the AdGroupId. So how do I get the 
 changed or new Ads for a particular date range.

 Also currently I am making separate API calls to fetch the list of 
 AdGroups and Ads. So if the campaign has 5 ad groups and each having 5 
 ads, 
 I am making 25 API calls which is not efficient. Could you please suggest 
 how do I batch the calls so that the data can be returned efficiently with 
 less number of API calls.

 Below is the code I am using to fetch the data.

 String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER BY 
 Id;
 CampaignPage adCampaigns = campaignService.query(query);

 String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId = 
  + campaignId +  ORDER BY Id;
 AdGroupPage adGroups = adGroupService.query(query);

 String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE 
 AdGroupId =  + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
 AdGroupAdPage adPages = adGroupAdService.query(query);

 Any pointer will be really helpful.

 Thanks,
 Bikram.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-13 Thread Bikram Bhuyan
Hi Ewan,

Thanks for the information. Its really helpful. Any idea how can I get the 
similar changed information for AdGroup and Ads. In a normal scenario, 
there is high possibility of changes to Ads (new adds or changes to the ad 
etc) compared to Campaigns. If you have similar information for ads and 
groups please let me know.

Thanks,
Bikram.

On Saturday, January 11, 2014 7:12:55 AM UTC-8, Ewan Heming wrote:

 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.


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.


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

2014-01-08 Thread Bikram Bhuyan
Hi,

Currently we are working on the AdWords integration in our projects in 
which we are using the API calls in Java to fetch the list of Campaigns, 
AdGroups  Ads and store it in the database. I am able to fetch the full 
details in each call successfully. In order to reduce the api calls I 
wanted to fetch only incremental details for each day if there are any 
change and store it.

Could you please provide some information on the below questions.

1. I am using AWQL to fetch the list of campaigns. How can I get the 
changed or new campaigns for a particular date range.
2. The input to fetch the AdGroups is the CampaignId. So how do I get the 
changed or new AdGroups for a particular date range.
3. The input to fetch the Ads is the AdGroupId. So how do I get the changed 
or new Ads for a particular date range.

Also currently I am making separate API calls to fetch the list of AdGroups 
and Ads. So if the campaign has 5 ad groups and each having 5 ads, I am 
making 25 API calls which is not efficient. Could you please suggest how do 
I batch the calls so that the data can be returned efficiently with less 
number of API calls.

Below is the code I am using to fetch the data.

String query = SELECT Id, Name, Status, ServingStatus, Amount ORDER BY Id;
CampaignPage adCampaigns = campaignService.query(query);

String query = SELECT Id, CampaignId, Name, Status WHERE CampaignId =  + 
campaignId +  ORDER BY Id;
AdGroupPage adGroups = adGroupService.query(query);

String query = SELECT Id, Url, DisplayUrl, Type, Status WHERE AdGroupId = 
 + groupId +  AND AdType = 'TEXT_AD' ORDER BY Id;
AdGroupAdPage adPages = adGroupAdService.query(query);

Any pointer will be really helpful.

Thanks,
Bikram.

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