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 

Re: Cannot get removed FeedMapping using FeedMappingService

2015-11-24 Thread Petter
Hi Josh,

I see service API response *FeedMapping *is *ENABLED*. But on the AdWords 
website it is *REMOVED.*

On Tuesday, November 24, 2015 at 8:27:36 PM UTC+7, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> Thanks for sending over the IDs. The issue here is that that *FeedMapping* is 
> actually *ENABLED*.
>
> 
>   34553692
>   31616776
>   3
>   ENABLED
> 
>
> So your predicate on *Status EQUALS REMOVED* is excluding that object.
>
> Cheers,
> Josh, AdWords API Team
>
> On Monday, November 23, 2015 at 9:52:55 PM UTC-5, Petter wrote:
>>
>> Hi Josh,
>>
>> Please check information of Feed as following:
>>
>> FeedId = 31616776
>> FeedMappingId = 34553692
>>
>> Thanks.
>>
>> On Tuesday, November 24, 2015 at 12:19:14 AM UTC+7, Josh Radcliff 
>> (AdWords API Team) wrote:
>>>
>>> Hi,
>>>
>>> Could you send me the feed ID or feed mapping ID of the *FeedMapping* that 
>>> you are expecting to see in the result?
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Sunday, November 22, 2015 at 8:17:17 PM UTC-5, Petter wrote:

 Hi Umesh,

 This is selector in my code:

  var selector = new Selector
 {
 fields = new[] { "AttributeFieldMappings", "FeedId", 
 "FeedMappingId", "PlaceholderType", "Status" },
 predicates = new[]
  {
  new Predicate { field = 
 "PlaceholderType", @operator = PredicateOperator.EQUALS, values = new[] { 
 "3" } },
  new Predicate { field = "Status", 
 @operator = PredicateOperator.EQUALS, values = new[] { "REMOVED" } }
  }
 };

 Thanks.

 On Friday, November 20, 2015 at 11:29:49 PM UTC+7, Umesh Dengale wrote:
>
> Hello,
>
> Could you specify the list of fields to select from the FeedMapping 
> 
>  in 
> your code?  Please see this link 
> 
>  for 
> selector fields 
> 
>  available 
> to the FeedMappingService. Please check out Selector 
> 
>  document 
> for more details. 
>
> Regards,
> 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/18260146-9fd7-45d7-b8f9-f3fe9604f1cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Failed to remove CrmBasedUserList

2015-11-24 Thread Anthony Madrigal
Hi,

Unfortunately, the AdWordsUserList service does not support the REMOVE 

 operator. 

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/032b57fc-5abf-414d-bd8e-f1aeb5bacf86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue about Youtube Video Media creation

2015-11-24 Thread Anthony Madrigal
Hi Youssef,

The reason you are getting this error is because the upload 

 method 
of the MediaService only supports *Image *and* MediaBundle *types. As a 
workaround, I suggest uploading your video through the AdWords UI, then use 
the API to obtain the media Id so that you can use it for the template ad. 

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/fc9b6d5e-1eb1-4e5e-93db-930c18201432%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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-24 Thread Josh Radcliff (AdWords API Team)
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.veill...@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: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 

Re: AdWords API Criteria Performance Report - YouTube InSearch Data inclusion

2015-11-24 Thread Josh Radcliff (AdWords API Team)
Hi,

Sorry, I emailed you twice privately -- once on Nov 4th and again on Nov 
6th, but I did not get a response back to either email. In those emails, I 
mentioned that I received the private message with your attachment, but 
since it's a CSV there's no highlighting preserved. Could you send it over 
as a Google Sheet or Excel file so I can see your highlights?

Thanks,
Josh, AdWords API Team

On Tuesday, November 24, 2015 at 2:44:21 PM UTC-5, BraveAdWordsDeveloper 
wrote:
>
> any updates? this is going on for weeks now and still no feedback.
>
> On Monday, October 26, 2015 at 4:22:37 PM UTC-4, Sean Busa wrote:
>>
>> Hi, 
>>
>> Since last week we started seeing YouTube InSearch campaign results 
>> included in the Criteria Performance Report but not InDisplay.
>> Is this an expected functionality? The data comes down with zero clicks 
>> but includes impressions and cost.
>> So when I match the data against the Account level data in the 
>> Account_Performance_Report the clicks don't match.
>>
>>
>> Thanks and regards, 
>>
>> Sean
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b9cf0168-7912-48bc-a7e1-bf7a77164e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid grant when using Token Refresh

