Re: Retrieving keyword match type in v201206 Java lib

2012-10-05 Thread calford
Hi, 

So, i didn't really understand.
Will the matchtype option be removed from keyword tool as well and be 
forced to be EXACT match?

On Monday, 13 August 2012 17:42:56 UTC+2, Kevin Winter wrote:

 Hi,
   My apologies.  I spoke with some of the engineers who made the change 
 and they indicated that due to backend changes, this information is no 
 longer available in v201206 and probably future versions of the API.

 - Kevin Winter, AdWords API Team

 On Friday, August 10, 2012 2:58:29 AM UTC-4, Sephora wrote:

 I attached a screenshot of how the keywordtool looks like when i use it. 
 At the left you see the MatchTypes i am talking about. The search volumes 
 for a certain keyword are then given depending on these types.

 Am Donnerstag, 9. August 2012 17:07:33 UTC+2 schrieb Kevin Winter:

 Hi,
   I went into both the public UI you posted as well as the Keyword Tool 
 within my production test account and in neither location could find 
 anything to indicate a MatchType either in the suggested keywords or the 
 seed phrase.  Could you clarify how you're doing this in the UI?

 - Kevin Winter
 AdWords API Team

 On Wednesday, August 8, 2012 4:49:53 AM UTC-4, Sephora wrote:

 Hi Kevin,

 thanks for your answer. What is the UI you mention? The Keywordtool at  
 https://adwords.google.com/o/*KeywordTool* still has the option to get 
 the SearchVolume based on the match type for keywords. E.g. i get for the 
 keyword test and all three match types different search volumes for each 
 match type.

 Thanks in advance for your help!


 Am Mittwoch, 1. August 2012 16:30:46 UTC+2 schrieb Kevin Winter:

 Hi,
   This feature was actually removed from the UI and the API removed it 
 with v201206 to follow suit.  You can use the 
 RelatedToQuerySearchParameter 
 with a given search query to receive a list of proposed exact match 
 keywords.

 - Kevin Winter
 AdWords API Team

 On Monday, July 30, 2012 6:55:24 AM UTC-4, Sephora wrote:

 I am currently trying to migrate my Java Application to the AdWords 
 API v201206 (from v201109) and encounter problems when trying to get the 
 search volume of a keyword with a specific match type (broad, phrase, 
 exact). There doesn't seem to be an option/searchParameter to set the 
 match 
 type when performing a TargetingIdeaService-Query. Was this feature 
 dropped 
 with the new API version?

 The search parameter i used in v201109 was 
 KeywordMatchTypeSearchParameter, which now isn't available any more. 
 Is there an alternative?



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Google Adwords Auction Insights API

2012-10-05 Thread Oliver
Auction Insights is not exposed over the API yet.

Oliver

On Thursday, October 4, 2012 8:01:00 PM UTC+1, Yun Ling wrote:

 Google released the keyword auction insight report earlier this year. It 
 gives a competitor analysis on impression share, avg position and stuffs 
 like that. i am trying to figure out if there is a way to pull that report 
 out by using 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


How to get demographic criteria performance?

2012-10-05 Thread oseemann
Hi,

we have not figured out a way to get performance data (impressions, clicks, 
conversions, cost etc.) on AgeRange and Gender criteria. However, the 
criteria report type does return performance data for keywords, managed 
placements, topics and user interests, user lists and product targets.

A similar question arose regarding Dynamic Search Ads and their 
performance. It looks like the data is not available through the criteria 
report as well, but we have not yet investigated it.

What is the recommended way to retrieve performance data for AgeRange and 
Gender criteria?

Thanks,
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


ReportDefinitionReportType.CALL_METRICS_CALL_DETAILS_REPORT in the com.google.api.adwords.v201206.jaxb.cm.ReportDefinition API is Beta and unavailable?

2012-10-05 Thread Michael Caldwell
 

Hi Google AdWords API team:

When I run the DownloadAdHocReport.java sample in the v201206 code examples 
download, just substituting for the CALL_METRICS_CALL_DETAILS_REPORT report 
type and appropriate Selector fields, I get this:

Report was not downloaded. 500: !!!1|||-1|||BetaError.BETA_FEATURE @ 
selector.reportDefinition.reportType???

I'm using the Sandbox, not production AdWords, as this is just a 
development effort at this point.

