Recover the total impressions of all keywords

2015-12-04 Thread etienne . veilleux
Hi,

Is it possible to recover the total impressions of all keywords and also 
the total number of all QualityScore from all campaign inside an account.

I can already do it with a "For Each" by creating a loop through the 
results but I was wondering if it was possible to return the result via the 
reports directly.

Here is my current formula:

$dateRange = "LAST_14_DAYS";

$reportQuery = '
SELECT QualityScore, Impressions
FROM CRITERIA_PERFORMANCE_REPORT
Status WHERE IN [ENABLED, PAUSED]
AND Impressions> 1
Pendant '. $dateRange;

Thank you, your help is appreciated.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d4c35a1b-6dc9-41b3-8d13-7794f07e98d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Recover the total impressions of all keywords

2015-12-04 Thread etienne . veilleux
Hi,

Is it possible to recover the total impressions of all keywords and also 
the total number of all QualityScore.

I can already do it with a "For Each" by creating a loop through the 
results but I was wondering if it was possible to return the result via the 
reports directly.

Here is my current formula:

$dateRange = "LAST_14_DAYS";

$reportQuery = '
SELECT QualityScore, Impressions
FROM CRITERIA_PERFORMANCE_REPORT
Status WHERE IN [ENABLED, PAUSED]
AND Impressions> 1
Pendant '. $dateRange;

Thank you, your help is appreciated.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4e34a4fd-33c3-4c83-b6dd-f9a0baf05862%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Network

2015-12-04 Thread etienne . veilleux
Hi,

I try to find a way to filter results to only have the campaigns that 
appear on both the search network and the network display at the same time.

I tried several things but I can not find how to specify this.

Do you know how to do that?

The current formula displays the campaign that are on both networks but 
separately, I need to have a single result for campaigns that are on both 
networks at the same time.

Thanks for your help.

This is what I have for now:

// Date range
$dateRange = sprintf('%d,%d', date('Ymd', strtotime('-90 day')), date('Ymd', 
strtotime('-1 day')));
 
// Select
$reportQuery = 'SELECT CampaignName, CampaignId, AdNetworkType1 FROM 
CAMPAIGN_PERFORMANCE_REPORT WHERE AdNetworkType1 IN [SEARCH,CONTENT] DURING 
'.$dateRange;

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6830afdd-3c44-4a2f-820f-dcbaed7a253f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Conversions

2015-12-01 Thread etienne . veilleux
Hi,

Ok finally works!

FYI I use the reports on the web, not from the command line.

The reason it does not show on the screen is that I had to parse the string 
with *simplexml_load_string* before. Looking at the source code of the page 
I noticed that everything was there but it was not displayed on the screen.

Thanks for all !

Final working code:

$report = ReportUtils::DownloadReport($reportDefinition, NULL, $user, 
$options);

$xml = simplexml_load_string($report);
print "";
print_r($xml);
print "";





Le lundi 30 novembre 2015 09:11:34 UTC-5, Josh Radcliff (AdWords API Team) 
a écrit :
>
> Hi Etienne,
>
> Are you setting any of the *options*, such as:
>   $options['skipReportHeader'] = true;
>   $options['skipColumnHeader'] = true;
>   $options['skipReportSummary'] = true;
>
> If you set all of those options to *true *and the report does not contain 
> any rows, then you'll get an empty string back.
>
> In case it helps, attached is a modified version of 
> DownloadCriteriaReport.php 
> 
>  that's 
> printing the report results for me if I run *php 
> DownloadCriteriaReport.php*.
>
> Also, please make sure you are running the example *from the command line*, 
> and not loading it up as a webpage in your browser. All code examples are 
> meant to be run from the command line, since they print to stdout/stderr.
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, November 26, 2015 at 8:33:58 AM UTC-5, 
> etienne@admobio.com  wrote:
>>
>> Hi Josh !
>>
>> Ok here is the result of my test:
>>
>> If I put the path to NULL and print the result directly on the screen 
>> there are no results so the string is empty.
>>
>> *Like this:*
>> $filePath = NULL;
>> print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>> $options);
>>
>>
>> If I specify a directory path and print the result on the screen I get a 
>> strange result "252" as a string.
>>
>> *Like this:*
>> $filePath = "reports/test.xml";
>> print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>> $options);
>>
>>
>> If I send the result in the XML file I get this:
>>
>> *Like this:*
>> $filePath = "reports/test.xml";
>> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options
>> );
>>
>> *Result in the XML file:*
>> 
>> 
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>> 
>>
>>
>> There are results, but it's impossible to get them out on the screen.
>>
>> It's really all I have for now!
>>
>> Any ideas ?
>>
>> Thank you !
>>
>>
>>
>>
>>
>>
>>
>> On Wednesday, November 25, 2015 at 9:47:52 AM UTC-5, Josh Radcliff 
>> (AdWords API Team) wrote:
>>
>> Hi Etienne,
>>
>> When you say the result is empty, do you mean it's literally the empty 
>> string ("")/null, or that it simply does not contain any rows of data, like 
>> this?
>>
>> 
>> 
>>   
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>
>> If the latter, then this is most likely due to your campaigns not having 
>> any impressions. You can include campaigns with zero impressions as follows:
>>
>> $reportDefinition->includeZeroImpressions = true;
>>
>> If that doesn't resolve it for you, could you let me know if you've tried 
>> the example *without* setting *filePath* to null, and if so, if the 
>> resulting file contained *any* data (even if it's just the empty 
>> response above)?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Tuesday, November 24, 2015 at 6:14:04 PM UTC-5, 
>> etienne@admobio.com wrote:
>>
>> Hi Josh,
>>
>> I tried many things but there is something I don't understand.
>>
>> I added NULL to $filePath but the result is still empty.
>>
>> With the following code, do you see something that might help me ?
>>
>> I also googled a lot of request but there's no result for such specific 
>> search.
>>
>> Thank you for your help !
>>
>>
>> function getAccountPerformanceReport(AdWordsUser $user) {
>> 
>>  // Load the service.
>>  $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
>>
>>  // Create selector.
>>  $selector = new Selector();
>>  $selector->fields = array(
>>  'CampaignId',
>>  'Impressions');
>>
>>  // Create report definition.
>>  $reportDefinition = new ReportDefinition();
>>  $reportDefinition->selector = $selector;
>>  $reportDefinition->reportName = 'Criteria performance report #' . uniqid
>> ();
>>  $reportDefinition->dateRangeType = 'LAST_7_DAYS';
>>  //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
>>  $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
>>  $reportDefinition->downloadFormat = 'XML';
>>
>>  // Set additional options.
>>  $options = array('version' => ADWORDS_VERSION);
>> 
>>  $filePath = NULL;
>>  
>>  print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>> $options);
>>  //printf("Report with name '%s' was downloaded to '%s'.\n", 
>> $reportDefinition->reportName