2015-11-24 Thread jnewman0817
Today we had 2 invalid grants, both authorized yesterday. I did what you 
said and logged into the account and checked  https://myaccount.google.com/ *-> 
Connected apps & sites -> Manage apps. *Both had 'has access to manage your 
AdWords campaigns'. 

Starting with the first one, I logged into the account and checked access. 
After that, I attempted to refresh the access token with the supposedly 
'invalid' refresh token and to my surprise it worked fine. Got a new access 
token and was able to make api calls again. Before I logged in and checked 
the second account I attempted to refresh the access token, but it failed 
with 'invalid grant'. So, I logged in and checked if we had access, to no 
surprise we did. After verifying access I attempted to refresh the access 
token and again it worked fine, no errors. 

In short, both were returning 'invalid grant' and after verifying access 
both were able to use there refresh tokens to retrieve a new access token; 
rather than having to re-oauth each.  By the way we are using the .Net 
client library.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/62c0308a-8c5c-44c7-93a6-7474591df91d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Object of class MonthlySearchVolume could not be converted to string

2015-11-24 Thread Umesh Dengale
Hello,

The MonthlySearchVolumeAttribute.value 

 is 
of type array of MonthlySearchVolume 
.
 
The MonthlySearchVolume 

 is 
a type and to access its properties (e.g count 

, month 

, year 

 etc.) 
you could specify like $monthlysearches[1].count.

Regards,
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/96f7c1a3-663c-4d4c-b610-8f41f60d7b5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdWords API Criteria Performance Report - YouTube InSearch Data inclusion

2015-11-24 Thread BraveAdWordsDeveloper
any updates? this is going on for weeks now and still no feedback.

On Monday, October 26, 2015 at 4:22:37 PM UTC-4, Sean Busa wrote:
>
> Hi, 
>
> Since last week we started seeing YouTube InSearch campaign results 
> included in the Criteria Performance Report but not InDisplay.
> Is this an expected functionality? The data comes down with zero clicks 
> but includes impressions and cost.
> So when I match the data against the Account level data in the 
> Account_Performance_Report the clicks don't match.
>
>
> Thanks and regards, 
>
> Sean
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/832ffd82-01bb-4882-910a-c5e85d731e77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get AdWords API application approved?

2015-11-24 Thread jslim
My superior has submitted the application in few weeks ago. Until now still 
no  response yet.
What should I do to get the application approve? Because now I'm developing 
the reporting feature,
so I need the live data to test it.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a11a9ca0-7691-4480-a1c2-5818552d8914%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Failed to remove CrmBasedUserList

2015-11-24 Thread Liqun Chen
I tried a few times to remove the existing crm based user lists. but got 
the error OperatorError.OPERATOR_NOT_SUPPORTED.  Is the REMOVE operator 
supported?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1a76d231-da20-4613-965f-e887e1b2b244%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: msi for Adwords editor v11.2.2

2015-11-24 Thread Umesh Dengale
Hi Dave,

This forum is related to the AdWords API. Please post your question in the 
AdWords 
community 
. 
Someone from AdWords product support will help.

Cheers,
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/90684e7f-6f42-462c-8998-1e43de96fec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid grant when using Token Refresh

2015-11-24 Thread Josh Radcliff (AdWords API Team)
Hi,

In the case of the account where you confirmed it says you have access, did 
you retry the request to get a new access token, and if so, how many times 
and after waiting how long?

Also, just in case it's relevant, could you let me know which client library 
 you're 
using (if any)?

Thanks,
Josh, AdWords API Team

