Re: Migration to Adwords api v201206: New vs Old java client library?

2012-09-21 Thread Kevin Winter
Hi Christian,
  Yes, we published a migration guide here: 
https://code.google.com/p/google-api-ads-java/wiki/MigrationGuide

It doesn't cover everything in detail, but we do have examples for both 
Defined Reports: 
https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201206/reporting/DownloadCriteriaReport.java

as well as AWQL reports: 
https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201206/reporting/DownloadCriteriaReportWithAwql.java

- Kevin Winter
AdWords API Team

On Friday, September 21, 2012 12:28:29 PM UTC-4, cefc wrote:
>
> Thanks Kevin.  
>
> Would you happen to know if there is a migration guide for reporting and 
> also any examples for V201206 Reporting using the old client library?
>
> Christian
>
> On Tuesday, September 18, 2012 9:02:04 AM UTC-7, Kevin Winter wrote:
>>
>> Hi,
>>   I'm a bit biased as I maintain the new library, but some of the 
>> benefits include support for maven, OAuth2, AppEngine as well an a 
>> completely re-written architecture and session handling to make it easier 
>> to work with.  We don't have any firm plans for deprecating the old java 
>> library - it is being maintained and updated with new versions but primary 
>> focus is on the new library.  We'll be sure to give advance notice when we 
>> have firm plans.
>>
>> Here's the migration guide if you haven't already seen it: 
>> https://code.google.com/p/google-api-ads-java/wiki/MigrationGuide
>>
>> The service interfaces and generated code should be nearly identical to 
>> the old library (aside from v201206 report downloads) so the main changes 
>> are how to configure the session and retrieve a Service object.
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Wednesday, September 12, 2012 8:16:36 PM UTC-4, cefc wrote:
>>>
>>> K D,
>>>
>>> I'm not asking when the current API version will be made obsolete.  I'm 
>>> trying to find out if I should switch from using the old java client 
>>> library (https://code.google.com/p/google-api-adwords-java/) to the 
>>> "new" java client library (
>>> https://code.google.com/p/google-api-ads-java/) at the same time as 
>>> updating to v201206.
>>>
>>> On Monday, September 10, 2012 8:23:59 PM UTC-7, K D wrote:

 >Looking ahead a little, is there any plan to promote the new client 
 library to be the "offical" version and sunset the old client library?

 This should explain more:
 https://developers.google.com/adwords/api/docs/sunset-dates

 Also check out the release notes for v201206 version.




 On Tuesday, September 11, 2012 1:03:27 AM UTC+9, cefc wrote:
>
> For the upcoming adwords api version migration to v201206 (from 
> v201109 using old client library) is there any significant benefit in 
> switching to the new java client library over the existing (old) one?
>
> Looking ahead a little, is there any plan to promote the new client 
> library to be the "official" version and sunset the old client library?
>
> Christian
>


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Migration to Adwords api v201206: New vs Old java client library?

2012-09-21 Thread cefc
Thanks Kevin.  

Would you happen to know if there is a migration guide for reporting and 
also any examples for V201206 Reporting using the old client library?

Christian

On Tuesday, September 18, 2012 9:02:04 AM UTC-7, Kevin Winter wrote:
>
> Hi,
>   I'm a bit biased as I maintain the new library, but some of the benefits 
> include support for maven, OAuth2, AppEngine as well an a completely 
> re-written architecture and session handling to make it easier to work 
> with.  We don't have any firm plans for deprecating the old java library - 
> it is being maintained and updated with new versions but primary focus is 
> on the new library.  We'll be sure to give advance notice when we have firm 
> plans.
>
> Here's the migration guide if you haven't already seen it: 
> https://code.google.com/p/google-api-ads-java/wiki/MigrationGuide
>
> The service interfaces and generated code should be nearly identical to 
> the old library (aside from v201206 report downloads) so the main changes 
> are how to configure the session and retrieve a Service object.
>
> - Kevin Winter
> AdWords API Team
>
> On Wednesday, September 12, 2012 8:16:36 PM UTC-4, cefc wrote:
>>
>> K D,
>>
>> I'm not asking when the current API version will be made obsolete.  I'm 
>> trying to find out if I should switch from using the old java client 
>> library (https://code.google.com/p/google-api-adwords-java/) to the 
>> "new" java client library (https://code.google.com/p/google-api-ads-java/) 
>> at the same time as updating to v201206.
>>
>> On Monday, September 10, 2012 8:23:59 PM UTC-7, K D wrote:
>>>
>>> >Looking ahead a little, is there any plan to promote the new client 
>>> library to be the "offical" version and sunset the old client library?
>>>
>>> This should explain more:
>>> https://developers.google.com/adwords/api/docs/sunset-dates
>>>
>>> Also check out the release notes for v201206 version.
>>>
>>>
>>>
>>>
>>> On Tuesday, September 11, 2012 1:03:27 AM UTC+9, cefc wrote:

 For the upcoming adwords api version migration to v201206 (from v201109 
 using old client library) is there any significant benefit in switching to 
 the new java client library over the existing (old) one?

 Looking ahead a little, is there any plan to promote the new client 
 library to be the "official" version and sunset the old client library?

 Christian

>>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: StartDate and EndDate for ad in AdStats?

2012-09-21 Thread Yulong Yang
Yeah this is waht I am thinking of, I didnt see startDate or endDate in the 
selector fields of adgroupadservice. But one confusion is, in the adStats 
API 
guidefor
 adgroupad service, it lists these 2 fields also others, while I could 
retrieve others directly, but not those 2.

On Friday, September 21, 2012 10:42:20 AM UTC-4, Oliver wrote:
>
> According to the link Anash put earlier, I think Start and End dates are 
> not possible selectors in AdGroupAdService. But I could have misunderstood 
> the documentation.
>
> These fields are marked as inherited, so presumably you need to get them 
> from the CampaignService instead?
>
>
>
> On Friday, September 21, 2012 2:52:48 PM UTC+1, Yulong Yang wrote:
>>
>> I actually tried both lower case and upper case 'StartDate' and 
>> 'EndDate', none of them work.
>>
>> This is my function to grab adstats, I use adGroupAdService:
>>
>>   def getAdStats(self, ad_id):
>>   result = []
>>   offset = 0
>>   selector = {
>> 'fields': ['Id', 'AdGroupId', 'Impressions', 'StartDate', 
>> 'EndDate',
>> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
>> 'AverageCpc',
>> 'AverageCpm', 'Conversions', 
>> 'ViewThroughConversions'],
>> 'predicates': [
>>   {
>>   'field': 'Id',
>>   'operator': 'EQUALS',
>>   'values': [ad_id]
>>   },
>> ],
>> 'paging': {
>>   'startIndex': str(offset),
>>   'numberResults': str(self._PAGE_SIZE)
>> }
>>   }
>>   more_pages = True
>>   while more_pages:
>> page = self._ad_group_ad_service.Get(selector)[0]
>>
>> # Display results.
>> if 'entries' in page:
>>   for ad in page['entries']:
>> result.append((ad['stats']))
>>
>> offset += self._PAGE_SIZE
>> selector['paging']['startIndex'] = str(offset)
>> more_pages = offset < int(page['totalNumEntries'])
>>
>>   return result[0]
>>
>> On Friday, September 21, 2012 9:49:01 AM UTC-4, Oliver wrote:
>>>
>>> I don't see StartDate and EndDate as selectors excpet for the 
>>> CampaignService object.  Which service object are you using? 
>>> AdgroupAdService?
>>>
>>> Oliver
>>>
>>> On Friday, September 21, 2012 2:44:16 PM UTC+1, Yulong Yang wrote:

 Hey thanks for the reply. Sorry I didnt clarify myself. I also tried 
 'StartDate' and 'EndDate' in the ad group ad stats selector, it still not 
 work.

 On Friday, September 21, 2012 4:44:25 AM UTC-4, Anash P. Oommen wrote:
>
> Hi,
>
> It should be StartDate and EndDate (first letter caps). See 
> https://developers.google.com/adwords/api/docs/appendix/selectorfieldsfor 
> a more comprehensive list of supported selector fields.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:
>>
>> Hi all,
>>
>> I am currently trying to fetch all fields listed 
>> herein
>>  AdStats for ad in sandbox. I am using python client library. All fields 
>> could be retrieved by following selector using ad groupd ad service 
>> except 
>> 'startDate' and 'endDate':
>> selector = {
>> 'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
>> 'endDate',
>> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
>> 'AverageCpc',
>> 'AverageCpm', 'Conversions', 
>> 'ViewThroughConversions'],
>> 'predicates': [
>>   {
>>   'field': 'Id',
>>   'operator': 'EQUALS',
>>   'values': [ad_id]
>>   },
>> ],
>> 'paging': {
>>   'startIndex': str(offset),
>>   'numberResults': str(self._PAGE_SIZE)
>> }
>>   }
>>
>> If I add 'StartDate' and 'EndDate', it returns invalid field name 
>> error: 
>> adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
>> [SelectorError.INVALID_FIELD_NAME @ serviceSelector; 
>> trigger:'startDate', 
>> SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']
>>
>> Anyone know why it is wrong to fetch these 2 fields directly from ad 
>> group ad service? 
>>
>> btw I could get them 2 fields from campaign service; not sure if they 
>> are the same as that from ad group ad service.
>>
>> Any help appreciated. 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 y

Re: StartDate and EndDate for ad in AdStats?

2012-09-21 Thread Oliver
According to the link Anash put earlier, I think Start and End dates are 
not possible selectors in AdGroupAdService. But I could have misunderstood 
the documentation.

These fields are marked as inherited, so presumably you need to get them 
from the CampaignService instead?



On Friday, September 21, 2012 2:52:48 PM UTC+1, Yulong Yang wrote:
>
> I actually tried both lower case and upper case 'StartDate' and 'EndDate', 
> none of them work.
>
> This is my function to grab adstats, I use adGroupAdService:
>
>   def getAdStats(self, ad_id):
>   result = []
>   offset = 0
>   selector = {
> 'fields': ['Id', 'AdGroupId', 'Impressions', 'StartDate', 
> 'EndDate',
> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
> 'AverageCpc',
> 'AverageCpm', 'Conversions', 'ViewThroughConversions'],
> 'predicates': [
>   {
>   'field': 'Id',
>   'operator': 'EQUALS',
>   'values': [ad_id]
>   },
> ],
> 'paging': {
>   'startIndex': str(offset),
>   'numberResults': str(self._PAGE_SIZE)
> }
>   }
>   more_pages = True
>   while more_pages:
> page = self._ad_group_ad_service.Get(selector)[0]
>
> # Display results.
> if 'entries' in page:
>   for ad in page['entries']:
> result.append((ad['stats']))
>
> offset += self._PAGE_SIZE
> selector['paging']['startIndex'] = str(offset)
> more_pages = offset < int(page['totalNumEntries'])
>
>   return result[0]
>
> On Friday, September 21, 2012 9:49:01 AM UTC-4, Oliver wrote:
>>
>> I don't see StartDate and EndDate as selectors excpet for the 
>> CampaignService object.  Which service object are you using? 
>> AdgroupAdService?
>>
>> Oliver
>>
>> On Friday, September 21, 2012 2:44:16 PM UTC+1, Yulong Yang wrote:
>>>
>>> Hey thanks for the reply. Sorry I didnt clarify myself. I also tried 
>>> 'StartDate' and 'EndDate' in the ad group ad stats selector, it still not 
>>> work.
>>>
>>> On Friday, September 21, 2012 4:44:25 AM UTC-4, Anash P. Oommen wrote:

 Hi,

 It should be StartDate and EndDate (first letter caps). See 
 https://developers.google.com/adwords/api/docs/appendix/selectorfieldsfor 
 a more comprehensive list of supported selector fields.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:
>
> Hi all,
>
> I am currently trying to fetch all fields listed 
> herein
>  AdStats for ad in sandbox. I am using python client library. All fields 
> could be retrieved by following selector using ad groupd ad service 
> except 
> 'startDate' and 'endDate':
> selector = {
> 'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
> 'endDate',
> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
> 'AverageCpc',
> 'AverageCpm', 'Conversions', 
> 'ViewThroughConversions'],
> 'predicates': [
>   {
>   'field': 'Id',
>   'operator': 'EQUALS',
>   'values': [ad_id]
>   },
> ],
> 'paging': {
>   'startIndex': str(offset),
>   'numberResults': str(self._PAGE_SIZE)
> }
>   }
>
> If I add 'StartDate' and 'EndDate', it returns invalid field name 
> error: 
> adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
> [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'startDate', 
> SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']
>
> Anyone know why it is wrong to fetch these 2 fields directly from ad 
> group ad service? 
>
> btw I could get them 2 fields from campaign service; not sure if they 
> are the same as that from ad group ad service.
>
> Any help appreciated. 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


Re: Can you help me to find out how to reach client’s payments through API.

2012-09-21 Thread Rodrigo Saling
Thanks for the info Kevin! I just got asked by my boss about this and found 
your answer.

;-)

On Friday, September 21, 2012 10:42:29 AM UTC-3, Kevin Winter wrote:
>
> Hi,
>   Unfortunately, it is not currently possible to obtain billing 
> information (sumary, charges, invoices, etc) via the API.
>
> - Kevin Winter
> AdWords API Team
>
> On Tuesday, September 18, 2012 4:50:01 AM UTC-4, pumba wrote:
>>
>>
>> Hello
>> Can you help me to find out how to reach client’s payments through API?
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: StartDate and EndDate for ad in AdStats?

2012-09-21 Thread Yulong Yang
I actually tried both lower case and upper case 'StartDate' and 'EndDate', 
none of them work.

This is my function to grab adstats, I use adGroupAdService:

  def getAdStats(self, ad_id):
  result = []
  offset = 0
  selector = {
'fields': ['Id', 'AdGroupId', 'Impressions', 'StartDate', 'EndDate',
'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
'AverageCpc',
'AverageCpm', 'Conversions', 'ViewThroughConversions'],
'predicates': [
  {
  'field': 'Id',
  'operator': 'EQUALS',
  'values': [ad_id]
  },
],
'paging': {
  'startIndex': str(offset),
  'numberResults': str(self._PAGE_SIZE)
}
  }
  more_pages = True
  while more_pages:
page = self._ad_group_ad_service.Get(selector)[0]

# Display results.
if 'entries' in page:
  for ad in page['entries']:
result.append((ad['stats']))

offset += self._PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])

  return result[0]

On Friday, September 21, 2012 9:49:01 AM UTC-4, Oliver wrote:
>
> I don't see StartDate and EndDate as selectors excpet for the 
> CampaignService object.  Which service object are you using? 
> AdgroupAdService?
>
> Oliver
>
> On Friday, September 21, 2012 2:44:16 PM UTC+1, Yulong Yang wrote:
>>
>> Hey thanks for the reply. Sorry I didnt clarify myself. I also tried 
>> 'StartDate' and 'EndDate' in the ad group ad stats selector, it still not 
>> work.
>>
>> On Friday, September 21, 2012 4:44:25 AM UTC-4, Anash P. Oommen wrote:
>>>
>>> Hi,
>>>
>>> It should be StartDate and EndDate (first letter caps). See 
>>> https://developers.google.com/adwords/api/docs/appendix/selectorfieldsfor a 
>>> more comprehensive list of supported selector fields.
>>>
>>> Cheers,
>>> Anash P. Oommen,
>>> AdWords API Advisor.
>>>
>>> On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:

 Hi all,

 I am currently trying to fetch all fields listed 
 herein
  AdStats for ad in sandbox. I am using python client library. All fields 
 could be retrieved by following selector using ad groupd ad service except 
 'startDate' and 'endDate':
 selector = {
 'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
 'endDate',
 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
 'AverageCpc',
 'AverageCpm', 'Conversions', 
 'ViewThroughConversions'],
 'predicates': [
   {
   'field': 'Id',
   'operator': 'EQUALS',
   'values': [ad_id]
   },
 ],
 'paging': {
   'startIndex': str(offset),
   'numberResults': str(self._PAGE_SIZE)
 }
   }

 If I add 'StartDate' and 'EndDate', it returns invalid field name 
 error: 
 adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
 [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'startDate', 
 SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']

 Anyone know why it is wrong to fetch these 2 fields directly from ad 
 group ad service? 

 btw I could get them 2 fields from campaign service; not sure if they 
 are the same as that from ad group ad service.

 Any help appreciated. 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


Re: StartDate and EndDate for ad in AdStats?

2012-09-21 Thread Oliver
I don't see StartDate and EndDate as selectors excpet for the 
CampaignService object.  Which service object are you using? 
AdgroupAdService?

Oliver

On Friday, September 21, 2012 2:44:16 PM UTC+1, Yulong Yang wrote:
>
> Hey thanks for the reply. Sorry I didnt clarify myself. I also tried 
> 'StartDate' and 'EndDate' in the ad group ad stats selector, it still not 
> work.
>
> On Friday, September 21, 2012 4:44:25 AM UTC-4, Anash P. Oommen wrote:
>>
>> Hi,
>>
>> It should be StartDate and EndDate (first letter caps). See 
>> https://developers.google.com/adwords/api/docs/appendix/selectorfieldsfor a 
>> more comprehensive list of supported selector fields.
>>
>> Cheers,
>> Anash P. Oommen,
>> AdWords API Advisor.
>>
>> On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:
>>>
>>> Hi all,
>>>
>>> I am currently trying to fetch all fields listed 
>>> herein
>>>  AdStats for ad in sandbox. I am using python client library. All fields 
>>> could be retrieved by following selector using ad groupd ad service except 
>>> 'startDate' and 'endDate':
>>> selector = {
>>> 'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
>>> 'endDate',
>>> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
>>> 'AverageCpc',
>>> 'AverageCpm', 'Conversions', 
>>> 'ViewThroughConversions'],
>>> 'predicates': [
>>>   {
>>>   'field': 'Id',
>>>   'operator': 'EQUALS',
>>>   'values': [ad_id]
>>>   },
>>> ],
>>> 'paging': {
>>>   'startIndex': str(offset),
>>>   'numberResults': str(self._PAGE_SIZE)
>>> }
>>>   }
>>>
>>> If I add 'StartDate' and 'EndDate', it returns invalid field name error: 
>>> adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
>>> [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'startDate', 
>>> SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']
>>>
>>> Anyone know why it is wrong to fetch these 2 fields directly from ad 
>>> group ad service? 
>>>
>>> btw I could get them 2 fields from campaign service; not sure if they 
>>> are the same as that from ad group ad service.
>>>
>>> Any help appreciated. 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


Re: StartDate and EndDate for ad in AdStats?

2012-09-21 Thread Yulong Yang
Hey thanks for the reply. Sorry I didnt clarify myself. I also tried 
'StartDate' and 'EndDate' in the ad group ad stats selector, it still not 
work.

On Friday, September 21, 2012 4:44:25 AM UTC-4, Anash P. Oommen wrote:
>
> Hi,
>
> It should be StartDate and EndDate (first letter caps). See 
> https://developers.google.com/adwords/api/docs/appendix/selectorfieldsfor a 
> more comprehensive list of supported selector fields.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:
>>
>> Hi all,
>>
>> I am currently trying to fetch all fields listed 
>> herein
>>  AdStats for ad in sandbox. I am using python client library. All fields 
>> could be retrieved by following selector using ad groupd ad service except 
>> 'startDate' and 'endDate':
>> selector = {
>> 'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
>> 'endDate',
>> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
>> 'AverageCpc',
>> 'AverageCpm', 'Conversions', 
>> 'ViewThroughConversions'],
>> 'predicates': [
>>   {
>>   'field': 'Id',
>>   'operator': 'EQUALS',
>>   'values': [ad_id]
>>   },
>> ],
>> 'paging': {
>>   'startIndex': str(offset),
>>   'numberResults': str(self._PAGE_SIZE)
>> }
>>   }
>>
>> If I add 'StartDate' and 'EndDate', it returns invalid field name error: 
>> adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
>> [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'startDate', 
>> SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']
>>
>> Anyone know why it is wrong to fetch these 2 fields directly from ad 
>> group ad service? 
>>
>> btw I could get them 2 fields from campaign service; not sure if they are 
>> the same as that from ad group ad service.
>>
>> Any help appreciated. 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


Re: Can you help me to find out how to reach client’s payments through API.

2012-09-21 Thread Kevin Winter
Hi,
  Unfortunately, it is not currently possible to obtain billing information 
(sumary, charges, invoices, etc) via the API.

- Kevin Winter
AdWords API Team

On Tuesday, September 18, 2012 4:50:01 AM UTC-4, pumba wrote:
>
>
> Hello
> Can you help me to find out how to reach client’s payments through API?
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Adwords UI vs AD_PERFORMANCE_REPORT totals

2012-09-21 Thread Marijn
For anyone who is wondering what went wrong here: there is an error in de 
xml parsing code I posted here. XElement.ReadFrom() moves the position in 
the stream being read to the next element. Because we call XmlReader.Read() 
after each node, it skips every other row... 

Op maandag 10 september 2012 17:14:48 UTC+2 schreef Marijn het volgende:

> Hi there,
>
> We are using the .NET client library 14.7.0.0 to calculate the total 
> clicks on a specific day using the AD_PERFORMANCE_REPORT. When we compare 
> these results with the totals shown in the Adwords UI (Campaigns -> All 
> online campaigns -> Ads) there is a difference. The cause of this 
> difference is missing rows in the AD_PERFORMANCE_REPORT report.
>
> By looking at the adIDs we can figure out which ads are missing in the 
> report. These ads are not any different from the ones that are present. 
> We've checked stuff like AdGroup status, impressions, etc.
>
> Below is the code we use to calculate the total of clicks for yesterday 
> (clicksYesterday). 
> How can we find out why certain ads are missing or how to solve it?
>
>
> // Create selector
> Selector selector = new Selector();
> selector.fields = new string[] 
> {
> "AdNetworkType2", 
> "AdNetworkType1", 
> "AdGroupName",
> "AdGroupId",
> "AdGroupStatus",
> "Status",
> "AdType",
> "CampaignName",
> "CampaignId",
> "CampaignStatus",
> "Clicks",
> "Conversions", 
> "Cost",
> "CostPerConversion", 
> "AverageCpc",
> "AverageCpm",
> "CreativeDestinationUrl", 
> "Description1",
> "Description2",
> "Url", 
> "DisplayUrl", 
> "Headline", 
> "Id",
> "ImageCreativeName",  
> "ImageAdUrl", 
> "Impressions",
> "AveragePosition", 
> "Date",
> };
> selector.dateRange = new DateRange();
> selector.dateRange.min = 
> DateTime.Now.Date.AddMonths(-6).ToString("MMdd");
> selector.dateRange.max = DateTime.Now.Date.ToString("MMdd");
>
> // Add predicates 
> selector.predicates = new Predicate[] {
> new Predicate()
> {
> field = "Status",
> @operator = PredicateOperator.IN,
> values = new string[] { "ENABLED", "PAUSED", "DISABLED" }
> },
> new Predicate()
> {
> field = "AdGroupStatus",
> @operator = PredicateOperator.IN,
> values = new string[] { "ENABLED", "PAUSED", "DELETED" }
> },
> new Predicate()
> {
> field = "CampaignStatus",
> @operator = PredicateOperator.IN,
> values = new string[] { "ACTIVE", "PAUSED", "DELETED" }
> },
> };
>
> // Create report definition
> ReportDefinition reportDefinition = new ReportDefinition();
> reportDefinition.reportName = "Test - Creative performance report";
> reportDefinition.dateRangeType = ReportDefinitionDateRangeType.CUSTOM_DATE;
> reportDefinition.reportType = 
> ReportDefinitionReportType.AD_PERFORMANCE_REPORT;
> reportDefinition.downloadFormat = DownloadFormat.XML;
> reportDefinition.selector = selector;
> reportDefinition.includeZeroImpressions = true;
>
> // Download the report
> ReportUtilities reportUtilities = new ReportUtilities(this.User);
> reportUtilities.ReportVersion = "v201206";
> reportUtilities.DownloadClientReport(reportDefinition, 
> @"c:\temp\adperformance.xml");
>
> // Extract ids
> List adIdsYesteday = new List();
> long clicksYesterday = 0;
> using (FileStream fileStream = new 
> FileStream(@"c:\temp\adperformance.xml", FileMode.Open))
> {
> using (XmlReader xmlReader = XmlReader.Create(fileStream))
> {
> xmlReader.MoveToContent();
> while (xmlReader.Read())
> {
> // Handle each 'row'
> if (xmlReader.Name == "row")
> {
> // Get values
> XElement rowNode = (XElement)XElement.ReadFrom(xmlReader);
> long adId = long.Parse(rowNode.Attribute("adID").Value);
> DateTime adDate = 
> DateTime.ParseExact(rowNode.Attribute("day").Value, "-MM-dd", 
> CultureInfo.InvariantCulture);
> long adClicks = 
> long.Parse(rowNode.Attribute("clicks").Value);
>
> // Handle data for yesterday
> if (adDate == DateTime.Now.Date.AddDays(-1))
> {
> clicksYesterday += adClicks;
> adIdsYesteday.Add(adId);
> }
> }
> }
> }
> }
>
> // Store adIDs 
> using (FileStream fs = new FileStream(@"c:\temp\ids.txt", FileMode.Create))
> using (StreamWriter sw = new StreamWriter(fs))
> foreach (string s in adIdsYesteday.Select(id => id.ToString()))
> sw.WriteLine(s);
>

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

Re: IMPORTANT: Upcoming extended downtime for the AdWords API.

2012-09-21 Thread Kevin Winter
Correction:  this is happening tomorrow.

On Monday, September 10, 2012 4:50:01 PM UTC-4, Kevin Winter wrote:
>
> You will not be able to use the AdWords API for 10 hours this coming 
> Saturday.  See our blog post for details: 
> http://googleadsdeveloper.blogspot.com/2012/09/upcoming-extended-adwords-apiscripts.html
>
> - Kevin Winter
> AdWords API Team
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: using adparam to set prices on all ads in an adgroup

2012-09-21 Thread Peter Crowley
Hi Justin
I like you am publishing 1 product per ad & 1 ad per adgroup
I have typically 15 keywords per item. 
I update them 400 at a time. The updates are cheap at 0.1 
Marking them first in the database for update, then looping over a SQL 
query with a limit 400 on it & sending up 400 operations at a time to the 
AdParamService.

I assume the usecase would be with Keyword Insertion.
Where you associate a price & stock availability with each keyword (product)
e,g,
Buy {keyword:Gizmo} for only {param1:£20},{param2:14} in stock
Of course this only works if you are buying simple keywords.
-Peter


On Friday, 14 September 2012 11:51:14 UTC+1, Justin wrote:
>
> I've been using the API for several things, and recently wanted to use it 
> to set the prices displayed on my ads.
>
> The adGroups are arraigned so that they are each related to a product. I 
> simply (I really thought this would be simple) want to update the param1 
> value in all ads in a given adGroup.
>
> What I have found so far is that the parameter needs to be set for *every 
> single keyword* used on that adGroup. 
>
> Ideally I would want to: 
>
> Best case: Send the AdGroup ID up and a value for the param and have all 
> ads up dated. 
> Worst Case: Send up the Adgroup ID and Ad ID and param Value for each ad 
> to be updated.
>
> Is there anyway of doing this?
>
> Thanks for any help.
>
> p.s. on a slightly related note, can anyone point out a use case for the 
> current implementation (changing parameters per keyword)? As I may simply 
> be approaching this from the wrong angle.
>
>
> pps: I found a similar question that's 2 years old so I'm hoping things 
> have been improved over the last few years:
> https://groups.google.com/forum/?fromgroups=#!search/AdParam$20all$20keywords/adwords-api/fNAWaneqCmw/discussion
>

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


Getting a "java.lang.VerifyError: Cannot inherit from final class" when running in Tomcat

2012-09-21 Thread Oliver
I'm hoping someone with better Java knowledge than ours can help us with 
this one.

Our code works fine when running standalone.  But when we run in Tomcat, 
this line:

String clientLoginToken = new 
ClientLoginTokens.Builder().forApi(ClientLoginTokens.Api.ADWORDS).from(mapConfiguration).build().requestToken();

is throwing this error:

java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at 
com.google.api.ads.common.lib.auth.ClientLoginTokens$Builder.(ClientLoginTokens.java:567)


Any ideas what is going on?

Oliver




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


Adword API V201109 : Error : Report contents are invalid. AuthorizationError.USER_PERMISSION_DENIED

2012-09-21 Thread Snehal Patel
Hi,

I am getting following error while downloading Keyword Performance report.

{"Report contents are invalid. - !!!2|||-1||| 
AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:''; 
errorDetails:message=authenticated external userId=82151493 from 
customerId=80562453 accessing customerId=21905347  discarded paths: 
[{[21905347] ( Inactive:6)}]???"}

Also Following is the code sample I am using:

--

   Dim user As New AdWordsUser()

Dim fileName As String = "AdGroup"

Dim definition As New ReportDefinition

definition.reportName = "Keywords performance report #"
definition.reportType = 
ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT
definition.downloadFormat = XML
definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS


Dim selector As New Selector
selector.fields = New String() {"AdGroupName", "CampaignName", 
"KeywordText", "Cost", "Clicks"}

Dim predicate As New Predicate
predicate.field = "Status"
predicate.operator = PredicateOperator.IN
predicate.values = New String() {"ENABLED", "PAUSED"}
selector.predicates = New Predicate() {predicate}

definition.includeZeroImpressions = True
definition.selector = selector

Dim filePath As String = "d:\test\" & fileName

Try
Dim utilities As New ReportUtilities(user)
' ' If you know that your report is small enough to fit in 
memory, then
' ' you can instead use
Dim report As ClientReport = 
utilities.GetClientReport(definition)

' ' Get the text report directly if you requested a text format
' ' (e.g. xml)
Dim reportText As String = report.Text

' ' Get the binary report if you requested a binary format
' ' (e.g. gzip)
Dim reportBytes As Byte() = report.Contents

' ' Deflate a zipped binary report for further processing.
 Dim deflatedReportText As String = 
System.Text.Encoding.UTF8.GetString(MediaUtilities.DeflateGZipData(report.Contents))
utilities.DownloadClientReport(Of ReportDefinition)(definition, 
filePath)

Catch ex As Exception

End Try

-

Please suggest any solutions.


Thanks in Advance
Snehal 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Change History Data

2012-09-21 Thread AdWordsAPIAdvisor
Hello Chirag,


Yes, this is correct.


-Danial, AdWords API Team.


Original Message Follows:

From: Chirag 
Subject: Re: Change History Data
Date: Thu, 20 Sep 2012 02:30:41 -0700 (PDT)

> Hello Danial,
> 
> Yes,I am giving date range of one week from monday to sunday.
> What i am understood from your reply is that, If user changes one keyword 
> from active to pause and than again same keyword from pause to active and 
> than if i changed its Mac cpc or bid between some date-range. For this 
> situation i can get only one change in given date range.
> 
> Is it correct?
> 
> Thanks,
> Chirag
> 
> 
> On Thursday, September 20, 2012 2:01:19 PM UTC+5:30, AdWords API Advisor 
> wrote:
> >
> > Hello Chirag, 
> >
> >
> > When requesting the changes, you need to specify a date range. If multiple 
> > changes happened withing the date range, only one update event would be 
> > returned. This is because the service was designed for synchronization, not 
> > audit, and returns the objects that need to be 'refreshed' on the remote 
> > side. 
> >
> > While it is not possible to reliably get exact number of changes, you can 
> > improve accuracy by requests with shorter time frames. 
> >
> >
> > -Danial, AdWords API Team. 
> >
> >
> > Original Message Follows: 
> >  
> > From: Chirag > 
> > Subject: Re: Change History Data 
> > Date: Wed, 19 Sep 2012 22:36:36 -0700 (PDT) 
> >
> > > Hello Danial, 
> > > 
> > > Thanks for reply, 
> > > 
> > > Actually if exact change is not possible than i only required no of 
> > changes 
> > > done by customer i their account. 
> > > Means total no of changes. 
> > > For this, 
> > > I tried to use customer sync service to get change history data. But 
> > count 
> > > of data i got is difference than login. 
> > > For one of client id i got total 31 changes using customer sync service 
> > but 
> > > actually in account there is total 41 changes. 
> > > 
> > > how i can use change history data to match count with adwords service? 
> > > 
> > > Thanks, 
> > > Chirag 
> > > 
> > > On Wednesday, August 15, 2012 4:48:05 PM UTC+5:30, Danial Klimkin wrote: 
> > > > 
> > > > Hello Chirag, 
> > > > 
> > > > 
> > > > This server was designed to help synchronizing the local database with 
> > the 
> > > > server-side state. It is not possible to retrieve the exact change - 
> > just 
> > > > the fact the object was changed. To identify change you need to 
> > compare the 
> > > > new values to the old ones saved locally. 
> > > > 
> > > > 
> > > > -Danial, AdWords API Team. 
> > > > 
> > > > 
> > > > On Sunday, August 12, 2012 8:22:21 PM UTC+4, Chirag wrote: 
> > > >> 
> > > >> Hello Dmitriy, 
> > > >>   
> > > >> I didn't get you properly, you mean to say that i will get only that 
> > > >> keyword or Ad id whose status has been changed.let me explain you 
> > with the 
> > > >> example 
> > > >> 
> > > >> In my change history data i am getting total 60 keywords changed, and 
> > out 
> > > >> of that 57 keywords status were changed and for 3 keywords max cpc 
> > was 
> > > >> increased  and the customer sync service will give me Ad Id in 
> > changedAds 
> > > >> field and Keyword Id in changedCriteria field  now my question is 
> > that how 
> > > >> will i know that for 57 keyword Status was changed and for 3 keywords 
> > Max 
> > > >> CPC was changed. 
> > > >> 
> > > >> I want to know that what criteria is changed in my ad or keyword 
> > through 
> > > >> adwords api. 
> > > >> 
> > > >> Thanks 
> > > >> Chirag 
> > > >> 
> > > >> On Sunday, August 12, 2012 12:50:37 AM UTC+5:30, Dmitriy wrote: 
> > > >>> 
> > > >>> Hi Chirag. 
> > > >>> 
> > > >>> Only Status can be changed in particular keyword or any Ad. If you 
> > > >>> change some else, there will be new Criteria or Ad having other Id. 
> > > >>> 
> > > >>> Пʼятниця, 10 серпня 2012 р. 16:08:55 UTC+3 користувач Chirag 
> > написав: 
> > >  
> > >  Hello All, 
> > >    
> > >  I have implemented the change history data for my campaigns but 
> > this 
> > >  gives me the data like changedAds, changedCriteria which includes 
> > the 
> > >  relevant Ad Id and keyword Id but i want to to know that which 
> > criteria has 
> > >  been changed corresponding to that  Ad Id and keyword Id. 
> > >  Is there any way to get exactly what has been changed in particular 
> > >  keyword or any Ad? 
> > >  
> > >  Thanks 
> > >  Chirag 
> > >  
> > > >>> 
> > > 
> > > -- 
> > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 
> > > 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 
> > > adwor...@googlegroups.com 
> > > To unsubscribe from this 

Re: Adwords API - Upgrading to V201206 and OAuth

2012-09-21 Thread Anash P. Oommen
Hi Nakul,

As Kevin mentioned, yes, ClientLogin is deprecated, and there's a 3 year 
deprecation policy for Google Apps. Google Apps and Google AdWords are 
however two different products guided by different deprecation policies, so 
AdWords may decide to drop support for ClientLogin at an earlier date. As 
of now we don't have a roadmap to share for deprecating ClientLogin in 
AdWords API, but you should consider looking at OAuth2 for long term.

Also, use of ClientCustomerId and authentication mechanism (ClientLogin / 
OAuth2) are unrelated. To confirm, AdWords API requires 2 set of items to 
make calls successfully:

1. Authentication: This could be OAuth2 access token or an authToken from 
ClientLogin API.
2. ClientCustomerId: This is the customerId of the account being operated 
on. This is not required if the AuthToken / OAuth2 access token corresponds 
to an Advertiser account, but if you are operating on an account without 
login or if the authToken / accessToken corresponds to an MCC and you are 
operating on a child account, then you require this header.

Hope this helps. Let me know if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Friday, 21 September 2012 13:27:04 UTC+5:30, Nakul Ringshia wrote:
>
> Thanks Kevin
>
> As per  https://developers.google.com/accounts/docs/AuthForInstalledApps, 
> Google will continue to provide support for ClientLogin. Also as per the 
> deprecation policy  https://developers.google.com/accounts/terms, Google 
> says that the support will be provided will 2015. *Can you please confirm 
> my understanding?*
>
> *Also just to confirm that we are on the same page, when we say 
> ClientLogin, we are referring to using the ClientCustomerId. *Are there 
> any posts/links that mention that support for email and password no longer 
> work but client customer id will.
>
> I am also attaching a word document capturing the screenshots from links 
> mentioned above.
>
> Nakul Ringshia
>
>
>
> On Thursday, September 20, 2012 9:48:34 PM UTC+5:30, Kevin Winter wrote:
>>
>> Hi Alexander,
>>   Unfortunately, another team manages ClientLogin, so I can't speak with 
>> authority.  Here's the blog post announcing the deprecation: 
>> http://googledevelopers.blogspot.com/2012/04/changes-to-deprecation-policies-and-api.html
>>
>> We'll probably provide support in the AdWords API until sometime before 
>> the actual deprecation, but we do recommend people look into OAuth2 for the 
>> long term.
>>
>> We've published code examples demonstrating OAuth2 with all the 
>> libraries, see here for java: 
>> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201206/misc/OAuth2Example.java
>>
>> All of these examples demonstrate the OOB method.  We've published a few 
>> sample web apps to demonstrate the web server flow.
>>
>> Many developers in your situation opt to write a one-off utility that 
>> performs the OOB flow once and stores the credentials for later reuse. 
>>  With a refresh token, you can obtain a new AccessToken as many times as 
>> you need (as long as the user doesn't revoke it).
>>
>> - Kevin Winter
>> AdWords API Team
>>
>> On Thursday, September 20, 2012 11:30:09 AM UTC-4, Nakul Ringshia wrote:
>>>
>>> Thanks Kevin
>>>
>>> I tried setting the ClientCustomerId in the request header and that 
>>> worked!!!. I think using this approach makes sense (there's still some work 
>>> that I will need to do - calling the managed service account to get the 
>>> client id based on the email). 
>>>
>>> One key factor that will determine if our application will continue to 
>>> use the client login would be how long will it continue to remain available 
>>> - I am guessing that it will continue to remain operational post the 
>>> v201109  sunset date of Oct 26 2012. Would you be able to confirm how long 
>>> beyond that will it (ClientLogin (using client customer id)) be available?
>>>
>>> Regarding the OAuth questions - Can you please provide links/samples for 
>>> OOB? Also, I would like reiterate that our application does not have any 
>>> user interaction at all - So I am still not sure how the authorization code 
>>> will be fed to the application?
>>>
>>> Nakul Ringshia
>>>
>>> On Wednesday, September 19, 2012 11:14:49 PM UTC+5:30, Kevin Winter 
>>> wrote:

 This is slightly inaccurate.  The error message refers to the use of 
 clientEmail to identify which account is being targeted with a request. 
  You'll need to specify a clientCustomerId instead (which can be retrieved 
 with the ManagedCustomerService as mentioned below.  You don't have to 
 authenticate with an MCC account, but many people do.

 ClientLogin, which is the authentication mechanism using email and 
 password, was deprecated.  We do recommend using OAuth2 rather than 
 ClientLogin where possible, but ClientLogin should work for a while yet.

 Regarding the OP's questions:

>>>

Re: StartDate and EndDate for ad in AdStats?

2012-09-21 Thread Anash P. Oommen
Hi,

It should be StartDate and EndDate (first letter caps). 
See https://developers.google.com/adwords/api/docs/appendix/selectorfields 
for a more comprehensive list of supported selector fields.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:
>
> Hi all,
>
> I am currently trying to fetch all fields listed 
> herein
>  AdStats for ad in sandbox. I am using python client library. All fields 
> could be retrieved by following selector using ad groupd ad service except 
> 'startDate' and 'endDate':
> selector = {
> 'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
> 'endDate',
> 'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
> 'AverageCpc',
> 'AverageCpm', 'Conversions', 'ViewThroughConversions'],
> 'predicates': [
>   {
>   'field': 'Id',
>   'operator': 'EQUALS',
>   'values': [ad_id]
>   },
> ],
> 'paging': {
>   'startIndex': str(offset),
>   'numberResults': str(self._PAGE_SIZE)
> }
>   }
>
> If I add 'StartDate' and 'EndDate', it returns invalid field name error: 
> adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
> [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'startDate', 
> SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']
>
> Anyone know why it is wrong to fetch these 2 fields directly from ad group 
> ad service? 
>
> btw I could get them 2 fields from campaign service; not sure if they are 
> the same as that from ad group ad service.
>
> Any help appreciated. 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