Re: Conversions

2015-11-26 Thread etienne . veilleux
Hi Josh !

Ok here is the result of my test:

If I put the path to NULL and print the result directly on the screen there 
are no results so the string is empty.

*Like this:*
$filePath = NULL;
print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
$options);


If I specify a directory path and print the result on the screen I get a 
strange result "252" as a string.

*Like this:*
$filePath = "reports/test.xml";
print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
$options);


If I send the result in the XML file I get this:

*Like this:*
$filePath = "reports/test.xml";
ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);

*Result in the XML file:*


 
 
 
 
 
 
 
 
 
 
 
 



There are results, but it's impossible to get them out on the screen.

It's really all I have for now!

Any ideas ?

Thank you !







On Wednesday, November 25, 2015 at 9:47:52 AM UTC-5, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Etienne,
>
> When you say the result is empty, do you mean it's literally the empty 
> string ("")/null, or that it simply does not contain any rows of data, like 
> this?
>
> 
> 
>   
>   
>   
> 
>   
>   
> 
>   
> 
>
> If the latter, then this is most likely due to your campaigns not having 
> any impressions. You can include campaigns with zero impressions as follows:
>
> $reportDefinition->includeZeroImpressions = true;
>
> If that doesn't resolve it for you, could you let me know if you've tried 
> the example *without* setting *filePath* to null, and if so, if the 
> resulting file contained *any* data (even if it's just the empty response 
> above)?
>
> Thanks,
> Josh, AdWords API Team
>
> On Tuesday, November 24, 2015 at 6:14:04 PM UTC-5, etienne@admobio.com 
>  wrote:
>>
>> Hi Josh,
>>
>> I tried many things but there is something I don't understand.
>>
>> I added NULL to $filePath but the result is still empty.
>>
>> With the following code, do you see something that might help me ?
>>
>> I also googled a lot of request but there's no result for such specific 
>> search.
>>
>> Thank you for your help !
>>
>>
>> function getAccountPerformanceReport(AdWordsUser $user) {
>> 
>>  // Load the service.
>>  $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
>>
>>  // Create selector.
>>  $selector = new Selector();
>>  $selector->fields = array(
>>  'CampaignId',
>>  'Impressions');
>>
>>  // Create report definition.
>>  $reportDefinition = new ReportDefinition();
>>  $reportDefinition->selector = $selector;
>>  $reportDefinition->reportName = 'Criteria performance report #' . uniqid
>> ();
>>  $reportDefinition->dateRangeType = 'LAST_7_DAYS';
>>  //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
>>  $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
>>  $reportDefinition->downloadFormat = 'XML';
>>
>>  // Set additional options.
>>  $options = array('version' => ADWORDS_VERSION);
>> 
>>  $filePath = NULL;
>>  
>>  print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>> $options);
>>  //printf("Report with name '%s' was downloaded to '%s'.\n", 
>> $reportDefinition->reportName, $filePath);
>> }
>>
>>
>> On Tuesday, November 24, 2015 at 4:24:52 PM UTC-5, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi Etienne,
>>>
>>> You can retrieve the report as a string if you simply do not specify a 
>>> *$filePath* when you cal*l ReportUtils::DownloadReport*. In that case, 
>>> the return value from *ReportUtils::DownloadReport* will be the 
>>> contents as a string.
>>>
>>>
>>> https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201509/Reporting/DownloadCriteriaReport.php#L75
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>> On Tuesday, November 24, 2015 at 4:18:04 PM UTC-5, 
>>> etienne@admobio.com wrote:

 Hi Josh,

 I am able to download reports. I wish instead of downloading the 
 reports, retrieve and display the values on the screen. Is it possible ?

 Thank you !

 On Friday, November 20, 2015 at 5:38:24 PM UTC-5, Josh Radcliff 
 (AdWords API Team) wrote:
>
> Hi Etienne,
>
> Reporting works a bit differently, as it simply streams CSV, TSV, or 
> XML results directly (instead of using SOAP). The Reporting Basics 
> guide 
>  gives 
> a good overview of how to run reports, and the examples in the PHP 
> library Reporting folder 
> 
>  show 
> how to use the various PHP utilities for reporting.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, November 20, 2015 at 4:45:49 PM UTC-5, 
> etienne@admobio.com wrote:
>>
>> Hi Josh and thank you for your answer.
>>
>> I completely forgot to add the field in the selector, so it

Re: Conversions

2015-11-24 Thread etienne . veilleux
Hi Josh,

I tried many things but there is something I don't understand.

I added NULL to $filePath but the result is still empty.

With the following code, do you see something that might help me ?

I also googled a lot of request but there's no result for such specific 
search.

Thank you for your help !


function getAccountPerformanceReport(AdWordsUser $user) {

 // Load the service.
 $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);

 // Create selector.
 $selector = new Selector();
 $selector->fields = array(
 'CampaignId',
 'Impressions');
   
 // Create report definition.
 $reportDefinition = new ReportDefinition();
 $reportDefinition->selector = $selector;
 $reportDefinition->reportName = 'Criteria performance report #' . uniqid();
 $reportDefinition->dateRangeType = 'LAST_7_DAYS';
 //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
 $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
 $reportDefinition->downloadFormat = 'XML';

 // Set additional options.
 $options = array('version' => ADWORDS_VERSION);

 $filePath = NULL;
 
 print ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
$options);
 //printf("Report with name '%s' was downloaded to '%s'.\n", 
$reportDefinition->reportName, $filePath);
}