Did the report fail because it's Beta and therefore not available in the 
API, or did it fail because it's Beta and therefore not available using the 
Sandbox API, or am I doing something else wrong?  My boss and stakeholders 
would be very happy to have this report :-)

Here's the full code (it's your code really - great code samples BTW! - 
just with the simple changes I needed to run the Call Metrics needed)  :

// Copyright 2012 Google Inc. All Rights Reserved.

//

// Licensed under the Apache License, Version 2.0 (the License);

// you may not use this file except in compliance with the License.

// You may obtain a copy of the License at

//

// http://www.apache.org/licenses/LICENSE-2.0

//

// Unless required by applicable law or agreed to in writing, software

// distributed under the License is distributed on an AS IS BASIS,

// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

// See the License for the specific language governing permissions and

// limitations under the License.


package v201206;


import com.google.api.adwords.lib.AdWordsServiceLogger;

import com.google.api.adwords.lib.AdWordsUser;

import com.google.api.adwords.lib.utils.v201206.ReportDownloadResponse;

import com.google.api.adwords.lib.utils.v201206.ReportUtils;

import com.google.api.adwords.v201206.jaxb.cm.DownloadFormat;

import com.google.api.adwords.v201206.jaxb.cm.ReportDefinition;

import com.google.api.adwords.v201206.jaxb.cm.ReportDefinitionDateRangeType;

import com.google.api.adwords.v201206.jaxb.cm.ReportDefinitionReportType;

import com.google.api.adwords.v201206.jaxb.cm.Selector;


import java.io.File;

import java.io.FileOutputStream;

import java.net.HttpURLConnection;

import java.util.List;


/**

 * This example adds a keywords performance report. To get ad groups, run

 * GetAllAdGroups.java. To get report columns, run GetReportColumns.java.

 *

 * Tags: ReportDefinitionService.mutate

 *

 * @category adx-exclude

 * @author api.kwin...@gmail.com (Kevin Winter)

 */

public class DownloadAdHocReport {

  public static void main(String[] args) {

try {

  // Log SOAP XML request and response.

  AdWordsServiceLogger.log();


  // Get AdWordsUser from ~/adwords.properties.

  AdWordsUser user = new AdWordsUser();


  // Location to download report to.

  String reportFile = /tmp/report.csv;


  // Create selector.

  Selector selector = new Selector();

  ListString fields = selector.getFields();

  fields.add(AdGroupId);

  fields.add(Id);

  fields.add(KeywordText);

  fields.add(KeywordMatchType);

  fields.add(Impressions);

  fields.add(Clicks);

  fields.add(Cost);


  // Create report definition.

  ReportDefinition reportDefinition = new ReportDefinition();

  reportDefinition.setReportName(Keywords performance report # + 
System.currentTimeMillis());

  
reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.YESTERDAY);

  
reportDefinition.setReportType(ReportDefinitionReportType.KEYWORDS_PERFORMANCE_REPORT);

  reportDefinition.setDownloadFormat(DownloadFormat.CSV);

  reportDefinition.setIncludeZeroImpressions(false);

  reportDefinition.setSelector(selector);


  FileOutputStream fos = new FileOutputStream(new File(reportFile));

  ReportDownloadResponse response = ReportUtils.downloadReport(user, 
reportDefinition, fos);

  if (response.getHttpStatus() == HttpURLConnection.HTTP_OK) {

System.out.println(Report successfully downloaded:  + reportFile);

  } else {

System.out.println(Report was not downloaded.  + 
response.getHttpStatus() + : 

+ response.getHttpResponseMessage());

  }

} catch (Exception e) {

  e.printStackTrace();

}

  }

}



-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: ReportDefinitionReportType.CALL_METRICS_CALL_DETAILS_REPORT in the com.google.api.adwords.v201206.jaxb.cm.ReportDefinition API is Beta and unavailable?

2012-10-05 Thread Michael Caldwell
Very sorry, I posted the wrong code.  Here it is:

package v201206;


import com.google.api.adwords.lib.AdWordsServiceLogger;

import com.google.api.adwords.lib.AdWordsUser;

import com.google.api.adwords.lib.utils.v201206.ReportDownloadResponse;

import com.google.api.adwords.lib.utils.v201206.ReportUtils;

import com.google.api.adwords.v201206.jaxb.cm.DateRange;

import com.google.api.adwords.v201206.jaxb.cm.DownloadFormat;

import com.google.api.adwords.v201206.jaxb.cm.ReportDefinition;