On Tuesday, November 24, 2015 at 9:36:00 AM UTC-5, jnewman0...@gmail.com 
wrote:
>
> We have had a couple cases where the account is over a year old so that 
> could be a reason for those. However, we had an account yesterday made and 
> today we go to refresh and it failed with invalid grant. I checked  
> https://myaccount.google.com/ *-> Connected apps & sites -> Manage apps *and 
> it says we have access to there Google Adwords and we are allowed to manage 
> there adwords campaigns with authorization date of Yesterday, 1:36 PM. As 
> far as I can tell none of the accounts that we have fixed by re-authorizing 
> have had any problems. 
>
> On Friday, November 20, 2015 at 2:29:20 PM UTC-5, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Is it possible that you are seeing a large # of invalidated refresh 
>> tokens because they have not been used for 6 months 
>> ?
>>
>> If that does not explain the invalid grant errors:
>>
>> 1. Could you let me know if this error has occurred again on any accounts 
>> where you generated a *new* refresh token?
>>
>> 2. Once you get an invalid grant error for a given account, are you able 
>> to check the status of the grant via https://myaccount.google.com/ *-> 
>> Connected apps & sites -> Manage apps*? I'd be curious to know what you 
>> see there in this case. Below is what that page will look like for an 
>> account that has granted access to a project named *My AdWords Web 
>> Project*.
>>
>>
>> 
>>
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Friday, November 20, 2015 at 11:08:38 AM UTC-5, jnewm...@gmail.com 
>> wrote:
>>>
>>> Well that certainly can't be the problem because we don't get new 
>>> refresh tokens except when we oauth an account. Our process goes as 
>>> follows: Oauth an account which gives us an access and refresh token. We 
>>> use the access token till it expires and then use the refresh token to 
>>> acquire a new access token. If the account starts to show "invalid grant" 
>>> we oauth again and get a new access and refresh token. This is vicious 
>>> cycle is causing our app to break for many clients when "invalid grant" 
>>> occurs. 
>>>
>>> On Tuesday, November 17, 2015 at 4:48:16 PM UTC-5, Umesh Dengale wrote:

 Hello,

 There is currently a limit of 25 refresh tokens per user account per 
 client 
 . 
 Please check out token expiration section from the Using OAuth 2.0 to 
 Access Google APIs 
  guide for 
 more details.

 Regards,
 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/e8669f82-de99-4bc7-8c82-a9276a92a396%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


msi for Adwords editor v11.2.2

2015-11-24 Thread Dave Cunningham
Hi Adwords Developers

I work for a company that is a heavy user of Adwords Editor. With previous 
versions we have downloaded the msi, repackaged with certain variables and 
then added it to a GPO so users see it in 'Install a program from the 
network' in Programs and Features in Windows.
I have just downloaded the latest version 11.2.2 and found that it is an 
exe that when you install it it goes online for components. 
Can you tell me if a full msi is available or if you can suggest some 
switches I can use from a command line with the exe to download a full msi 
of v11.2.2.

Many Thanks
Dave

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/caa26e87-8e7f-4d6c-b3f6-7a9f6acc2ef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: API developments for Trueview

2015-11-24 Thread Michael Mertz
Has anyone heard any news of whether / when Trueview campaign or 
YouTube campaign reporting will become available using Adwords API?  Thank 
You!!


On Monday, August 3, 2015 at 7:09:09 AM UTC-7, Justin Coon wrote:
>
> Any updates on this?
>
> On Thursday, May 7, 2015 at 9:27:15 AM UTC-5, Bernardo Alves wrote:
>>
>> Hi,
>>
>> Since it's been a while since the last time this was asked, I'd like to 
>> know if there's any progress regarding the development of Trueview campaign 
>> reporting using Adwords API.
>>
>> Many thanks,
>>
>> Bernardo Alves
>>
>> quinta-feira, 20 de Junho de 2013 às 13:25:34 UTC+1, David H escreveu:
>>>
>>> Hi 
>>>
>>> Sorry I know this has been asked before, but I wondered if it was any 
>>> closer? When will we be able to pull trueview through the API? Or is there 
>>> an alternative script or automation that can get daily spends?
>>>
>>> Thanks
>>>
>>> David
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/680f6242-c71d-4239-a927-d18add90ad0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Failed to remove CrmBasedUserList

2015-11-24 Thread tochenliqun
Thanks for letting me know. Btw, I tried to remove it on the google client UI 
manually which works.

Sent from my iPhone

> On Nov 24, 2015, at 4:37 PM, Anthony Madrigal 
>  wrote:
> 
> Hi,
> 
> Unfortunately, the AdWordsUserList service does not support the REMOVE 
> operator. 
> 
> 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 a topic in the Google 
> Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/adwords-api/iUAA_WtJEjc/unsubscribe.
> To unsubscribe from this group and all its topics, 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/032b57fc-5abf-414d-bd8e-f1aeb5bacf86%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CE89701F-23C4-4F85-8CEE-66BFBB762A2E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: TargetingIdeaService range of dates

2015-11-24 Thread Josh Radcliff (AdWords API Team)
Hi,

There have not been any changes to *TargetingIdeaService* around dates. The 
service still only returns *TARGETED_MONTHLY_SEARCHES* for the last 12 
months.

Best regards,
Josh, AdWords API Team