On Tuesday, November 24, 2015 at 4:24:52 PM UTC-5, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Etienne,
>
> You can retrieve the report as a string if you simply do not specify a 
> *$filePath* when you cal*l ReportUtils::DownloadReport*. In that case, 
> the return value from *ReportUtils::DownloadReport* will be the contents 
> as a string.
>
>
> https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201509/Reporting/DownloadCriteriaReport.php#L75
>
> Cheers,
> Josh, AdWords API Team
>
> On Tuesday, November 24, 2015 at 4:18:04 PM UTC-5, etienne@admobio.com 
>  wrote:
>>
>> Hi Josh,
>>
>> I am able to download reports. I wish instead of downloading the reports, 
>> retrieve and display the values on the screen. Is it possible ?
>>
>> Thank you !
>>
>> On Friday, November 20, 2015 at 5:38:24 PM UTC-5, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi Etienne,
>>>
>>> Reporting works a bit differently, as it simply streams CSV, TSV, or XML 
>>> results directly (instead of using SOAP). The Reporting Basics guide 
>>>  gives 
>>> a good overview of how to run reports, and the examples in the PHP 
>>> library Reporting folder 
>>> 
>>>  show 
>>> how to use the various PHP utilities for reporting.
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>> On Friday, November 20, 2015 at 4:45:49 PM UTC-5, 
>>> etienne@admobio.com wrote:

 Hi Josh and thank you for your answer.

 I completely forgot to add the field in the selector, so it always sent 
 me an empty field. It was my mistake ... I think I'm exhausted from my 
 work 
 week.

 *Here's my working code:*
 function test(AdWordsUser $user) {
  
  $service = $user->GetService('ConversionTrackerService',
  ADWORDS_VERSION);
  $selector = new Selector();
  $selector->fields = array(
   'MostRecentConversionDate', 
   'LastReceivedRequestTime'
  );
  
  $data = $service->get($selector);
  
  if (isset($data->entries)) {
   print_r("");
   print_r ($data->entries);
   print_r("");
  }else{
   print "Empty";
  }

 }

 I tried to do the same approach with the reports but the method "Get" 
 like "$data = $service->get($selector);" always returns the following 
 error: *PHP Warning: The method "get" is not supported. *

 So I guess for reports, this is not the right way to proceed.

 Is it correct to assume that this isn't the same approach as 
 "ConversionTrackerService" or other services ?

 Thank you,

 Etienne

 On Friday, November 20, 2015 at 3:40:08 PM UTC-5, Josh Radcliff 
 (AdWords API Team) wrote:
>
> Hi Etienne,
>
> Have you gone through the Working with Objects guide 
> ?
>  
> That explains how to specify which attributes of an object you want to 
> retrieve from a service. The Selector fields list 
> 
>  is 
> also a useful reference.
>
> Regarding the latest conversion date, please make sure that your 
> selector's field list includes *MostRecentConversionDate*, as the API 
> generally only returns values for fields that you have explicitly 
> requested.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, November 20, 2015 at 3:01:4

Re: Conversions

2015-11-24 Thread etienne . veilleux
Hi Josh,

I am able to download reports. I wish instead of downloading the reports, 
retrieve and display the values on the screen. Is it possible ?

Thank you !

On Friday, November 20, 2015 at 5:38:24 PM UTC-5, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Etienne,
>
> Reporting works a bit differently, as it simply streams CSV, TSV, or XML 
> results directly (instead of using SOAP). The Reporting Basics guide 
>  gives a 
> good overview of how to run reports, and the examples in the PHP library 
> Reporting folder 
> 
>  show 
> how to use the various PHP utilities for reporting.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, November 20, 2015 at 4:45:49 PM UTC-5, etienne@admobio.com 
>  wrote:
>>
>> Hi Josh and thank you for your answer.
>>
>> I completely forgot to add the field in the selector, so it always sent 
>> me an empty field. It was my mistake ... I think I'm exhausted from my work 
>> week.
>>
>> *Here's my working code:*
>> function test(AdWordsUser $user) {
>>  
>>  $service = $user->GetService('ConversionTrackerService', ADWORDS_VERSION
>> );
>>  $selector = new Selector();
>>  $selector->fields = array(
>>   'MostRecentConversionDate', 
>>   'LastReceivedRequestTime'
>>  );
>>  
>>  $data = $service->get($selector);
>>  
>>  if (isset($data->entries)) {
>>   print_r("");
>>   print_r ($data->entries);
>>   print_r("");
>>  }else{
>>   print "Empty";
>>  }
>>
>> }
>>
>> I tried to do the same approach with the reports but the method "Get" 
>> like "$data = $service->get($selector);" always returns the following 
>> error: *PHP Warning: The method "get" is not supported. *
>>
>> So I guess for reports, this is not the right way to proceed.
>>
>> Is it correct to assume that this isn't the same approach as 
>> "ConversionTrackerService" or other services ?
>>
>> Thank you,
>>
>> Etienne
>>
>> On Friday, November 20, 2015 at 3:40:08 PM UTC-5, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi Etienne,
>>>
>>> Have you gone through the Working with Objects guide 
>>> ?
>>>  
>>> That explains how to specify which attributes of an object you want to 
>>> retrieve from a service. The Selector fields list 
>>> 
>>>  is 
>>> also a useful reference.
>>>
>>> Regarding the latest conversion date, please make sure that your 
>>> selector's field list includes *MostRecentConversionDate*, as the API 
>>> generally only returns values for fields that you have explicitly requested.
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>> On Friday, November 20, 2015 at 3:01:47 PM UTC-5, 
>>> etienne@admobio.com wrote:

 Hi Nadine !

 Thanks for the info. I had previously tested with "NULL" but I had not 
 paid attention then it worked thank you!

 Now that it's done, I can't find information to retrieve the values 
 returned by the service. Do you have any info on this on how to do this?

 Also, I found the "ConversionTrackerService" that returns many 
 information. I found the "mostRecentConversionDate" field. With this 
 field, 
 I would be able to recover the most recent conversion date and compare it 
 with today's date and then whether a conversion took place in the last 30 
 days.

 The problem is that the field always seems empty! I will do another 
 test but the field still seems empty even if conversion has been made.

 What do you think of these two subjects?

 Thank you,
 Etienne

 On Friday, November 20, 2015 at 1:55:07 PM UTC-5, Nadine Sundquist 
 (AdWords API Team) wrote:
>
> Hi Etienne,
>
> Your English is definitely easy to understand. No worries there. I 
> looked at the PHP code that you have, and I looked at the Report 
> Utils PHP 
> 
>  
> code in the library. It looks like if you set the file path to *null*, 
> then it should skip over fopen(). Have you given that a try?
>
> Cheers,
> Nadine, AdWords API Team 
>
> On Friday, November 20, 2015 at 12:23:56 PM UTC-5, 
> etienne@admobio.com wrote:
>>
>> Hi !
>>
>> Ok I tried several things and in different ways but if I don't 
>> specify filePath, logs always returns me:
>>
>> PHP Warning: fopen (): Filename can not be empty in 
>> src/Google/Api/Ads/AdWords/User/ReportUtils.php
>>
>> For now I'm stuck here. If you have a solution let me know and I will 
>> meanwhile do research.
>>
>> Thank you for your help !