import com.google.api.adwords.v201206.jaxb.cm.ReportDefinitionDateRangeType;

import com.google.api.adwords.v201206.jaxb.cm.ReportDefinitionReportType;

import com.google.api.adwords.v201206.jaxb.cm.Selector;


import java.io.File;

import java.io.FileOutputStream;

import java.net.HttpURLConnection;

import java.util.List;


public class mcDownloadCallMetricsReport {

   public static void main(String[] args) {

try {

  // Log SOAP XML request and response.

  AdWordsServiceLogger.log();


  // Get AdWordsUser from ~/adwords.properties.

  AdWordsUser user = new AdWordsUser();


  // Location to download report to.

  String reportFile = /tmp/report.csv;


  // Create selector.

  Selector selector = new Selector();

  ListString fields = selector.getFields();

  fields.add(AdGroupId);

  fields.add(AdGroupName);

  fields.add(CallDuration);

  /*

  fields.add(CallEndTime);

  fields.add(CallerNationalDesignatedCode);

  fields.add(CallStartTime);

  fields.add(CallStatus);

  fields.add(CampaignId);

  fields.add(CampaignName);

  */

  

  // Create report definition.

  ReportDefinition reportDefinition = new ReportDefinition();

  reportDefinition.setReportName(Call metrics report # + 
System.currentTimeMillis());

  reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.
LAST_7_DAYS);

  /*

  DateRange dateRange = new DateRange();

  dateRange.setMin(20120101);

  dateRange.setMax(20120930);

  selector.setDateRange(dateRange);

  */

  reportDefinition.setReportType(ReportDefinitionReportType.
CALL_METRICS_CALL_DETAILS_REPORT);

  reportDefinition.setDownloadFormat(DownloadFormat.CSV);

  reportDefinition.setIncludeZeroImpressions(true);

  reportDefinition.setSelector(selector);


  FileOutputStream fos = new FileOutputStream(new File(reportFile));

  ReportDownloadResponse response = ReportUtils.downloadReport(user, 
reportDefinition, fos);

  if (response.getHttpStatus() == HttpURLConnection.HTTP_OK) {

System.out.println(Report successfully downloaded:  + reportFile);

  } else {

System.out.println(Report was not downloaded.  + 
response.getHttpStatus() + : 

+ response.getHttpResponseMessage());

  }

} catch (Exception e) {

  e.printStackTrace();

}

  }

}

On Friday, October 5, 2012 9:38:11 AM UTC-4, Michael Caldwell wrote:

 Hi Google AdWords API team:

 When I run the DownloadAdHocReport.java sample in the v201206 code 
 examples download, just substituting for 
 the CALL_METRICS_CALL_DETAILS_REPORT report type and appropriate Selector 
 fields, I get this:

 Report was not downloaded. 500: !!!1|||-1|||BetaError.BETA_FEATURE @ 
 selector.reportDefinition.reportType???

 I'm using the Sandbox, not production AdWords, as this is just a 
 development effort at this point.

 Did the report fail because it's Beta and therefore not available in the 
 API, or did it fail because it's Beta and therefore not available using the 
 Sandbox API, or am I doing something else wrong?  My boss and stakeholders 
 would be very happy to have this report :-)

 Here's the full code (it's your code really - great code samples BTW! - 
 just with the simple changes I needed to run the Call Metrics needed)  :

 // Copyright 2012 Google Inc. All Rights Reserved.

 //

 // Licensed under the Apache License, Version 2.0 (the License);

 // you may not use this file except in compliance with the License.

 // You may obtain a copy of the License at

 //

 // http://www.apache.org/licenses/LICENSE-2.0

 //

 // Unless required by applicable law or agreed to in writing, software

 // distributed under the License is distributed on an AS IS BASIS,

 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

 // See the License for the specific language governing permissions and

 // limitations under the License.


 package v201206;


 import com.google.api.adwords.lib.AdWordsServiceLogger;

 import com.google.api.adwords.lib.AdWordsUser;

 import com.google.api.adwords.lib.utils.v201206.ReportDownloadResponse;

 import com.google.api.adwords.lib.utils.v201206.ReportUtils;

 import com.google.api.adwords.v201206.jaxb.cm.DownloadFormat;

 import com.google.api.adwords.v201206.jaxb.cm.ReportDefinition;

 import 
 com.google.api.adwords.v201206.jaxb.cm.ReportDefinitionDateRangeType;

 import 