On Tuesday, November 24, 2015 at 8:44:28 AM UTC-5, Deepa Varma wrote:
>
> Hi,
>
>
>  Any update in this topic ? Do we have option to give date range 
> in TargetingIdeaService in version v201509 ? Please help 
>
>
>
> On Wednesday, 3 September 2014 01:59:15 UTC+5:30, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> The API does not support custom date ranges. The closest you can get to 
>> approximating that functionality is to include the 
>> *TARGETED_MONTHLY_SEARCHES* attribute type you mentioned in your request.
>>
>> Best regards,
>> Josh, AdWords API Team
>>
>> On Tuesday, September 2, 2014 4:55:29 AM UTC-4, Alex wrote:
>>>
>>> Hello
>>>
>>> I am trying to use PHP TargetingIdeaService (v201402) to get 
>>> TARGETED_MONTHLY_SEARCHES. 
>>> Is it possible to restrict the result of a range of dates, as it happens 
>>> in KeywordPlanner ( http://gyazo.com/568f5499d1096ba05e776a05c135b4f9 
>>> )? 
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/12f711ae-b8f2-4471-8e93-18de442494f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot get removed FeedMapping using FeedMappingService

2015-11-24 Thread Josh Radcliff (AdWords API Team)
Hi,

Aren't those the same IDs you sent earlier? If so, please see my response 
from this morning.

Thanks,
Josh, AdWords API Team

On Tuesday, November 24, 2015 at 8:44:08 AM UTC-5, AU wrote:
>
> Hi Josh,
>
> Please check by information as following:
>
> FeedId = 31616776
> FeedMappingId = 34553692
>
> Thanks.
>
> On Tuesday, November 24, 2015 at 12:19:14 AM UTC+7, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Could you send me the feed ID or feed mapping ID of the *FeedMapping* that 
>> you are expecting to see in the result?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Sunday, November 22, 2015 at 8:17:17 PM UTC-5, Petter wrote:
>>>
>>> Hi Umesh,
>>>
>>> This is selector in my code:
>>>
>>>  var selector = new Selector
>>> {
>>> fields = new[] { "AttributeFieldMappings", "FeedId", 
>>> "FeedMappingId", "PlaceholderType", "Status" },
>>> predicates = new[]
>>>  {
>>>  new Predicate { field = 
>>> "PlaceholderType", @operator = PredicateOperator.EQUALS, values = new[] { 
>>> "3" } },
>>>  new Predicate { field = "Status", 
>>> @operator = PredicateOperator.EQUALS, values = new[] { "REMOVED" } }
>>>  }
>>> };
>>>
>>> Thanks.
>>>
>>> On Friday, November 20, 2015 at 11:29:49 PM UTC+7, Umesh Dengale wrote:

 Hello,

 Could you specify the list of fields to select from the FeedMapping 
 
  in 
 your code?  Please see this link 
 
  for 
 selector fields 
 
  available 
 to the FeedMappingService. Please check out Selector 
 
  document 
 for more details. 

 Regards,
 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/f547f387-80cf-494f-962e-89d05eb59048%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Offline Conversions - UNPARSEABLE_GCLID

2015-11-24 Thread Umesh Dengale
Hello,

I am glad that you found the solution. Let us know if you need help with 
any other issues.

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/c58653f7-9873-45bb-96f4-8c5c13961784%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid grant when using Token Refresh

2015-11-24 Thread jnewman0817
We have had a couple cases where the account is over a year old so that 
could be a reason for those. However, we had an account yesterday made and 
today we go to refresh and it failed with invalid grant. I checked  
https://myaccount.google.com/ *-> Connected apps & sites -> Manage apps *and 
it says we have access to there Google Adwords and we are allowed to manage 
there adwords campaigns with authorization date of Yesterday, 1:36 PM. As 
far as I can tell none of the accounts that we have fixed by re-authorizing 
have had any problems. 