Re: Conversions

2015-11-20 Thread etienne . veilleux
Hi Josh and thank you for your answer.

I completely forgot to add the field in the selector, so it always sent me 
an empty field. It was my mistake ... I think I'm exhausted from my work 
week.

*Here's my working code:*
function test(AdWordsUser $user) {
 
 $service = $user->GetService('ConversionTrackerService', ADWORDS_VERSION);
 $selector = new Selector();
 $selector->fields = array(
  'MostRecentConversionDate', 
  'LastReceivedRequestTime'
 );
 
 $data = $service->get($selector);
 
 if (isset($data->entries)) {
  print_r("");
  print_r ($data->entries);
  print_r("");
 }else{
  print "Empty";
 }

}

I tried to do the same approach with the reports but the method "Get" like "
$data = $service->get($selector);" always returns the following error: *PHP 
Warning: The method "get" is not supported. *

So I guess for reports, this is not the right way to proceed.

Is it correct to assume that this isn't the same approach as 
"ConversionTrackerService" or other services ?

Thank you,

Etienne

On Friday, November 20, 2015 at 3:40:08 PM UTC-5, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Etienne,
>
> Have you gone through the Working with Objects guide 
> ?
>  
> That explains how to specify which attributes of an object you want to 
> retrieve from a service. The Selector fields list 
> 
>  is 
> also a useful reference.
>
> Regarding the latest conversion date, please make sure that your 
> selector's field list includes *MostRecentConversionDate*, as the API 
> generally only returns values for fields that you have explicitly requested.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, November 20, 2015 at 3:01:47 PM UTC-5, etienne@admobio.com 
>  wrote:
>>
>> Hi Nadine !
>>
>> Thanks for the info. I had previously tested with "NULL" but I had not 
>> paid attention then it worked thank you!
>>
>> Now that it's done, I can't find information to retrieve the values 
>> returned by the service. Do you have any info on this on how to do this?
>>
>> Also, I found the "ConversionTrackerService" that returns many 
>> information. I found the "mostRecentConversionDate" field. With this field, 
>> I would be able to recover the most recent conversion date and compare it 
>> with today's date and then whether a conversion took place in the last 30 
>> days.
>>
>> The problem is that the field always seems empty! I will do another test 
>> but the field still seems empty even if conversion has been made.
>>
>> What do you think of these two subjects?
>>
>> Thank you,
>> Etienne
>>
>> On Friday, November 20, 2015 at 1:55:07 PM UTC-5, Nadine Sundquist 
>> (AdWords API Team) wrote:
>>>
>>> Hi Etienne,
>>>
>>> Your English is definitely easy to understand. No worries there. I 
>>> looked at the PHP code that you have, and I looked at the Report Utils 
>>> PHP 
>>> 
>>>  
>>> code in the library. It looks like if you set the file path to *null*, 
>>> then it should skip over fopen(). Have you given that a try?
>>>
>>> Cheers,
>>> Nadine, AdWords API Team 
>>>
>>> On Friday, November 20, 2015 at 12:23:56 PM UTC-5, 
>>> etienne@admobio.com wrote:

 Hi !

 Ok I tried several things and in different ways but if I don't specify 
 filePath, logs always returns me:

 PHP Warning: fopen (): Filename can not be empty in 
 src/Google/Api/Ads/AdWords/User/ReportUtils.php

 For now I'm stuck here. If you have a solution let me know and I will 
 meanwhile do research.

 Thank you for your help !

 PS: Sorry for my English, I speak French from Quebec.

 Etienne

 *Here is my code that works and that allows me to download the report.*
 function test(AdWordsUser $user) {
 
   // Load the service, so that the required classes are available.
   $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);

   // Create selector.
   $selector = new Selector();
   $selector->fields = array('CampaignId');

   //if ($timePeriod == "CUSTOM_DATE") {
   //$selector->dateRange = new DateRange($dateFrom, $dateTo);
   //}

   // Create report definition.
   $reportDefinition = new ReportDefinition();
   $reportDefinition->selector = $selector;
   $reportDefinition->reportName = 'Performance report #' . uniqid();
   $reportDefinition->dateRangeType = 'LAST_7_DAYS';
   //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
   $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
   $reportDefinition->downloadFormat = 'XML';

   // Set additional options.
   $options = array('version' => ADWORDS_VERSION)

Re: Conversions

2015-11-20 Thread etienne . veilleux
Josh Hi and thank you for your answer.

I completely forgot to add the field in the selector, so it always sent me 
an empty field. It was my mistake ... I think I'm exhausted from my work 
week.

*Here's my working code:*
function test(AdWordsUser $user) {
 
 $service = $user->GetService('ConversionTrackerService', ADWORDS_VERSION);
 $selector = new Selector();
 $selector->fields = array(
 'MostRecentConversionDate', 
 'LastReceivedRequestTime'
 );
 
 $data = $service->get($selector);
 
 if (isset($data->entries)) {
 print_r("");
 print_r ($data->entries);
 print_r("");
 }else{
 print "Empty";
 }
 
 echo "ConversionTrackerService";
}

I tried to do the same approach with the reports but the method "Get" like "
$data = $service->get($selector);" always returns the following error: *PHP 
Warning: The method "get" is not supported. *

So I guess for reports, this is not the right way to proceed.

Is it correct to assume that this isn't the same approach as 
"ConversionTrackerService" or other services ?

Thank you,

Etienne