Re: Campaign Performance Report: Call Metrics

2012-10-05 Thread Michael Caldwell
Have Call Metrics been added to the 201206 API?  Either available thru this 
CampaignPerformance report or the separate CALL_METRICS report, which is 
still in Beta, or am I wrong about that?

Thanks,
Michael C

On Wednesday, May 25, 2011 11:43:38 AM UTC-4, Eric Koleda wrote:

 Hi Reed,

 These fields aren't yet available in the API yet, but we hope to make them 
 available in the next release of the API.

 Best,
 - Eric Koleda, 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: Adwords API - Upgrading to V201206 and OAuth

2012-10-05 Thread Nakul Ringshia
Hi Kevin

I have implemented the code to call the Managed Customer Service to get the 
client customer id. However I have found a few emails for which the MCS is 
not returning the customer id (and hence I have unable to download 
reports). Based on my  understanding its because these emails are tagged to 
an MCC, right?

Since we have accounts that may not belong to the MCC, I think the safest 
way to fetch the client customer Id is to use the Info Service as 
demonstrated in the GetClientCustomerId example that's distributed with dot 
net client library, right? The Info Service will provide a client customer 
id regardless of whether the email is linked to an MCC or not, right?


Thanks

Nakul Ringshia




On Friday, September 21, 2012 5:16:06 PM UTC+5:30, Nakul Ringshia wrote:

 Thanks Anash

 I think the deprecation policy (
 https://developers.google.com/accounts/terms) clearly mentions that its 
 applicable for *Google Authentication API.* Isn't the Authentication API 
 common to Google Apps and Google Adwords. So the fact that its being 
 mentioned that all deprecated Authentication API's will continue to remain 
 available till 2015 implies that Client Login will continue to remain 
 available right irrespective of AdWords upgrades/deprecation, right?

 Regarding the use of ClientCustomerId, the code works fine when 
 downloading reports from 
 adwords.google.com/api/adwords/reportdownload/v201109  but does not when 
 I try to hit adwords.google.com/api/adwords/reportdownload/v201206 - PFA 
 the request and response from fiddler attached

- ReportDownload-V201206.txt - Note that clientEmail is passed in the 
header and* I am getting back an exception* - Support for clientEmail 
has been removed since V201206
- ReportDownload-V201109.txt - Note that the clientEmail is passed in 
the header and I am getting back data.

 Not it seems the clientCustomerId has been mandatory for V201206, right?

 Thanks

 Nakul Ringshia


 On Friday, September 21, 2012 2:29:55 PM UTC+5:30, Anash P. Oommen wrote:

 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 

How soon will the Java Libraries support v201209?

2012-10-05 Thread Alex Jones
I am in charge of porting our companies internal tools from the v201109 
tools which are sunsetting Oct 26. However, the java libraries currently 
(v8.7.0) only support up to v201206 which is being sunset in Feburary. If 
feasible I would like to skip over that version entirely and go straight to 
v201209. Any idea when Java will support these.

We use the old style libraries rather than maven, and I am not planning to 
change that. Any idea when these libraries will support 201209?

Thanks,
Alex Jones

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 API - Upgrading to V201206 and OAuth

2012-10-05 Thread Oliver
MCS will not return IDs of unlinked accounts.  Use the CustomerService 
instead for this purpose as it always returns the ID.  It's simpler and 
easier than using the InfoService.

Oliver


On Friday, October 5, 2012 3:47:50 PM UTC+1, Nakul Ringshia wrote:

 Hi Kevin

 I have implemented the code to call the Managed Customer Service to get 
 the client customer id. However I have found a few emails for which the MCS 
 is not returning the customer id (and hence I have unable to download 
 reports). Based on my  understanding its because these emails are tagged to 
 an MCC, right?

 Since we have accounts that may not belong to the MCC, I think the safest 
 way to fetch the client customer Id is to use the Info Service as 
 demonstrated in the GetClientCustomerId example that's distributed with dot 
 net client library, right? The Info Service will provide a client customer 
 id regardless of whether the email is linked to an MCC or not, right?


 Thanks

 Nakul Ringshia




 On Friday, September 21, 2012 5:16:06 PM UTC+5:30, Nakul Ringshia wrote:

 Thanks Anash

 I think the deprecation policy (
 https://developers.google.com/accounts/terms) clearly mentions that its 
 applicable for *Google Authentication API.* Isn't the Authentication API 
 common to Google Apps and Google Adwords. So the fact that its being 
 mentioned that all deprecated Authentication API's will continue to remain 
 available till 2015 implies that Client Login will continue to remain 
 available right irrespective of AdWords upgrades/deprecation, right?

 Regarding the use of ClientCustomerId, the code works fine when 
 downloading reports from 
 adwords.google.com/api/adwords/reportdownload/v201109  but does not when 
 I try to hit adwords.google.com/api/adwords/reportdownload/v201206 - PFA 
 the request and response from fiddler attached

- ReportDownload-V201206.txt - Note that clientEmail is passed in the 
header and* I am getting back an exception* - Support for clientEmail 
has been removed since V201206
- ReportDownload-V201109.txt - Note that the clientEmail is passed in 
the header and I am getting back data.

 Not it seems the clientCustomerId has been mandatory for V201206, right?

 Thanks

 Nakul Ringshia


 On Friday, September 21, 2012 2:29:55 PM UTC+5:30, Anash P. Oommen wrote:

 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: 
 

Adwords API PHP Oauth2: invalid_grant when refreshing token

2012-10-05 Thread Peter Bowen
This question relates to refreshing an oauth token in the Google Adwords 
API v201206 using the PHP client library found in aw_api_php_lib_3.1.1 
here http://code.google.com/p/google-api-adwords-php/downloads/list

Everything works as expected till the token expires after 1 hour.

Attempting to refresh the token using the 
$user-RefreshOAuth2AccessToken($credentials) results in an error: 
invalid_grant

The method in question is RefreshAccessToken in SimpleOAuth2Handler.php

The refresh token method uses curl to post the following data to 
https://accounts.google.com/o/oauth2/token

(I've masked the start of the real data using **)
  [refresh_token] = **vk_9xHqDzT2j8OrR-UW24
  [client_id] = **googleusercontent.com
  [client_secret] = ***RPd1o
  [grant_type] = refresh_token


This is the curlinfo

[url] = https://accounts.google.com/o/oauth2/token
[content_type] = application/json
[http_code] = 400
[header_size] = 378
[request_size] = 249
[filetime] = -1
[ssl_verify_result] = 0
[redirect_count] = 0
[total_time] = 1.735994
[namelookup_time] = 0.598276
[connect_time] = 0.616033
[pretransfer_time] = 0.684525
[size_upload] = 574
[size_download] = 51
[speed_download] = 29
[speed_upload] = 330
[download_content_length] = -1
[upload_content_length] = 574
[starttransfer_time] = 1.685787
[redirect_time] = 0
[request_header] = POST /o/oauth2/token HTTP/1.1
User-Agent: curl, gzip
Host: accounts.google.com
Accept: */*
Accept-Encoding: gzip
Content-Length: 574
Expect: 100-continue
Content-Type: multipart/form-data; 
boundary=08f82c0f8254

Searching Google returns suggestions to check the time, but  my laptop is 
within 1 second of the unix timestamp so I don't think it's this.

I'd value your thoughts as I've had a rather frustrating time trying to get 
this to work.

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


TrueView In-Search and the AW API

2012-10-05 Thread brian steele
When will TrueView In-Search be compatible with the AdWords API?

Please let me know -- thanks!

Brian

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


Manage Notifications - Take People off Ad Disapproval Emails

2012-10-05 Thread Stuart McMullin
Hello,

I work at a large agency that has numerous people on the adwords MCC 
account.  Is there a way to have them NOT be notified if an ad I create 
is disapproved?  They are requesting to get taken off but I've only seen 
that I'm able to take them off if I take them off the account completely. 
 Any help here?

Thanks for reading,
Stuart McMullin   

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en


Re: How to use customerId in java to retrieve campaign information

2012-10-05 Thread The Phantom
I got it.

On Friday, October 5, 2012 1:39:37 PM UTC-7, The Phantom wrote:

 Hi, 
  
 I'm a newby to the AdWords API and am going through the instructions in 
 the Getting Started section of the page at 
 https://developers.google.com/adwords/api/docs/sandbox.
  
 I have completed steps 1 through 4, and am attempting to complete step 5.
  
 I am stuck on the sentence Edit your configuration file (see step 2) and 
 insert the clientCustomerId of your client account. 
  
 Is the configuration file being referred to the java ads.properties file 
 that is shipped in the java api jars?  Or is it another file?
  


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