On Friday, November 20, 2015 at 2:29:20 PM UTC-5, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> Is it possible that you are seeing a large # of invalidated refresh tokens 
> because they have not been used for 6 months 
> ?
>
> If that does not explain the invalid grant errors:
>
> 1. Could you let me know if this error has occurred again on any accounts 
> where you generated a *new* refresh token?
>
> 2. Once you get an invalid grant error for a given account, are you able 
> to check the status of the grant via https://myaccount.google.com/ *-> 
> Connected apps & sites -> Manage apps*? I'd be curious to know what you 
> see there in this case. Below is what that page will look like for an 
> account that has granted access to a project named *My AdWords Web 
> Project*.
>
>
> 
>
>
> Thanks,
> Josh, AdWords API Team
>
> On Friday, November 20, 2015 at 11:08:38 AM UTC-5, jnewm...@gmail.com 
>  wrote:
>>
>> Well that certainly can't be the problem because we don't get new refresh 
>> tokens except when we oauth an account. Our process goes as follows: Oauth 
>> an account which gives us an access and refresh token. We use the access 
>> token till it expires and then use the refresh token to acquire a new 
>> access token. If the account starts to show "invalid grant" we oauth again 
>> and get a new access and refresh token. This is vicious cycle is causing 
>> our app to break for many clients when "invalid grant" occurs. 
>>
>> On Tuesday, November 17, 2015 at 4:48:16 PM UTC-5, Umesh Dengale wrote:
>>>
>>> Hello,
>>>
>>> There is currently a limit of 25 refresh tokens per user account per 
>>> client 
>>> . 
>>> Please check out token expiration section from the Using OAuth 2.0 to 
>>> Access Google APIs 
>>>  guide for 
>>> more details.
>>>
>>> Regards,
>>> 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/70a37c3e-8006-4391-bf24-19570d4374c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Video campaign statistic through API

2015-11-24 Thread Anthony Madrigal
Hello,

The CampaignService currently does not support video campaign statistics. 
In order to get stats for your video campaigns, you can use either the Campaign 
Performance Report 

 or Video Performance Report 

.

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/935c2ec5-0a15-4bab-a456-f4699b1605b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get the image ads uisng API

2015-11-24 Thread Chirag
Hi Anash,

Sorry for the late reply. 

Is it possible to get Image ad using AD_PERFORMANCE_REPORT or any report.

Thanks,


On Thursday, 1 October 2015 23:31:48 UTC+5:30, Anash P. Oommen (AdWords API 
Team) wrote:
>
> Hi Chirag,
>
> You could use the MediaService, see 
> https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201506/Miscellaneous/GetAllVideosAndImages.cs
>  
> for an example.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Wednesday, September 30, 2015 at 3:09:33 AM UTC-4, Chirag wrote:
>>
>> Hello Anash,
>>
>> Can we get Images for Image Ad?
>>
>>
>> On Friday, 23 January 2015 13:01:26 UTC+5:30, Anash P. Oommen (AdWords 
>> API Team) wrote:
>>>
>>> Hi Kiran,
>>>
>>> To get image ads, you need to request image ad fields in your API 
>>> request selector. You can see the relevant fields at 
>>> https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.ImageAd
>>> .
>>> Similarly, flash ads are template ads, see 
>>> https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.TemplateAd
>>>  
>>> for details.
>>>
>>> Cheers,
>>> Anash P. Oommen,
>>> AdWords API Advisor.
>>>
>>> On Friday, January 23, 2015 at 12:34:50 PM UTC+5:30, Kiran Kumar wrote:


 Hi,

 Is there any way to get the  ad image or flash ads using google adwords 
 api. I am getting the ads description using and url of the ad . But in my 
 adgroup there ads with images also.How to get the ads which contains 
 images 
 or flash content in the ads using adwords api ?


 Thank you ! 

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a6496478-b8b3-4587-9473-cc918e134098%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Video campaign statistic through API

2015-11-24 Thread Nooni
Hi,

I would like to know how to get video campaign statistics data through API.

We are using the below script with the ad performance report but can not 
receive data of video campaigns.

If you could help us, I would appreciate it.  


SetDefaultServer("https://adwords.google.com/;);
$user->LogAll();
$user->SetClientId($googleconfig['ClientId']);
$user->SetClientCustomerId($CustomerId);



$managedCustomerService = $user->GetService('CampaignService', 'v201506');
$selector = new Selector();

$selector->fields = array('CampaignId', 'Name','Status');
$page = $managedCustomerService->get($selector);
$accounts = array();
foreach ($page->entries as $account) {
if ($account->id > 0) {
$accounts[] = $account;
}
}
$customer='';
foreach ($accounts as $account) {
$name=iconv('UTF-8','TIS-620',$account->name);
$customer.='|'.$account->id;
$customer.='|'.$account->name;
//$customer.='|'.$account->status;
}

if(file_exists('soap_xml.log'))
{
unlink('soap_xml.log');
}
if(file_exists('request_info.log'))
{
unlink('request_info.log');
}

return  $customer;
 }
}
$Login = new Mainapp();
$data=$Login->googlelistacc($_GET['username'],$_GET['password'],$_GET['customerid']);
print $data;
?>



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9f2e990d-8968-419e-b2ae-710b5523d118%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get the image ads uisng API