On Friday, November 20, 2015 at 3:40:08 PM UTC-5, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Etienne,
>
> Have you gone through the Working with Objects guide 
> ?
>  
> That explains how to specify which attributes of an object you want to 
> retrieve from a service. The Selector fields list 
> 
>  is 
> also a useful reference.
>
> Regarding the latest conversion date, please make sure that your 
> selector's field list includes *MostRecentConversionDate*, as the API 
> generally only returns values for fields that you have explicitly requested.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, November 20, 2015 at 3:01:47 PM UTC-5, etienne@admobio.com 
>  wrote:
>>
>> Hi Nadine !
>>
>> Thanks for the info. I had previously tested with "NULL" but I had not 
>> paid attention then it worked thank you!
>>
>> Now that it's done, I can't find information to retrieve the values 
>> returned by the service. Do you have any info on this on how to do this?
>>
>> Also, I found the "ConversionTrackerService" that returns many 
>> information. I found the "mostRecentConversionDate" field. With this field, 
>> I would be able to recover the most recent conversion date and compare it 
>> with today's date and then whether a conversion took place in the last 30 
>> days.
>>
>> The problem is that the field always seems empty! I will do another test 
>> but the field still seems empty even if conversion has been made.
>>
>> What do you think of these two subjects?
>>
>> Thank you,
>> Etienne
>>
>> On Friday, November 20, 2015 at 1:55:07 PM UTC-5, Nadine Sundquist 
>> (AdWords API Team) wrote:
>>>
>>> Hi Etienne,
>>>
>>> Your English is definitely easy to understand. No worries there. I 
>>> looked at the PHP code that you have, and I looked at the Report Utils 
>>> PHP 
>>> 
>>>  
>>> code in the library. It looks like if you set the file path to *null*, 
>>> then it should skip over fopen(). Have you given that a try?
>>>
>>> Cheers,
>>> Nadine, AdWords API Team 
>>>
>>> On Friday, November 20, 2015 at 12:23:56 PM UTC-5, 
>>> etienne@admobio.com wrote:

 Hi !

 Ok I tried several things and in different ways but if I don't specify 
 filePath, logs always returns me:

 PHP Warning: fopen (): Filename can not be empty in 
 src/Google/Api/Ads/AdWords/User/ReportUtils.php

 For now I'm stuck here. If you have a solution let me know and I will 
 meanwhile do research.

 Thank you for your help !

 PS: Sorry for my English, I speak French from Quebec.

 Etienne

 *Here is my code that works and that allows me to download the report.*
 function test(AdWordsUser $user) {
 
   // Load the service, so that the required classes are available.
   $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);

   // Create selector.
   $selector = new Selector();
   $selector->fields = array('CampaignId');

   //if ($timePeriod == "CUSTOM_DATE") {
   //$selector->dateRange = new DateRange($dateFrom, $dateTo);
   //}

   // Create report definition.
   $reportDefinition = new ReportDefinition();
   $reportDefinition->selector = $selector;
   $reportDefinition->reportName = 'Performance report #' . uniqid();
   $reportDefinition->dateRangeType = 'LAST_7_DAYS';
   //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
   $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
   $reportDefinition->downloadFormat = 'XML';

   // Set additional options.
   $options = ar

Re: Conversions

2015-11-20 Thread etienne . veilleux
Hi Nadine !

Thanks for the info. I had previously tested with "NULL" but I had not paid 
attention then it worked thank you!

Now that it's done, I can't find information to retrieve the values 
returned by the service. Do you have any info on this on how to do this?

Also, I found the "ConversionTrackerService" that returns many information. 
I found the "mostRecentConversionDate" field. With this field, I would be 
able to recover the most recent conversion date and compare it with today's 
date and then whether a conversion took place in the last 30 days.

The problem is that the field always seems empty! I will do another test 
but the field still seems empty even if conversion has been made.

What do you think of these two subjects?

Thank you,
Etienne

On Friday, November 20, 2015 at 1:55:07 PM UTC-5, Nadine Sundquist (AdWords 
API Team) wrote:
>
> Hi Etienne,
>
> Your English is definitely easy to understand. No worries there. I looked 
> at the PHP code that you have, and I looked at the Report Utils PHP 
> 
>  
> code in the library. It looks like if you set the file path to *null*, 
> then it should skip over fopen(). Have you given that a try?
>
> Cheers,
> Nadine, AdWords API Team 
>
> On Friday, November 20, 2015 at 12:23:56 PM UTC-5, etienne@admobio.com 
>  wrote:
>>
>> Hi !
>>
>> Ok I tried several things and in different ways but if I don't specify 
>> filePath, logs always returns me:
>>
>> PHP Warning: fopen (): Filename can not be empty in 
>> src/Google/Api/Ads/AdWords/User/ReportUtils.php
>>
>> For now I'm stuck here. If you have a solution let me know and I will 
>> meanwhile do research.
>>
>> Thank you for your help !
>>
>> PS: Sorry for my English, I speak French from Quebec.
>>
>> Etienne
>>
>> *Here is my code that works and that allows me to download the report.*
>> function test(AdWordsUser $user) {
>> 
>>   // Load the service, so that the required classes are available.
>>   $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
>>
>>   // Create selector.
>>   $selector = new Selector();
>>   $selector->fields = array('CampaignId');
>>
>>   //if ($timePeriod == "CUSTOM_DATE") {
>>   //$selector->dateRange = new DateRange($dateFrom, $dateTo);
>>   //}
>>
>>   // Create report definition.
>>   $reportDefinition = new ReportDefinition();
>>   $reportDefinition->selector = $selector;
>>   $reportDefinition->reportName = 'Performance report #' . uniqid();
>>   $reportDefinition->dateRangeType = 'LAST_7_DAYS';
>>   //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
>>   $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
>>   $reportDefinition->downloadFormat = 'XML';
>>
>>   // Set additional options.
>>   $options = array('version' => ADWORDS_VERSION);
>>
>>   $filePath = "reports/test.xml";
>>  
>>   // Download report.
>>   ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>> $options);
>>   
>>   printf("Report with name '%s' was downloaded to '%s'.\n", 
>> $reportDefinition->reportName, $filePath);
>> }
>>
>>
>>
>>
>>
>> On Friday, November 20, 2015 at 9:58:12 AM UTC-5, Anthony Madrigal wrote:
>>>
>>> Hi Etienne,
>>>
>>> I am not 100% certain of the PHP equivalent since I focus primarily on 
>>> Java, but I will help as best I can. I believe that for 
>>> *Lib\Util\ReportUtils.DownloadReport 
>>> *for the PHP example 
>>> ,
>>>  
>>> the return type is "if path isn't specified the contents of the report, 
>>> otherwise the size in bytes of the downloaded report". In other words, if 
>>> you do not provide the file path, it will be returned as a string.
>>>
>>> Regards,
>>> Anthony
>>> AdWords API Team
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4e14bca7-9ca9-41f5-bfdd-1ff5f55c35a4%40googlegroups.com.
For more options, visit ht

Re: Conversions

2015-11-20 Thread etienne . veilleux
Hi !

Ok I tried several things and in different ways but if I don't specify 
filePath, logs always returns me:

PHP Warning: fopen (): Filename can not be empty in 
src/Google/Api/Ads/AdWords/User/ReportUtils.php

For now I'm stuck here. If you have a solution let me know and I will 
meanwhile do research.