2015-11-24 Thread Chirag
Hi Anash,

I am getting the Image Ad URL from that I can see the images, but Display 
Ad Url I am not getting.
Any Idea how I can use this as well?

Thanks,


On Tuesday, 24 November 2015 17:26:04 UTC+5:30, Chirag wrote:
>
> Hi Anash,
>
> Sorry for the late reply. 
>
> Is it possible to get Image ad using AD_PERFORMANCE_REPORT or any report.
>
> Thanks,
>
>
> On Thursday, 1 October 2015 23:31:48 UTC+5:30, Anash P. Oommen (AdWords 
> API Team) wrote:
>>
>> Hi Chirag,
>>
>> You could use the MediaService, see 
>> https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201506/Miscellaneous/GetAllVideosAndImages.cs
>>  
>> for an example.
>>
>> Cheers,
>> Anash P. Oommen,
>> AdWords API Advisor.
>>
>> On Wednesday, September 30, 2015 at 3:09:33 AM UTC-4, Chirag wrote:
>>>
>>> Hello Anash,
>>>
>>> Can we get Images for Image Ad?
>>>
>>>
>>> On Friday, 23 January 2015 13:01:26 UTC+5:30, Anash P. Oommen (AdWords 
>>> API Team) wrote:

 Hi Kiran,

 To get image ads, you need to request image ad fields in your API 
 request selector. You can see the relevant fields at 
 https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.ImageAd
 .
 Similarly, flash ads are template ads, see 
 https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.TemplateAd
  
 for details.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

 On Friday, January 23, 2015 at 12:34:50 PM UTC+5:30, Kiran Kumar wrote:
>
>
> Hi,
>
> Is there any way to get the  ad image or flash ads using google 
> adwords api. I am getting the ads description using and url of the ad . 
> But 
> in my adgroup there ads with images also.How to get the ads which 
> contains 
> images or flash content in the ads using adwords api ?
>
>
> Thank you ! 
>


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/33995940-3ac4-4539-bc3c-18ffa444b4d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Problems with MonthlySearchVolume to convert to string

2015-11-24 Thread Eric Jorge Seguí Parejo
How can i resolve this:

Catchable fatal error: Object of class MonthlySearchVolume could not be 
converted to string in 
C:\xampp\htdocs\adwords\examples\AdWords\v201509\Optimization\GetKeywordIdeas.php
 
on line 98

 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e53b72ca-7799-46b6-aed8-79b9b687afd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TargetingIdeaService range of dates

2015-11-24 Thread Deepa Varma
Hi,


 Any update in this topic ? Do we have option to give date range 
in TargetingIdeaService in version v201509 ? Please help 