Thank you for your help !

PS: Sorry for my English, I speak French from Quebec.

Etienne

*Here is my code that works and that allows me to download the report.*
function test(AdWordsUser $user) {

  // Load the service, so that the required classes are available.
  $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);

  // Create selector.
  $selector = new Selector();
  $selector->fields = array('CampaignId');
   
  //if ($timePeriod == "CUSTOM_DATE") {
  //$selector->dateRange = new DateRange($dateFrom, $dateTo);
  //}

  // Create report definition.
  $reportDefinition = new ReportDefinition();
  $reportDefinition->selector = $selector;
  $reportDefinition->reportName = 'Performance report #' . uniqid();
  $reportDefinition->dateRangeType = 'LAST_7_DAYS';
  //$reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
  $reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
  $reportDefinition->downloadFormat = 'XML';

  // Set additional options.
  $options = array('version' => ADWORDS_VERSION);

  $filePath = "reports/test.xml";
 
  // Download report.
  ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options
);
  
  printf("Report with name '%s' was downloaded to '%s'.\n", 
$reportDefinition->reportName, $filePath);
}





On Friday, November 20, 2015 at 9:58:12 AM UTC-5, Anthony Madrigal wrote:
>
> Hi Etienne,
>
> I am not 100% certain of the PHP equivalent since I focus primarily on 
> Java, but I will help as best I can. I believe that for 
> *Lib\Util\ReportUtils.DownloadReport 
> *for the PHP example 
> ,
>  
> the return type is "if path isn't specified the contents of the report, 
> otherwise the size in bytes of the downloaded report". In other words, if 
> you do not provide the file path, it will be returned as a string.
>
> Regards,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d16a7a9c-40d8-437d-be06-ceaf4dab818b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CampaignService with AdvertisingChannelType

2015-11-20 Thread etienne . veilleux
Hi,

Ok so I was finally able to retrieve the Boolean value of each network.

I add my piece of code if it can help someone else.

Thank you !

//Definition

//Ads will be served with Google.com search results
//targetGoogleSearch

//Ads will be served on partner sites in the Google Search Network
//targetSearchNetwork

//Ads will be served on specified placements in the Google Display Network
//targetContentNetwork

//Ads will be served on the Google Partner Network
//targetPartnerSearchNetwork

$x = $user->GetService('CampaignService', ADWORDS_VERSION);
$selector = new Selector();
$selector->fields = array(
 'Id', 
 'Name', 
 'Status', 
 'TargetGoogleSearch', 
 'TargetSearchNetwork', 
 'TargetContentNetwork', 
 'TargetPartnerSearchNetwork'
);

$campaign = $x->get($selector);

print_r("");
print_r($campaign->entries);
print_r("");

//Or you can get value with for each
foreach ($campaign->entries as $result) {
  printf("Id: %s", $result->id);
  printf("Name: %s", $result->name);
  printf("Status: %s", $result->status);
  printf("Google.com search results: %s", $result->
networkSetting->targetGoogleSearch);
}



On Thursday, November 19, 2015 at 4:05:57 PM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> The campaign's AdvertisingChannelType for *Search Network with Display 
> Select* is Search. In order to differentiate whether or not it is only a 
> search network or search *and *display network, use the fields 
> *targetSearchNetwork 
> *and *targetContentNetwork *in the NetworkSetting 
> .
>  
> These are boolean values and should both be set to *true* if they fit 
> this network type.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1e638e4c-0483-4eb7-b34c-6f080ba38a3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CampaignService with AdvertisingChannelType

2015-11-20 Thread etienne . veilleux
Hi,

Ok so I was finally able to retrieve the Boolean value of each network.

I add my piece of code if it can help someone else.

Thank you !

//Definition


//Ads will be served with Google.com search results
//targetGoogleSearch


//Ads will be served on partner sites in the Google Search Network
//targetSearchNetwork


//Ads will be served on specified placements in the Google Display Network
//targetContentNetwork


//Ads will be served on the Google Partner Network
//targetPartnerSearchNetwork


$x = $user->GetService('CampaignService', ADWORDS_VERSION);
$selector = new Selector();
$selector->fields = array(
 'Id', 
 'Name', 
 'Status', 
 'TargetGoogleSearch', 
 'TargetSearchNetwork', 
 'TargetContentNetwork', 
 'TargetPartnerSearchNetwork'
);


$campaign = $x->get($selector);


print_r("");
print_r($campaign->entries);
print_r("");


//Or you can get value with for each
foreach ($campaign->entries as $result) {
  printf("Id: %s", $result->id);
  printf("Name: %s", $result->name);
  printf("Status: %s", $result->status);
  printf("Google.com search results: %s", $result->
networkSetting->targetGoogleSearch);
}



On Thursday, November 19, 2015 at 4:05:57 PM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> The campaign's AdvertisingChannelType for *Search Network with Display 
> Select* is Search. In order to differentiate whether or not it is only a 
> search network or search *and *display network, use the fields 
> *targetSearchNetwork 
> *and *targetContentNetwork *in the NetworkSetting 
> .
>  
> These are boolean values and should both be set to *true* if they fit 
> this network type.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8c83d3d6-1699-45f9-b08d-4d88ca650382%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CampaignService with AdvertisingChannelType

2015-11-20 Thread etienne . veilleux
Hi,

Hi,

Ok so I was finally able to retrieve the Boolean value of each network.

I add my piece of code if it can help someone else.

Thank you !

//Definition

//Ads will be served with Google.com search results
//targetGoogleSearch

//Ads will be served on partner sites in the Google Search Network
//targetSearchNetwork

//Ads will be served on specified placements in the Google Display Network
//targetContentNetwork

//Ads will be served on the Google Partner Network
//targetPartnerSearchNetwork

$x = $user->GetService('CampaignService', ADWORDS_VERSION);
$selector = new Selector();
$selector->fields = array(
 'Id', 
 'Name', 
 'Status', 
 'TargetGoogleSearch', 
 'TargetSearchNetwork', 
 'TargetContentNetwork', 
 'TargetPartnerSearchNetwork'
);

$campaign = $x->get($selector);

print_r("");
print_r($campaign->entries);
print_r("");