On Wednesday, 3 September 2014 01:59:15 UTC+5:30, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> The API does not support custom date ranges. The closest you can get to 
> approximating that functionality is to include the 
> *TARGETED_MONTHLY_SEARCHES* attribute type you mentioned in your request.
>
> Best regards,
> Josh, AdWords API Team
>
> On Tuesday, September 2, 2014 4:55:29 AM UTC-4, Alex wrote:
>>
>> Hello
>>
>> I am trying to use PHP TargetingIdeaService (v201402) to get 
>> TARGETED_MONTHLY_SEARCHES. 
>> Is it possible to restrict the result of a range of dates, as it happens 
>> in KeywordPlanner ( http://gyazo.com/568f5499d1096ba05e776a05c135b4f9 )? 
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2849f10c-45ff-4d7a-a77e-413725394063%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot get removed FeedMapping using FeedMappingService

2015-11-24 Thread Josh Radcliff (AdWords API Team)
Hi,

Thanks for sending over the IDs. The issue here is that that *FeedMapping* is 
actually *ENABLED*.


  34553692
  31616776
  3
  ENABLED


So your predicate on *Status EQUALS REMOVED* is excluding that object.

Cheers,
Josh, AdWords API Team

On Monday, November 23, 2015 at 9:52:55 PM UTC-5, Petter wrote:
>
> Hi Josh,
>
> Please check information of Feed as following:
>
> FeedId = 31616776
> FeedMappingId = 34553692
>
> Thanks.
>
> On Tuesday, November 24, 2015 at 12:19:14 AM UTC+7, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Could you send me the feed ID or feed mapping ID of the *FeedMapping* that 
>> you are expecting to see in the result?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Sunday, November 22, 2015 at 8:17:17 PM UTC-5, Petter wrote:
>>>
>>> Hi Umesh,
>>>
>>> This is selector in my code:
>>>
>>>  var selector = new Selector
>>> {
>>> fields = new[] { "AttributeFieldMappings", "FeedId", 
>>> "FeedMappingId", "PlaceholderType", "Status" },
>>> predicates = new[]
>>>  {
>>>  new Predicate { field = 
>>> "PlaceholderType", @operator = PredicateOperator.EQUALS, values = new[] { 
>>> "3" } },
>>>  new Predicate { field = "Status", 
>>> @operator = PredicateOperator.EQUALS, values = new[] { "REMOVED" } }
>>>  }
>>> };
>>>
>>> Thanks.
>>>
>>> On Friday, November 20, 2015 at 11:29:49 PM UTC+7, Umesh Dengale wrote:

 Hello,

 Could you specify the list of fields to select from the FeedMapping 
 
  in 
 your code?  Please see this link 
 
  for 
 selector fields 
 
  available 
 to the FeedMappingService. Please check out Selector 
 
  document 
 for more details. 

 Regards,
 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/9c7b7f7d-eeb4-4b31-abcb-487894d2c226%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Object of class MonthlySearchVolume could not be converted to string

2015-11-24 Thread Eric Jorge Seguí Parejo
Hi! 
I try with the example api GetKeywordsIdeas.php from folder 'v201509' get 
the MonthlySearchVolume, but when i want to show, appears that error: 

Catchable fatal error: Object of class MonthlySearchVolume could not be 
converted to string in 
C:\xampp\htdocs\adwords\examples\AdWords\v201509\Optimization\Get 
KeywordIdeas.php on line 98


The code its:

>  /**
>  * This example gets keyword ideas related to a seed keyword.
>  *
>  * Restriction: adwords-only
>  *
>  * Copyright 2014, 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.
>  *
>  * @packageGoogleApiAdsAdWords
>  * @subpackage v201509
>  * @category   WebServices
>  * @copyright  2014, Google Inc. All Rights Reserved.
>  * @licensehttp://www.apache.org/licenses/LICENSE-2.0 Apache License,
>  * Version 2.0
>  */
> // Include the initialization file
> require_once dirname(dirname(__FILE__)) . '/init.php';
> require_once UTIL_PATH . '/MapUtils.php';
> /**
>  * Runs the example.
>  * @param AdWordsUser $user the user to run the example with
>  */
> function GetKeywordIdeasExample(AdWordsUser $user) {
>   // Get the service, which loads the required classes.
>   $targetingIdeaService =
>   $user->GetService('TargetingIdeaService', ADWORDS_VERSION);
>   // Create seed keyword.
>   $keyword = 'benidorm holidays';
>   // Create selector.
>   $selector = new TargetingIdeaSelector();
>   //$selector->requestType = 'IDEAS';
>   $selector->requestType = 'STATS';
>   $selector->ideaType = 'KEYWORD';
>   $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 
> 'SEARCH_VOLUME',
>   'COMPETITION','AVERAGE_CPC','TARGETED_MONTHLY_SEARCHES');
>   // Create language search parameter (optional).
>   // The ID can be found in the documentation:
>   //   
> https://developers.google.com/adwords/api/docs/appendix/languagecodes
>   // Note: As of v201302, only a single language parameter is allowed.
>   $languageParameter = new LanguageSearchParameter();
>   $english = new Language();
>   $english->id = 1000;
>   $languageParameter->languages = array($english);
>   // Create related to query search parameter.
>   $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>   $relatedToQuerySearchParameter->queries = array($keyword);
>   $selector->searchParameters[] = $relatedToQuerySearchParameter;
>   $selector->searchParameters[] = $languageParameter;
>   // Set selector paging (required by this service).
>   $selector->paging = new Paging(0, 
> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
> $f = fopen("reporte.csv","w");
> $sep = ","; //separador
>   do {
> // Make the get request.
> $page = $targetingIdeaService->get($selector);
> // Display results.
> if (isset($page->entries)) {
>   foreach ($page->entries as $targetingIdea) {
> $data = MapUtils::GetMap($targetingIdea->data);
> $keyword = $data['KEYWORD_TEXT']->value;
> $search_volume = isset($data['SEARCH_VOLUME']->value)
> ? $data['SEARCH_VOLUME']->value : 0;
> $competition = isset($data['COMPETITION']->value)
> ? $data['COMPETITION']->value : 0;
> $averagecpc = isset($data['AVERAGE_CPC']->value)
> ? $data['AVERAGE_CPC']->value : 0;
> $monthlysearches = isset($data['TARGETED_MONTHLY_SEARCHES']->value)
> ? $data['TARGETED_MONTHLY_SEARCHES']->value : 0;
> /*$competition=(string)$competition;
> $averagecpc=(string)$averagecpc;
> $monthlysearches=(string)$monthlysearches;
> $linea = 
> $keyword./*$sep.$categoryIds.$sep.$search_volume.$sep.$competition./*$sep.$averagecpc.$sep./*$monthlysearches."\n";
> fwrite($f,$linea);*/
>
> *//I HAVE THE PROBLEM THERE *
> *printf("Keyword idea with text '%s', category IDs (%s) and 
> average "*
> *. "monthly search volume '%s' was found.\n",*
> *$keyword, $monthlysearches[1], $search_volume);*  }
> } else {
>   print "No keywords ideas were found.\n";
> }
> // Advance the paging index.
> $selector->paging->startIndex += 
> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>   fclose($f); 
> }
> // Don't run the example if the file is being included.
> if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
>   return;
> }
> try {
>   // Get AdWordsUser from credentials in "../auth.ini"
>   // relative to the AdWordsUser.php file's directory.
>   $user = new AdWordsUser();
> 

Re: Cannot get removed FeedMapping using FeedMappingService

2015-11-24 Thread AU
Hi Josh,

Please check by information as following:

FeedId = 31616776
FeedMappingId = 34553692

Thanks.

On Tuesday, November 24, 2015 at 12:19:14 AM UTC+7, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> Could you send me the feed ID or feed mapping ID of the *FeedMapping* that 
> you are expecting to see in the result?
>
> Thanks,
> Josh, AdWords API Team
>
> On Sunday, November 22, 2015 at 8:17:17 PM UTC-5, Petter wrote:
>>
>> Hi Umesh,
>>
>> This is selector in my code:
>>
>>  var selector = new Selector
>> {
>> fields = new[] { "AttributeFieldMappings", "FeedId", 
>> "FeedMappingId", "PlaceholderType", "Status" },
>> predicates = new[]
>>  {
>>  new Predicate { field = 
>> "PlaceholderType", @operator = PredicateOperator.EQUALS, values = new[] { 
>> "3" } },
>>  new Predicate { field = "Status", 
>> @operator = PredicateOperator.EQUALS, values = new[] { "REMOVED" } }
>>  }
>> };
>>
>> Thanks.
>>
>> On Friday, November 20, 2015 at 11:29:49 PM UTC+7, Umesh Dengale wrote:
>>>
>>> Hello,
>>>
>>> Could you specify the list of fields to select from the FeedMapping 
>>> 
>>>  in 
>>> your code?  Please see this link 
>>> 
>>>  for 
>>> selector fields 
>>> 
>>>  available 
>>> to the FeedMappingService. Please check out Selector 
>>> 
>>>  document 
>>> for more details. 
>>>
>>> Regards,
>>> 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/ecef834e-069e-4beb-b818-cd2c8bfcdf65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue about Youtube Video Media creation

2015-11-24 Thread Youssef Boussafa
Hi,

I'm trying to create an In-stream video ad. According to template 
documentation 
,
 
It seems that we need to create the media ad first, in order to get the 
media id. I've tried first create the Youtube Video Media as you can see 
below :

$user = new AdWordsUser();
$user->SetClientCustomerId('727-815-6373');
$mediaService = $user->GetService('MediaService', ADWORDS_VERSION);
$video = new Video();
$video->name='Youtube Video AD #' . uniqid();
$video->type = 'VIDEO';
$video->youTubeVideoIdString="oUNHV_kbmY0";
$result = $mediaService->upload(array($video));
printf("Video id '%s' was "
."uploaded.\n",  $result[0]->mediaId);

But I don't understand why I'm getting this error :

Uncaught SoapFault exception: [soap:Server] [MediaError.UNSUPPORTED_TYPE @ 
media[0]]

Thanks for any help.

Youssef

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/104b976c-f0c4-47fa-b463-d86f48cc1141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.