//Or you can get value with for each
foreach ($campaign->entries as $result) {
  printf("Id: %s", $result->id);
  printf("Name: %s", $result->name);
  printf("Status: %s", $result->status);
  printf("Google.com search results: 
%s", $result->networkSetting->targetGoogleSearch);
}





On Thursday, November 19, 2015 at 4:05:57 PM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> The campaign's AdvertisingChannelType for *Search Network with Display 
> Select* is Search. In order to differentiate whether or not it is only a 
> search network or search *and *display network, use the fields 
> *targetSearchNetwork 
> *and *targetContentNetwork *in the NetworkSetting 
> .
>  
> These are boolean values and should both be set to *true* if they fit 
> this network type.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3c3ad667-7ab1-479d-9b95-34b72b74bf05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Conversions

2015-11-19 Thread etienne . veilleux
Hi,

I'm glad to hear that it's possible.

I searched for an equivalent of "response.getAsString ()". I work with PHP, 
do you have any examples?

Thank you for your help!

Etienne

On Thursday, November 19, 2015 at 4:34:53 PM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> Yes, you can get the report returned to you as a string. How to do it 
> depends on which library you use. For example, in this Java example 
> ,
>  
> you can change this line from* response.saveToFile(reportFile); *to
> * response.getAsString().*
>
> Please let me know if you need more assistance. 
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d4be1a76-2f23-4c4a-9f81-dc1a7cc0b87f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Conversions

2015-11-19 Thread etienne . veilleux
Hi Anthony,

Ok I used the report and I am now able to download them. Now, can I print 
the results directly on the screen rather than download the report?

Thank you !



On Wednesday, November 18, 2015 at 2:32:53 PM UTC-5, Anthony Madrigal wrote:
>
> Hi Etienne,
>
> For your use case, I recommend using a report instead of an API service. 
> The particular report type you should use is the Account Performance 
> Report 
> .
>  
> Make sure to include the field *Conversions *and use the date range 
> *LAST_30_DAYS.*
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e5fcdfc4-4179-485f-b7c6-d4548274279c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CampaignService with AdvertisingChannelType

2015-11-19 Thread etienne . veilleux
Hi,

We are programming a web application that must determine whether the 
campaigns of a customer display on both network at the same time (Search 
and Display) which is not optimal.

There is something I can not understand ... We have campaigns that appear 
on both networks at once.

The problem is that the following code display only one of the two 
networks, even if the campaign is available on two networks.

Do you have an idea ?

Thank you !

*Code:*
function getCampaign(AdWordsUser $user) {
 $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION);
 $selector = new Selector();
 $selector->fields = array('Id','Name', 'Status', 'AdvertisingChannelType');
 // Filter out deleted criteria.
//$selector->predicates[] = new Predicate('Status', 'NOT_IN', 
array('DELETED', 'PAUSED'));
 
 $page = $campaignService->get($selector);


 print_r("");
 print_r($page->entries);
 print_r("");
}


*Result:* (This campaign is on both networks but displays only one)
[0] => Campaign Object
(
[id] => 9806
[name] => xxx
[status] => ENABLED
[servingStatus] => 
[startDate] => 
[endDate] => 
[budget] => 
[conversionOptimizerEligibility] => 
[adServingOptimizationStatus] => 
[frequencyCap] => 
[settings] => 
[advertisingChannelType] => SEARCH
[advertisingChannelSubType] => 
[networkSetting] => 
[labels] => 
[biddingStrategyConfiguration] => 
[forwardCompatibilityMap] => 
[trackingUrlTemplate] => 
[urlCustomParameters] => 
)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f9b33091-5b13-4aa8-9211-c3ad1887be71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Conversions

2015-11-18 Thread etienne . veilleux
Hi,

I want to know how I can find out if there at least 1 conversion within a 
account in the last 30 days.

I am familiar with "GetService ('CampaignService' ADWORDS_VERSION);" but I 
don't know what to look for to get that kind of information.

Thank you in advance for your help!

Etienne

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dcacbfee-f208-41e7-84c2-728353a11aff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Determining whether a campaign targeting the search network, or the display network

2015-11-18 Thread etienne . veilleux
Hi and thank you I can now retrieve the "channel type".

Good day !

On Wednesday, November 18, 2015 at 9:26:44 AM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> In order to get the network type of your campaigns, select the field 
> AdvertisingChannelType 
> 
>  in 
> your selector in the CampaignService.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cb5e441b-80d2-4333-84d5-55c39ae4b4ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Determining whether a campaign targeting the search network, or the display network

2015-11-17 Thread etienne . veilleux
Hi,

I'm trying to determine whether a campaign targeting the search network or 
the display network, but I don't know which service to use.

I am able to get the information of a campaign with "CampaignService".

How can I get this kind of data?

I am working with PHP.

Thank you !

This is the way I get campaign informations:

function getCampaign(AdWordsUser $user) {
$campaignService = $user->GetService('CampaignService', 
ADWORDS_VERSION);
$selector = new Selector();
$selector->fields = array('Id','Name', 'Status');
// Filter out deleted criteria.
//$selector->predicates[] = new Predicate('Status', 'NOT_IN', 
array('DELETED', 'PAUSED'));
 
$page = $campaignService->get($selector);
 
foreach ($page->entries as $campaign) {
printf("%s", $campaign->id);
printf("%s", $campaign->name);
printf("%s", $campaign->status);
} 
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ddb6e3cc-e33e-48b0-af3d-97ba2cf5d7e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords API grant access

2015-10-14 Thread etienne . veilleux
Hi and thank you for your answer.

My problem was that I did not request to get the customer Id based on the 
OAuth credentials.

Now I have this in my code which allows me to retrieve the customer id:


$user = new AdWordsUser();

$user->SetOAuth2Info(array(
 "client_id" => $clientId,
 "client_secret" => $clientSecret,
 "access_token" => $access_token,
 "refresh_token" => $refresh_token
));

$customerService = $user->GetService('CustomerService');
$cust = $customerService->get();
$user->setCustomerClientId( $cust->customerId );

For now I have everything in hand to move forward. Thank you very much for 
your useful information!

Thank you,
Etienne




On Wednesday, October 14, 2015 at 9:22:46 AM UTC-4, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> Is the issue that:
>
> a. You aren't getting back the OAuth credential from your 
> *GetOAuth2Credential* call?
>
> OR
>
> b. You are getting back the OAuth credential, but you're not sure what to 
> do next?
>
> If a), then I'd recommend going through the PHP library's OAuth2 guide 
> .
>
> If b), then the Making Your First Request guide 
>  has some 
> helpful instructions for each client library. Just make sure you click the 
> *PHP* tab, and the guide will show you how to configure the library and 
> make an API request.
>
> Also, you mentioned that you wanted to get account information based on 
> the OAuth credentials. Each user is associated with only *one* AdWords 
> account (either a Manager Account 
>  or a regular AdWords 
> account), and you can get that account's information by issuing a 
> CustomerService.get 
> 
>  call. 
> This will give you back the clientCustomerId 
> 
>  (among 
> other things) of the account associated with your OAuth credentials.
>
> Hope that helps!
>
> Cheers,
> Josh, AdWords API Team
>
> On Tuesday, October 13, 2015 at 3:14:15 PM UTC-4, etienne...com wrote:
>>
>> Hi Umesh and thank you for your response.
>>
>> looked at the link you sent me and in fact the code I have included in my 
>> original publication does just that. The visitor is sent to an access 
>> request page to the Google server and the visitor is sent back to my page 
>> with an authorization code.
>>
>> I use this snippet of code to request access to the account of the 
>> visitor:
>>
>> $ user = new AdWordsUser ();
>> $ user-> LogAll ();
>> $ user-> SetOAuth2Info (array (
>> "client_id" => $ clientId,
>> "client_secret" => $ clientSecret
>> ));
>>
>>
>> // Generate an authorization callback URL Given the URL
>> authUrl GetOAuth2Credential $ = ($ user, $ callbackUrl);
>> // header ("Location:" $ authUrl.);
>> echo '  Start process';
>>
>>
>> Look at my complete code in the original publication.
>>
>> My code, I think is good because it returns an authorization code. I 
>> don't understand what I am doing wrong.
>>
>> I am open to any proposal.
>>
>> Thank you !
>>
>> On Friday, October 9, 2015 at 4:07:51 PM UTC-4, Umesh Dengale wrote:
>>>
>>> Hello,
>>>
>>> The user has to grant access to their manager account(MCC) to get access 
>>> to their AdWords accounts information. Please go through the OAuth2.0 
>>> for Web Server Applications guide 
>>>  for 
>>> more details.
>>>
>>> Thanks,
>>> Umesh, AdWords API Team.
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8b2dc701-ba96-4935-b75b-d785745ba896%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adwords API grant access

2015-10-13 Thread etienne . veilleux
Hi Umesh and thank you for your response.

looked at the link you sent me and in fact the code I have included in my 
original publication does just that. The visitor is sent to an access 
request page to the Google server and the visitor is sent back to my page 
with an authorization code.

I use this snippet of code to request access to the account of the visitor:

$ user = new AdWordsUser ();
$ user-> LogAll ();
$ user-> SetOAuth2Info (array (
"client_id" => $ clientId,
"client_secret" => $ clientSecret
));


// Generate an authorization callback URL Given the URL
authUrl GetOAuth2Credential $ = ($ user, $ callbackUrl);
// header ("Location:" $ authUrl.);
echo '  Start process';


Look at my complete code in the original publication.

My code, I think is good because it returns an authorization code. I don't 
understand what I am doing wrong.

I am open to any proposal.

Thank you !

On Friday, October 9, 2015 at 4:07:51 PM UTC-4, Umesh Dengale wrote:
>
> Hello,
>
> The user has to grant access to their manager account(MCC) to get access 
> to their AdWords accounts information. Please go through the OAuth2.0 for 
> Web Server Applications guide 
>  for 
> more details.
>
> Thanks,
> Umesh, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f9c0524a-7bb5-4c67-9f92-e1090dad9c4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adwords API grant access

2015-10-09 Thread etienne . veilleux
Hi everybody !

I'm new to Adwords API and on this forum. Feel free to comment if necessary!

I am currently developing a small web application that allows a visitor to 
give me access to its Adwords account then I am able to retrieve data from 
its campaigns.

I also need to detect if the customer has several accounts in order to make 
him choose from a list.

I read and tried a lot of documentation and I understand the principle of 
authentication.

I'm currently stuck and I can not find answer to my problems.

Here's the example of the current code which I work. This allows a user to 
authorize and then return it to my page and then I am able to retrieve an 
access token and a refresh token.

My problem is that I'm not able to retrieve information on the visitor and 
I dont know how to launch a first query to retrieve a list of user accounts.

Any ideas?

Thank you !



http://www..com";;

function GetOAuth2Credential($user, $callbackUrl) {
try{
$redirectUri = $callbackUrl;
$offline = TRUE;
$extra_para = array('approval_prompt' => 'force');
// Get the authorization URL for the OAuth2 token.
// Pass in a redirect URL back to the application,
// Passing true for the second parameter ($offline) will provide us a 
refresh
// token which can used be refresh the access token when it expires.
$OAuth2Handler = $user->GetOAuth2Handler();
$authorizationUrl = 
$OAuth2Handler->GetAuthorizationUrl($user->GetOAuth2Info(), $redirectUri, 
$offline, $extra_para);
}
catch(Exception $e)
{
print_r($e->getMessage());
}
return $authorizationUrl;
}

if ($_REQUEST['code']){
$authCode = $_REQUEST['code'];
// 
// Generate
// 
$url = "https://accounts.google.com/o/oauth2/token";;
$params = array(
"code" => $authCode,
"client_id" => $clientId,
"client_secret" => $clientSecret,
"redirect_uri" => $callbackUrl,
"grant_type" => "authorization_code"
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt($curl, CURLOPT_ENCODING, "");
$curlData = curl_exec($curl);
curl_close($curl);
$result = json_decode ($curlData);
// print_r($result);
$access_token = $result->access_token;
$refresh_token = $result->refresh_token;
$token_type = $result->token_type;
$expires_in = $result->expires_in;
echo "General informations";
echo "My client id --> ".$clientId;
echo "My secret key --> ".$clientSecret;
echo "Callback url --> ".$callbackUrl;
echo "";
echo "Autorisation code";
echo "Auth code --> ".$authCode;
echo "";
echo "Generate auth token";
echo "Access token --> ".$access_token;
echo "Refresh token --> ".$refresh_token;
echo "Token type --> ".$token_type;
echo "Expires in --> ".$expires_in;
echo "";
// 
// I need to access user data. Whats next ?
// 
}
else
{
// Create a new user and set the oAuth settings
$user = new AdWordsUser();
$user->LogAll();
$user->SetOAuth2Info(array(
"client_id" => $clientId,
"client_secret" => $clientSecret
));
// Generate an authorization URL given the callback URL
$authUrl = GetOAuth2Credential($user, $callbackUrl);
//header("Location:". $authUrl);
echo 'Start process';

}
?>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/95ee3a35-2d27-4cac-81f6-37a2b6c7a03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.