Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Anup Pathak


Hi,
working code for setting cpc bids for Shopping product partitions, I hope 
this will help you.

operation = {
'xsi_type':'AdGroupCriterionOperation',
'operator': 'ADD',
'operand': {
'xsi_type': 'BiddableAdGroupCriterion',
'adGroupId': ad_group_id,
'criterion': {
'xsi_type': 
'ProductPartition',
'id': criterion_id
},
'biddingStrategyConfiguration': {
 
'bids': [{
   
'xsi_type': 'CpcBid',
   
'bid': {

 
'microAmount': str(bid_modifier)

   
},
   
}]
}
}
}

Let me know if you need more help in this!

NOTE : your shopping product partition structure should be proper

Thank You!
Anup Pathak

On Saturday, 30 April 2016 05:58:05 UTC+5:30, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> It looks like you're missing the intermediate *ProductPartition* object. 
> You'll want to create one of those with *UNIT* partition type and set its 
> *caseValue* to the *ProductOfferId*. The 
> *BiddableAdGroupCriterion.criterion* should point to that 
> *ProductPartition* object instead of directly to the *ProductOfferId*.
>
> I realize this can be a bit confusing. :) I'd definitely recommend looking 
> at the createUnit function I mentioned earlier 
> ,
>  
> as that handles most of this for you.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, April 29, 2016 at 5:39:46 PM UTC-4, Kevin Weitzner wrote:
>>
>> Hi -- I think I am getting closer...
>>
>>
>> ad_group_id = '2163'
>> criterion_id = '2523931-rou-6'
>>
>> Function now looks like this -
>> def main(client):
>> adgroup_criterion_service = 
>> client.GetService('AdGroupCriterionService', version='v201603')
>>
>>
>> bid_modifier = '1.5'
>> operations =  [{
>>   'xsi_type':'AdGroupCriterionOperation',
>>   'operator': 'SET',
>>   'operand': {
>>   'xsi_type': 
>> 'BiddableAdGroupCriterion',
>>   'adGroupId': ad_group_id,
>>   'criterion': {
>> 'xsi_type': 
>> 'ProductOfferId',
>> 'value': criterion_id
>> },
>>'bidModifier': bid_modifier
>>
>> }
>>   }]
>> result = adgroup_criterion_service.mutate(operations)
>> --
>>
>> I want to set an absolute CPC bid (variable name bid_modifier from 
>> earlier, $1.5) on an individual product ID -
>> I get this error:
>> suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: 
>> Type 'ns0:ProductOfferId' is not validly derived from the type definition, 
>> 'Criterion', of element 'ns0:criterion'. '
>> -
>>
>> Any ideas on what I have done wrong here
>>
>>
>>
>>
>> On Friday, April 29, 2016 at 4:07:34 PM UTC-5, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi Kevin,
>>>
>>> You can set bids at the product/item ID level by creating 
>>> BiddableAdGroupCriterion 
>>> 
>>>  
>>> objects with:
>>>
>>>- criterion 
>>>
>>> 
>>>  = 
>>>a ProductPartition 
>>>
>>> 
>>> with:
>>>- caseValue 
>>>   
>>> 
>>>  = 
>>>   a ProductOfferId 
>>>   
>>> 
>>>with:
>>>   - value 
>>>  

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

It looks like you're missing the intermediate *ProductPartition* object. 
You'll want to create one of those with *UNIT* partition type and set its 
*caseValue* to the *ProductOfferId*. The 
*BiddableAdGroupCriterion.criterion* should point to that *ProductPartition* 
object 
instead of directly to the *ProductOfferId*.

I realize this can be a bit confusing. :) I'd definitely recommend looking 
at the createUnit function I mentioned earlier 
,
 
as that handles most of this for you.

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 5:39:46 PM UTC-4, Kevin Weitzner wrote:
>
> Hi -- I think I am getting closer...
>
>
> ad_group_id = '2163'
> criterion_id = '2523931-rou-6'
>
> Function now looks like this -
> def main(client):
> adgroup_criterion_service = 
> client.GetService('AdGroupCriterionService', version='v201603')
>
>
> bid_modifier = '1.5'
> operations =  [{
>   'xsi_type':'AdGroupCriterionOperation',
>   'operator': 'SET',
>   'operand': {
>   'xsi_type': 
> 'BiddableAdGroupCriterion',
>   'adGroupId': ad_group_id,
>   'criterion': {
> 'xsi_type': 
> 'ProductOfferId',
> 'value': criterion_id
> },
>'bidModifier': bid_modifier
>
> }
>   }]
> result = adgroup_criterion_service.mutate(operations)
> --
>
> I want to set an absolute CPC bid (variable name bid_modifier from 
> earlier, $1.5) on an individual product ID -
> I get this error:
> suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: 
> Type 'ns0:ProductOfferId' is not validly derived from the type definition, 
> 'Criterion', of element 'ns0:criterion'. '
> -
>
> Any ideas on what I have done wrong here
>
>
>
>
> On Friday, April 29, 2016 at 4:07:34 PM UTC-5, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi Kevin,
>>
>> You can set bids at the product/item ID level by creating 
>> BiddableAdGroupCriterion 
>> 
>>  
>> objects with:
>>
>>- criterion 
>>
>> 
>>  = 
>>a ProductPartition 
>>
>> 
>> with:
>>- caseValue 
>>   
>> 
>>  = 
>>   a ProductOfferId 
>>   
>> 
>>with:
>>   - value 
>>  
>> 
>>  set 
>>  to the product ID from Merchant Center
>>  - biddingStrategyConfiguration 
>>
>> 
>>  configured 
>>with your bids
>>
>> Please see the createUnit function in the AddProductPartitionTree.php 
>> example 
>> 
>>  for 
>> details.
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
>>>
>>> Hi -- I am not certain how the last step should be executed --I am not 
>>> getting any errors, however CPC for productID is not being set.
>>>
>>> See script below:
>>>
>>> ad_group_id = '**'
>>> criterion_id = '**'
>>>
>>> def main(client):
>>> adgroup_criterion_service = 
>>> client.GetService('AdGroupCriterionService', version='v201603')
>>>
>>> bid_modifier = '15'
>>>
>>> operations =  [{
>>>   'xsi_type':'AdGroupCriterionOperation',
>>>   'operator': 'SET',
>>>   'operand': {
>>>   'xsi_type': 
>>> 'BiddableAdGroupCriterion',
>>>   'adGroupId': ad_group_id,
>>>   'criterion': {
>>> 'xsi_type': 
>>> 'ProductPartition',
>>> 'id': criterion_id
>>>   

Re: Migration to v201603 error

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

Glad to hear that the example worked. Since that ran OK, the issue seems to 
be with your Laravel setup. My PHP expertise is limited, so bear with me 
:), but have you completed the following steps from the README 
 (or their Laravel 
equivalents) in that environment?

To install the client library, either copy the lib/ folder into where you 
> store your PHP source files that is on your PHP include path, or add the 
> current directory path of the lib/ folder to your PHP include path.


Thanks,
Josh, AdWords API Team

On Friday, April 29, 2016 at 5:23:15 PM UTC-4, Sabri Karagönen wrote:
>
> Tried it and example file worked successfully. 
>
> Actually I'm using laravel and wrote AdWords report functions in a helper 
> file. Then, call these helper functions from Controller files.
>
> It was working before version update as I mentioned above. 
>
> 29 Nisan 2016 Cuma 21:41:41 UTC+3 tarihinde Josh Radcliff (AdWords API 
> Team) yazdı:
>>
>> Hi,
>>
>> Are you running a script you created or the DownloadCriteriaReport.php 
>> example from the library 
>> ?
>>  
>> If you're running your own script, could you try the example from the 
>> library and let me know if you see the same error?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Friday, April 29, 2016 at 2:02:56 PM UTC-4, Sabri Karagönen wrote:
>>>
>>> Hi Josh,
>>>
>>> Of course, i tried it and I got 'v201603'. I also changed versions to 
>>> 201601 and 201509, it didn't change anything.
>>> Interestingly, I found that 
>>> When I use Selector after ManagedCustomerService, it works:
>>> $managedCustomerService = $user->GetService('ManagedCustomerService', 
>>> 'v201603');
>>> 
>>> $selector = new Selector();
>>>
>>> However, it doesn't work with ReportDefinitionService: (There is no 
>>> problem with ADWORDS_VERSION, it prints v201603)
>>>
>>> $campaignService = $user->GetService('ReportDefinitionService', 
>>> ADWORDS_VERSION);
>>> 
>>> $selector = new Selector();
>>>
>>>
>>>
>>>
>>> 29 Nisan 2016 Cuma 19:38:29 UTC+3 tarihinde Josh Radcliff (AdWords API 
>>> Team) yazdı:

 Hi Sabri, Anti,

 Could you add a line to print ADWORDS_VERSION before the line that's 
 failing? I want to confirm that it's set to "v201603".

 Thanks,
 Josh, AdWords API Team

 On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:
>
> Hi,
>
> I'm having same problem. 
> It just occured after I updated AdWords API via Composer from v6.6 to 
> last version. So I don't think there is a missing file, etc.
>
> $campaignService = $user->GetService('ReportDefinitionService', 
> ADWORDS_VERSION);
> 
> *$selector = new Selector();*
> $selector->fields = $reportFields;
>
> Error is threw at second line that is bold. 
>
> Thanks, 
> Sabri
>
>
> 25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:
>>
>> I got this error after set up my php adwords api  from v201506 to new 
>> v201603.
>>
>> Fatal error: Class Selector not found in project 
>>
>> So uncommon error , did not find anything similar to find a solution. 
>>  
>>
>> Please help.
>>
>> Thanks
>> Anti 
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/637a3e48-31ed-4357-9d09-de07e2878ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Kevin Weitzner
Hi -- I think I am getting closer...


ad_group_id = '2163'
criterion_id = '2523931-rou-6'

Function now looks like this -
def main(client):
adgroup_criterion_service = 
client.GetService('AdGroupCriterionService', version='v201603')


bid_modifier = '1.5'
operations =  [{
  'xsi_type':'AdGroupCriterionOperation',
  'operator': 'SET',
  'operand': {
  'xsi_type': 
'BiddableAdGroupCriterion',
  'adGroupId': ad_group_id,
  'criterion': {
'xsi_type': 
'ProductOfferId',
'value': criterion_id
},
   'bidModifier': bid_modifier

}
  }]
result = adgroup_criterion_service.mutate(operations)
--

I want to set an absolute CPC bid (variable name bid_modifier from earlier, 
$1.5) on an individual product ID -
I get this error:
suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: Type 
'ns0:ProductOfferId' is not validly derived from the type definition, 
'Criterion', of element 'ns0:criterion'. '
-

Any ideas on what I have done wrong here




On Friday, April 29, 2016 at 4:07:34 PM UTC-5, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Kevin,
>
> You can set bids at the product/item ID level by creating 
> BiddableAdGroupCriterion 
> 
>  
> objects with:
>
>- criterion 
>
> 
>  = 
>a ProductPartition 
>
> 
> with:
>- caseValue 
>   
> 
>  = 
>   a ProductOfferId 
>   
> 
>with:
>   - value 
>  
> 
>  set 
>  to the product ID from Merchant Center
>  - biddingStrategyConfiguration 
>
> 
>  configured 
>with your bids
>
> Please see the createUnit function in the AddProductPartitionTree.php 
> example 
> 
>  for 
> details.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
>>
>> Hi -- I am not certain how the last step should be executed --I am not 
>> getting any errors, however CPC for productID is not being set.
>>
>> See script below:
>>
>> ad_group_id = '**'
>> criterion_id = '**'
>>
>> def main(client):
>> adgroup_criterion_service = 
>> client.GetService('AdGroupCriterionService', version='v201603')
>>
>> bid_modifier = '15'
>>
>> operations =  [{
>>   'xsi_type':'AdGroupCriterionOperation',
>>   'operator': 'SET',
>>   'operand': {
>>   'xsi_type': 
>> 'BiddableAdGroupCriterion',
>>   'adGroupId': ad_group_id,
>>   'criterion': {
>> 'xsi_type': 
>> 'ProductPartition',
>> 'id': criterion_id
>> },
>>'bidModifier':bid_modifier
>>
>> }
>>   }]
>>
>> if __name__ == '__main__':
>>   adwords_client = adwords.AdWordsClient.LoadFromStorage('**.yaml')
>>   main(adwords_client)
>>
>> --
>>
>> I would like to be able to set the CPC of product Ids themselves by 
>> passing the appropriate product ID in the Criterion_ID --- I have thousands 
>> of products that I want to try a strategy on.  I believe the last step in 
>> the explanation is what I am missing here.
>>
>> Thanks,
>> Kevin
>>
>> On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff 
>> (AdWords API Team) wrote:
>>>
>>> Hi Steve,
>>>
>>> Just to clarify - by "script" I'm assuming you mean code that executes 
>>> methods in the AdWords API 
>>> 

Re: Migration to v201603 error

2016-04-29 Thread Sabri Karagönen
Tried it and example file worked successfully. 

Actually I'm using laravel and wrote AdWords report functions in a helper 
file. Then, call these helper functions from Controller files.

It was working before version update as I mentioned above. 

29 Nisan 2016 Cuma 21:41:41 UTC+3 tarihinde Josh Radcliff (AdWords API 
Team) yazdı:
>
> Hi,
>
> Are you running a script you created or the DownloadCriteriaReport.php 
> example from the library 
> ?
>  
> If you're running your own script, could you try the example from the 
> library and let me know if you see the same error?
>
> Thanks,
> Josh, AdWords API Team
>
> On Friday, April 29, 2016 at 2:02:56 PM UTC-4, Sabri Karagönen wrote:
>>
>> Hi Josh,
>>
>> Of course, i tried it and I got 'v201603'. I also changed versions to 
>> 201601 and 201509, it didn't change anything.
>> Interestingly, I found that 
>> When I use Selector after ManagedCustomerService, it works:
>> $managedCustomerService = $user->GetService('ManagedCustomerService', 
>> 'v201603');
>> 
>> $selector = new Selector();
>>
>> However, it doesn't work with ReportDefinitionService: (There is no 
>> problem with ADWORDS_VERSION, it prints v201603)
>>
>> $campaignService = $user->GetService('ReportDefinitionService', 
>> ADWORDS_VERSION);
>> 
>> $selector = new Selector();
>>
>>
>>
>>
>> 29 Nisan 2016 Cuma 19:38:29 UTC+3 tarihinde Josh Radcliff (AdWords API 
>> Team) yazdı:
>>>
>>> Hi Sabri, Anti,
>>>
>>> Could you add a line to print ADWORDS_VERSION before the line that's 
>>> failing? I want to confirm that it's set to "v201603".
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:

 Hi,

 I'm having same problem. 
 It just occured after I updated AdWords API via Composer from v6.6 to 
 last version. So I don't think there is a missing file, etc.

 $campaignService = $user->GetService('ReportDefinitionService', 
 ADWORDS_VERSION);
 
 *$selector = new Selector();*
 $selector->fields = $reportFields;

 Error is threw at second line that is bold. 

 Thanks, 
 Sabri


 25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:
>
> I got this error after set up my php adwords api  from v201506 to new 
> v201603.
>
> Fatal error: Class Selector not found in project 
>
> So uncommon error , did not find anything similar to find a solution.  
>
> Please help.
>
> Thanks
> Anti 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f319f539-7b85-4c05-86d2-27bafd8e843a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Kevin,

You can set bids at the product/item ID level by creating 
BiddableAdGroupCriterion 

 
objects with:

   - criterion 
   

 = 
   a ProductPartition 
   

with:
   - caseValue 
  

 = 
  a ProductOfferId 
  

   with:
  - value 
 

 set 
 to the product ID from Merchant Center
 - biddingStrategyConfiguration 
   

 configured 
   with your bids
   
Please see the createUnit function in the AddProductPartitionTree.php 
example 

 for 
details.

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
>
> Hi -- I am not certain how the last step should be executed --I am not 
> getting any errors, however CPC for productID is not being set.
>
> See script below:
>
> ad_group_id = '**'
> criterion_id = '**'
>
> def main(client):
> adgroup_criterion_service = 
> client.GetService('AdGroupCriterionService', version='v201603')
>
> bid_modifier = '15'
>
> operations =  [{
>   'xsi_type':'AdGroupCriterionOperation',
>   'operator': 'SET',
>   'operand': {
>   'xsi_type': 
> 'BiddableAdGroupCriterion',
>   'adGroupId': ad_group_id,
>   'criterion': {
> 'xsi_type': 
> 'ProductPartition',
> 'id': criterion_id
> },
>'bidModifier':bid_modifier
>
> }
>   }]
>
> if __name__ == '__main__':
>   adwords_client = adwords.AdWordsClient.LoadFromStorage('**.yaml')
>   main(adwords_client)
>
> --
>
> I would like to be able to set the CPC of product Ids themselves by 
> passing the appropriate product ID in the Criterion_ID --- I have thousands 
> of products that I want to try a strategy on.  I believe the last step in 
> the explanation is what I am missing here.
>
> Thanks,
> Kevin
>
> On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff 
> (AdWords API Team) wrote:
>>
>> Hi Steve,
>>
>> Just to clarify - by "script" I'm assuming you mean code that executes 
>> methods in the AdWords API 
>> , and not AdWords 
>> Scripts . All management 
>> of product groups in the AdWords API is done via AdGroupCriterionService 
>> .
>>  
>> The Shopping Guide 
>>  contains 
>> a useful introduction to the concepts involved.
>>
>> Once you have your product groups set up, you can modify a given product 
>> group's CPC bid by sending an AdGroupCriterionService.mutate 
>> 
>>  call 
>> containing an AdGroupCriterionOperation 
>> 
>>  where 
>> the *operator* is *SET* and the operand is a BiddableAdGroupCriterion 
>> 
>>  with:
>>
>>- adGroupId 
>>
>> 
>>  set 
>>to the ad group's ID
>>- criterion 
>>
>> 
>>  set 
>>to a ProductPartition 
>>
>> 
>>  with 
>>its id 
>>
>> 

Re: Developer token approval takes too long

2016-04-29 Thread 'Veer Arjun Busani(AdWords API Team)' via AdWords API Forum
Hi Ричь,

We do apologize for the delay. Looking at your account, you seem to have 
Test account API access but have you applied for the Basic API access? If 
not, use this form  to 
apply for Basic API access. You should receive a response within couple of 
business days. 

Thanks,
Veer Busani
AdWords API Team

On Friday, April 29, 2016 at 1:45:14 PM UTC-4, Ричь Эдженси wrote:
>
> Hello, google!
>
> We are waiting for developer token approval for more than month! Our 
> clients don`t understand why it`s taken so long to do simple things. And 
> they decreasing budgets on google adwords dramatically. Please speed up 
> approval process or provide us with current status information, we can do 
> whatever it takes to speed up a process!
>
> We are wating for the clue, thank you!
>
> Our MCC id: 280-175-4916
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a8e39961-0701-492e-9695-9f0d2d2bf0c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Intermittent OAUTH_TOKEN_INVALID error

2016-04-29 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Latha,

There are situations where the refresh token might get invalidated. There 
can be a maximum of 25 valid refresh tokens per application at a time for 
an account. If this limit is reached, creating a new token automatically 
invalidates the oldest token without warning. That might be what's 
happening in your case. You can find more information about refresh tokens 
here 
.

Regards,
Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1d9ceb85-f302-4a14-bdc0-191735c3c14c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Kevin Weitzner
Hi -- I am not certain how the last step should be executed --I am not 
getting any errors, however CPC for productID is not being set.

See script below:

ad_group_id = '**'
criterion_id = '**'

def main(client):
adgroup_criterion_service = 
client.GetService('AdGroupCriterionService', version='v201603')

bid_modifier = '15'

operations =  [{
  'xsi_type':'AdGroupCriterionOperation',
  'operator': 'SET',
  'operand': {
  'xsi_type': 
'BiddableAdGroupCriterion',
  'adGroupId': ad_group_id,
  'criterion': {
'xsi_type': 
'ProductPartition',
'id': criterion_id
},
   'bidModifier':bid_modifier

}
  }]

if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage('**.yaml')
  main(adwords_client)

--

I would like to be able to set the CPC of product Ids themselves by passing 
the appropriate product ID in the Criterion_ID --- I have thousands of 
products that I want to try a strategy on.  I believe the last step in the 
explanation is what I am missing here.

Thanks,
Kevin

On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff 
(AdWords API Team) wrote:
>
> Hi Steve,
>
> Just to clarify - by "script" I'm assuming you mean code that executes 
> methods in the AdWords API 
> , and not AdWords Scripts 
> . All management of 
> product groups in the AdWords API is done via AdGroupCriterionService 
> .
>  
> The Shopping Guide 
>  contains 
> a useful introduction to the concepts involved.
>
> Once you have your product groups set up, you can modify a given product 
> group's CPC bid by sending an AdGroupCriterionService.mutate 
> 
>  call 
> containing an AdGroupCriterionOperation 
> 
>  where 
> the *operator* is *SET* and the operand is a BiddableAdGroupCriterion 
> 
>  with:
>
>- adGroupId 
>
> 
>  set 
>to the ad group's ID
>- criterion 
>
> 
>  set 
>to a ProductPartition 
>
> 
>  with 
>its id 
>
> 
>  set 
>to the product group's (ProductPartition's) ID you want to update
>- biddingStrategyConfiguration 
>
> 
>  set 
>to a BiddingStrategyConfiguration 
>
> 
>  object 
>with the proper CPC bid configured
>
> To monitor the performance of each product group (ProductPartition), you 
> can use the API's Product Partition Report 
> 
> .
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, September 24, 2014 10:41:29 AM UTC-4, Steve Berg wrote:
>>
>> Hello, 
>>
>> I would like in my 30 Shopping Campaigns 
>> the offer and the management of the CPC from the Product Groups automate. 
>>
>> For example, the CPC should be low in a low CTR 
>> be in good conversion correspondingly higher. 
>>
>> How would a possible script look like? 
>>
>> Best Regards 
>> - Steve -
>>
>

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

Re: Intermittent OAUTH_TOKEN_INVALID error

2016-04-29 Thread Latha S
Thanks for the reply!  

Are you saying that we would not see an "expired token" error when the 
access token has expired?  I assumed that an invalid token error meant the 
refresh token was invalid, in which case our code does not continue, 
expecting that a new refresh token must be generated. I did see in the 
documentation about the automatic refreshing by the client library, which 
we use, and since our process continues, I think eventually the automatic 
refreshing works.

Should we just retry if we get an invalid token error? 

Thank again for your help!




On Friday, April 29, 2016 at 3:35:13 PM UTC-4, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi Latha,
>
> Access tokens have an expiration time 
> .
>  
> If you are using the token after it has expired, you would get a 
> OAUTH_TOKEN_INVALID error. You should then use the refresh token to get a 
> new access token or to refresh an expired token. If you are using any of 
> the client libraries 
> , by 
> default, the expired access token gets automatically refreshed.
>
> I hope this helps. 
>
> Regards,
> Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d0d068e1-b995-4bfb-a209-db25500e85ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Intermittent OAUTH_TOKEN_INVALID error

2016-04-29 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Latha,

Access tokens have an expiration time 
.
 
If you are using the token after it has expired, you would get a 
OAUTH_TOKEN_INVALID error. You should then use the refresh token to get a 
new access token or to refresh an expired token. If you are using any of 
the client libraries 
, by 
default, the expired access token gets automatically refreshed.

I hope this helps. 

Regards,
Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7d1757eb-e2de-43e8-9bf6-f8d62370658c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.NOT_ADS_USER

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

Could you elaborate on why you are not using the reporting utility in the .NET 
client library , as 
shown in the DownloadCriteriaReport example 
?
 
That will handle setting all of the necessary headers, etc. All you have to 
do is configure your *App.config* file as specified in the App.config 
sample in the library 
,
 
and the library will take care of exchanging your refresh token for an 
access token, as well as properly setting up the HTTP request for reports.

Thanks,
Josh, AdWords API Team

On Friday, April 29, 2016 at 9:05:55 AM UTC-4, radley.an...@kellybrady.com 
wrote:
>
> I keep getting this error
> " standalone=\"yes\"?>AuthenticationError.NOT_ADS_USER"
>
> I know this error means:
> Reason*NOT_ADS_USER*SummaryThe login used to generate the access token is 
> not associated with any AdWords account.Common causesThe login 
> information provided corresponds to a Google account that does not have 
> AdWords enabled.
> The problem is that* I am able to use these same credentials in the C# 
> sample asp.net  application and get authenticated. *
>
> Why would these credentials work in one instance but not this instance?
>
> Here is my code:
>
> using RestSharp;
> using System;
> using System.Collections.Generic;
> using System.Linq;
> using System.Text;
> using System.Threading.Tasks;
>
> namespace GoogleAdWordsReportPuller
> {
> class FileGrabber
> {
>
> string reportDefinition = @" https://adwords.google.com/api/adwords/cm/v201603"";>
>   
> AdGroupName
> Date
> AdGroupStatus
> CampaignName
> Impressions
> Clicks
> Conversions
> Cost
>   
>   Custom Adgroup Performance Report
>   ADGROUP_PERFORMANCE_REPORT
>   YESTERDAY
>   CSV
> ";
>
>
> string developerToken = "x";
> string clientId = "
> xxx.apps.googleusercontent.com";
> string accessToken = 
> "x"; // actually a 
> refresh token
>
>
> string accountId = "585-353-4323"; // client account id
>
> string clientUrl = "
> https://adwords.google.com/api/adwords/reportdownload/v201603";;
>
>
> public void GetReport()
> {
>
> //Host: adwords.google.com
> //User-Agent: curl, gzip
> //Accept: */*
> //Accept-Encoding: gzip
> //Authorization: Bearer [Enter OAuth 2.0 access token here]
> //developerToken: [Enter developerToken here]
> //clientCustomerId: [Enter clientCustomerID here]
> //Content-Length: 784
> //Expect: 100-continue
> //Content-Type: multipart/form-data; 
> boundary=12d01fae60c7b559
>
> var client = new RestClient(clientUrl);
> var request = new RestRequest(Method.POST);
>
> // set http headers
> request.AddHeader("Host", "adwords.google.com");
> request.AddHeader("User-Agent", "curl, gzip");
> request.AddHeader("Accept", "*/*");
> request.AddHeader("Accept-Encoding", "gzip");
> request.AddHeader("Authorization", accessToken); // tried 
>  request.AddHeader("Authorization", "Bearer " + accessToken); 
> request.AddHeader("developerToken", developerToken);
> request.AddHeader("clientCustomerId", accountId);
> request.AddHeader("Content-Length", "784");
> //request.AddHeader("Expect", "100-continue");
> request.AddHeader("Content-Type", "multipart/form-data; 
> boundary=12d01fae60c7b559");
>
> //set request parameters
> request.AddParameter("__rdxml", reportDefinition); // adds to 
> POST or URL querystring based on Method
>
> // execute the request
> IRestResponse response = client.Execute(request);
> var content = response.Content; // raw content as string
>
> }
>
> }
> }
>
>
>
> I'm wondering if I need an access token instead because according to the 
> documentation: 
> https://developers.google.com/adwords/api/docs/guides/reporting#complete-example
> The http header has a field that says: 
>
> POST /api/adwords/reportdownload/v201601 HTTP/1.1
> Host: adwords.google.com
> User-Agent: curl, gzip
> Accept: */*
> Accept-Encoding: gzip
> Authorization: Bearer [Enter OAuth 2.0 access token here]
> developerToken: [Enter developerToken here]
> clientCustomerId: [Enter clientCustomerID here]
> Content-Length: 784
> Expect: 100-continue
> Content-Type: multipart/form-data; 
> boundary=12d01fae60c7b559
>
>
> Can anyone help me?
>
> Thank

Re: how do i get benchmarked performance via Api

2016-04-29 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Anand,

You can probably get Impression Share data from AdWords reports on Account 
level, Campaign level and so on. For example, ContentImpressionShare 

 is 
the impressions you have received divided by the estimated number of 
impressions you were eligible to receive. 

Similarly you can query for ContentBudgetLostImpressionShare 

, ContentRankLostImpressionShare 

, SearchBudgetLostImpressionShare 

, SearchExactMatchImpressionShare 

, SearchImpressionShare 

, SearchRankLostImpressionShare 

 metrics 
from various reports in the API.

I hope this helps.

Regards,
Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/81c6cfbd-428b-4890-b2a8-dbd3dcfc940d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Migration to v201603 error

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

Are you running a script you created or the DownloadCriteriaReport.php 
example from the library 
?
 
If you're running your own script, could you try the example from the 
library and let me know if you see the same error?

Thanks,
Josh, AdWords API Team

On Friday, April 29, 2016 at 2:02:56 PM UTC-4, Sabri Karagönen wrote:
>
> Hi Josh,
>
> Of course, i tried it and I got 'v201603'. I also changed versions to 
> 201601 and 201509, it didn't change anything.
> Interestingly, I found that 
> When I use Selector after ManagedCustomerService, it works:
> $managedCustomerService = $user->GetService('ManagedCustomerService', 
> 'v201603');
> 
> $selector = new Selector();
>
> However, it doesn't work with ReportDefinitionService: (There is no 
> problem with ADWORDS_VERSION, it prints v201603)
>
> $campaignService = $user->GetService('ReportDefinitionService', 
> ADWORDS_VERSION);
> 
> $selector = new Selector();
>
>
>
>
> 29 Nisan 2016 Cuma 19:38:29 UTC+3 tarihinde Josh Radcliff (AdWords API 
> Team) yazdı:
>>
>> Hi Sabri, Anti,
>>
>> Could you add a line to print ADWORDS_VERSION before the line that's 
>> failing? I want to confirm that it's set to "v201603".
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:
>>>
>>> Hi,
>>>
>>> I'm having same problem. 
>>> It just occured after I updated AdWords API via Composer from v6.6 to 
>>> last version. So I don't think there is a missing file, etc.
>>>
>>> $campaignService = $user->GetService('ReportDefinitionService', 
>>> ADWORDS_VERSION);
>>> 
>>> *$selector = new Selector();*
>>> $selector->fields = $reportFields;
>>>
>>> Error is threw at second line that is bold. 
>>>
>>> Thanks, 
>>> Sabri
>>>
>>>
>>> 25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:

 I got this error after set up my php adwords api  from v201506 to new 
 v201603.

 Fatal error: Class Selector not found in project 

 So uncommon error , did not find anything similar to find a solution.  

 Please help.

 Thanks
 Anti 




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6d5ac920-a9d3-4443-8387-46e404487678%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgraded sitelink feeds final url

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

An important distinction with feeds is between two fields on 
AttributeFieldMapping 

:

   1. fieldId 
   

 - 
   The *placeholder field ID* that maps to the values on the Feed 
   Placeholders page 
   . 
   This field ID does *not* appear on individual FeedItemAttributeValues 
   

   .
   2. feedAttributeId 
   

 - 
   The ID of the field as it will appear on *FeedItemAttributeValues*, 
   e.g., on individual FeedItems 
   
.
 
   This ID is automatically generated by AdWords, and *may not be the same 
   as* the *fieldId* above.
   
So when you are looking at an individual *FeedItem*, you should not assume 
that the feedAttributeId 

 will 
be one of the values on the *Feed Placeholders* page. In order to determine 
which placeholder field ID (*fieldId*) corresponds to a *feedAttributeId* for 
a given *Feed*, you need to look at the FeedMapping.attributeFieldMappings 

 for 
the *feedId* and *placeholderType*.

Hope that clears things up.

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 9:57:41 AM UTC-4, Janak Prajapati wrote:
>
> Additional details to the same query -
>
> This is the API response of one of the Sitelink feed item, we are 
> receiving,
>
> object(FeedItem)#4446 (14) {
>   ["feedId"]=>
>   string(8) "10270XXX"
>   ["feedItemId"]=>
>   string(9) "124967XXX"
>   ["status"]=>
>   string(7) "ENABLED"
>   ["startTime"]=>
>   NULL
>   ["endTime"]=>
>   NULL
>   ["attributeValues"]=>
>   array(5) {
> [0]=>
> object(FeedItemAttributeValue)#4438 (9) {
>   ["feedAttributeId"]=>
>   string(1) "1"
>   ["integerValue"]=>
>   NULL
>   ["doubleValue"]=>
>   NULL
>   ["booleanValue"]=>
>   NULL
>   ["stringValue"]=>
>   string(25) "What's New TEST"
>   ["integerValues"]=>
>   NULL
>   ["doubleValues"]=>
>   NULL
>   ["booleanValues"]=>
>   NULL
>   ["stringValues"]=>
>   NULL
> }
> [1]=>
> object(FeedItemAttributeValue)#4429 (9) {
>   ["feedAttributeId"]=>
>   string(1) "3"
>   ["integerValue"]=>
>   NULL
>   ["doubleValue"]=>
>   NULL
>   ["booleanValue"]=>
>   NULL
>   ["stringValue"]=>
>   string(35) "Wholesale Prices Boots"
>   ["integerValues"]=>
>   NULL
>   ["doubleValues"]=>
>   NULL
>   ["booleanValues"]=>
>   NULL
>   ["stringValues"]=>
>   NULL
> }
> [2]=>
> object(FeedItemAttributeValue)#4432 (9) {
>   ["feedAttributeId"]=>
>   string(1) "4"
>   ["integerValue"]=>
>   NULL
>   ["doubleValue"]=>
>   NULL
>   ["booleanValue"]=>
>   NULL
>   ["stringValue"]=>
>   string(31) "Buy all Boots TEST TEXT"
>   ["integerValues"]=>
>   NULL
>   ["doubleValues"]=>
>   NULL
>   ["booleanValues"]=>
>   NULL
>   ["stringValues"]=>
>   NULL
> }
> [3]=>
> object(FeedItemAttributeValue)#4416 (9) {
>   ["feedAttributeId"]=>
>   string(1) "7"
>   ["integerValue"]=>
>   NULL
>   ["doubleValue"]=>
>   NULL
>   ["booleanValue"]=>
>   NULL
>   ["stringValue"]=>
>   string(118) "
> http://secure.mydomain.com/tracking/track.php?c=test&d=120&e=test%40gmail.com&u={lpurl}
>  
> 
> "
>   ["integerValues"]=>
>   NULL
>   ["doubleValues"]=>
>   NULL
>   ["booleanValues"]=>
>   NULL
>   ["stringValues"]=>
>   NULL
> }
> [4]=>
> object(FeedItemAttributeValue)#4417 (9) {
>   ["feedAttributeId"]=>
>   string(1) "8"
>   ["integerValue"]=>
>   NULL
>   ["doubleValue"]=>
>   NULL
>   ["booleanValue"]=>
>   NULL
>   ["stringValue"]=>
>   NULL
>   ["integerValues"]=>
>   NULL
>   ["doubleValues"]=>
>   NULL
>   ["booleanValues"]=>
>   NULL
>   ["stringValues"]=>
>   array(1) {
> [0]=>
> string(148) "
> http://www.mydomain.com/collections/Boot?utm_source=google&utm_medium=ppc&utm_content={_sitelink}&utm_campaign={_mycampaign}
> "
>   }
> }
>   }
>   ["pol

Re: Migration to v201603 error

2016-04-29 Thread Sabri Karagönen
Hi Josh,

Of course, i tried it and I got 'v201603'. I also changed versions to 
201601 and 201509, it didn't change anything.
Interestingly, I found that 
When I use Selector after ManagedCustomerService, it works:
$managedCustomerService = $user->GetService('ManagedCustomerService', 
'v201603');

$selector = new Selector();

However, it doesn't work with ReportDefinitionService: (There is no problem 
with ADWORDS_VERSION, it prints v201603)

$campaignService = $user->GetService('ReportDefinitionService', 
ADWORDS_VERSION);

$selector = new Selector();




29 Nisan 2016 Cuma 19:38:29 UTC+3 tarihinde Josh Radcliff (AdWords API 
Team) yazdı:
>
> Hi Sabri, Anti,
>
> Could you add a line to print ADWORDS_VERSION before the line that's 
> failing? I want to confirm that it's set to "v201603".
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:
>>
>> Hi,
>>
>> I'm having same problem. 
>> It just occured after I updated AdWords API via Composer from v6.6 to 
>> last version. So I don't think there is a missing file, etc.
>>
>> $campaignService = $user->GetService('ReportDefinitionService', 
>> ADWORDS_VERSION);
>> 
>> *$selector = new Selector();*
>> $selector->fields = $reportFields;
>>
>> Error is threw at second line that is bold. 
>>
>> Thanks, 
>> Sabri
>>
>>
>> 25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:
>>>
>>> I got this error after set up my php adwords api  from v201506 to new 
>>> v201603.
>>>
>>> Fatal error: Class Selector not found in project 
>>>
>>> So uncommon error , did not find anything similar to find a solution.  
>>>
>>> Please help.
>>>
>>> Thanks
>>> Anti 
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b9490b85-203d-451c-a2ed-0dfa1be52e44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Developer token approval takes too long

2016-04-29 Thread Ричь Эдженси
Hello, google!

We are waiting for developer token approval for more than month! Our 
clients don`t understand why it`s taken so long to do simple things. And 
they decreasing budgets on google adwords dramatically. Please speed up 
approval process or provide us with current status information, we can do 
whatever it takes to speed up a process!

We are wating for the clue, thank you!

Our MCC id: 280-175-4916

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/19ffe87d-cbd5-4f95-93d0-3b5ed3d6d380%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Quisiera generar un reporte en una pagina php de mis campañas a través de la Api Adwords / I would like to generate a report on a php page of my campaigns through Adwords Api

2016-04-29 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

Can you provide the report definition you are using along with the errors 
you received? 

Thanks,
Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/02ec0cf6-636b-4b20-83ab-dffb4c283479%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Migration to v201603 error

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Sabri, Anti,

Could you add a line to print ADWORDS_VERSION before the line that's 
failing? I want to confirm that it's set to "v201603".

Thanks,
Josh, AdWords API Team

On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:
>
> Hi,
>
> I'm having same problem. 
> It just occured after I updated AdWords API via Composer from v6.6 to last 
> version. So I don't think there is a missing file, etc.
>
> $campaignService = $user->GetService('ReportDefinitionService', 
> ADWORDS_VERSION);
> 
> *$selector = new Selector();*
> $selector->fields = $reportFields;
>
> Error is threw at second line that is bold. 
>
> Thanks, 
> Sabri
>
>
> 25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:
>>
>> I got this error after set up my php adwords api  from v201506 to new 
>> v201603.
>>
>> Fatal error: Class Selector not found in project 
>>
>> So uncommon error , did not find anything similar to find a solution.  
>>
>> Please help.
>>
>> Thanks
>> Anti 
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/795b2405-4c6e-4586-971b-1208ca5b3ef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Intermittent OAUTH_TOKEN_INVALID error

2016-04-29 Thread Latha S
We are getting intermittent OAUTH_TOKEN_INVALID errors, from different 
AdWords services, which I think occurs when the access token is not 
automatically refreshed.  After we get the OAUTH_TOKEN_INVALID error, our 
process continues with the same refresh token and we eventually get a new 
access token - which seems to indicate that the refresh token is actually 
valid.  

Is it an issue that we get these intermittent errors?  Is it expected that 
we will occasionally get an invalid token error?  We do retry (using 
exponential backoff) for temporary errors, but did not retry an invalid 
token error assuming that means we needed to generate a new refresh token. 
 Any help would be appreciated.

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/544ee536-6b2d-4bf6-a6c4-49972d384f0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Quisiera generar un reporte en una pagina php de mis campañas a través de la Api Adwords / I would like to generate a report on a php page of my campaigns through Adwords Api

2016-04-29 Thread infinium . pauta

Good morning , I followed all the steps of the API and all, but does not 
export any record me but does not give me any error, only I get blank page 
. I hope you can help me.

El lunes, 18 de abril de 2016, 17:09:13 (UTC-5), Shwetha Vastrad (AdWords 
API Team) escribió:
>
> Hi,
>
> You can use download_criteria_report 
> 
>  or download_criteria_report_as_stream_with_awql 
> 
>  examples 
> from the PHP client library. You need to change the report name and report 
> fields accordingly in the examples to get Campaign Performance Report 
> 
>  which 
> has statistics aggregated at campaign level. To get the fields available 
> for a report, you can use GetReportFields.php 
> 
> .
>
> Please check out our reporting basics guide 
>  for 
> more details.
>
> Regards,
> Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/18319f15-e981-4d04-abf2-171f91d13cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: None of my product listing ads have any clicks

2016-04-29 Thread 'Yin Niu' via AdWords API Forum
Hi, 

Did you use API to set up shopping campaign? What is CID of the account? 
And which campaign or ads you are having problem with? 

If you set up using AdWords UI, please contact AdWords support 
 or post question 
in AdWords forum . 

Thanks,
Yin, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cc70e55c-b856-4326-ad5b-90fa6560116b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: "error" : "invalid_grant", "error_description" : "Invalid code." while authenticating

2016-04-29 Thread 'Yin Niu' via AdWords API Forum
Hi, 

Could you be more specific about the problem? Are you having problem 
generating refresh token? What is the error you are getting. Please take a 
look at OAuth 2.0 Authentication guide 
 and 
you can also try it using OAuth playground 
.  

Thanks,
Yin, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b80239d2-c8a3-4f42-8395-10816c41da53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Overlooping budget found

2016-04-29 Thread 'Yin Niu' via AdWords API Forum
Hi Rodrigo, 

As I have mentioned in my reply, it's difficult to know when the updated 
budgetOrder is available as the bugetOrder is subjected to review. You can 
use BudgetOrderService to check budget status. For more information on this 
topic, please contact AdWords support 
 or post question 
on AdWords forum  if you would 
like to know more about that. 

Thanks,
Yin, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ef5f95f3-6535-42c3-9a6e-76f6c25bcf0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I am getting rate exceed error for standard account while using TargetingIdeaService

2016-04-29 Thread 'Yin Niu' via AdWords API Forum
Hello, 

Here are some suggestions 
 
that 
can help you with RateExceededError. Rate limits fluctuate based on 
different variables, including server load. Are you able to resend the 
requests after the retry? 

Thanks,
Yin, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/58cf7727-3d2f-4a49-a697-87c362935bb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgraded sitelink feeds final url

2016-04-29 Thread Janak Prajapati
Additional details to the same query -

This is the API response of one of the Sitelink feed item, we are receiving,

object(FeedItem)#4446 (14) {
  ["feedId"]=>
  string(8) "10270XXX"
  ["feedItemId"]=>
  string(9) "124967XXX"
  ["status"]=>
  string(7) "ENABLED"
  ["startTime"]=>
  NULL
  ["endTime"]=>
  NULL
  ["attributeValues"]=>
  array(5) {
[0]=>
object(FeedItemAttributeValue)#4438 (9) {
  ["feedAttributeId"]=>
  string(1) "1"
  ["integerValue"]=>
  NULL
  ["doubleValue"]=>
  NULL
  ["booleanValue"]=>
  NULL
  ["stringValue"]=>
  string(25) "What's New TEST"
  ["integerValues"]=>
  NULL
  ["doubleValues"]=>
  NULL
  ["booleanValues"]=>
  NULL
  ["stringValues"]=>
  NULL
}
[1]=>
object(FeedItemAttributeValue)#4429 (9) {
  ["feedAttributeId"]=>
  string(1) "3"
  ["integerValue"]=>
  NULL
  ["doubleValue"]=>
  NULL
  ["booleanValue"]=>
  NULL
  ["stringValue"]=>
  string(35) "Wholesale Prices Boots"
  ["integerValues"]=>
  NULL
  ["doubleValues"]=>
  NULL
  ["booleanValues"]=>
  NULL
  ["stringValues"]=>
  NULL
}
[2]=>
object(FeedItemAttributeValue)#4432 (9) {
  ["feedAttributeId"]=>
  string(1) "4"
  ["integerValue"]=>
  NULL
  ["doubleValue"]=>
  NULL
  ["booleanValue"]=>
  NULL
  ["stringValue"]=>
  string(31) "Buy all Boots TEST TEXT"
  ["integerValues"]=>
  NULL
  ["doubleValues"]=>
  NULL
  ["booleanValues"]=>
  NULL
  ["stringValues"]=>
  NULL
}
[3]=>
object(FeedItemAttributeValue)#4416 (9) {
  ["feedAttributeId"]=>
  string(1) "7"
  ["integerValue"]=>
  NULL
  ["doubleValue"]=>
  NULL
  ["booleanValue"]=>
  NULL
  ["stringValue"]=>
  string(118) 
"http://secure.mydomain.com/tracking/track.php?c=test&d=120&e=test%40gmail.com&u={lpurl}";
  ["integerValues"]=>
  NULL
  ["doubleValues"]=>
  NULL
  ["booleanValues"]=>
  NULL
  ["stringValues"]=>
  NULL
}
[4]=>
object(FeedItemAttributeValue)#4417 (9) {
  ["feedAttributeId"]=>
  string(1) "8"
  ["integerValue"]=>
  NULL
  ["doubleValue"]=>
  NULL
  ["booleanValue"]=>
  NULL
  ["stringValue"]=>
  NULL
  ["integerValues"]=>
  NULL
  ["doubleValues"]=>
  NULL
  ["booleanValues"]=>
  NULL
  ["stringValues"]=>
  array(1) {
[0]=>
string(148) 
"http://www.mydomain.com/collections/Boot?utm_source=google&utm_medium=ppc&utm_content={_sitelink}&utm_campaign={_mycampaign}";
  }
}
  }
  ["policyData"]=>
  NULL
  ["devicePreference"]=>
  NULL
  ["scheduling"]=>
  NULL
  ["campaignTargeting"]=>
  NULL
  ["adGroupTargeting"]=>
  NULL
  ["keywordTargeting"]=>
  NULL
  ["geoTargeting"]=>
  NULL
  ["urlCustomParameters"]=>
  NULL
}

On Friday, April 29, 2016 at 7:03:07 PM UTC+5:30, Anil wrote:
>
> Hello,
>
> According to 
> https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelinks
>  
> there are only 7 placeholders available in Sitelink Feed. 
> API Documentation says Final URL should be linked with placeholder 5 and 
> it seems correct when we check for our clients.
>
> But we have one client where Final url comes under Placeholder 8. While 
> changing final url through through API we have applied Final url with 
> placeholder 5 still next time it comes under placeholder 8.
>
> Is there any issues?
>
> Thanks
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1bede5d2-5f32-4dd3-90bc-7c6667e7c9c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can I test accounts linking using test account?

2016-04-29 Thread 'Anthony Madrigal' via AdWords API Forum
Hello,

Yes, you are correct. You cannot link production and test accounts 
together. If you want to use the API for a test account, you will need a 
production account. I do not think you necessarily have to have an active 
campaign running in the production account. Once you apply for the 
developer token via the production account, you can use that token and 
update your credentials 
 using your 
test account.

Please let me know if you have any other questions regarding this.

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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0dde3a08-6adf-4562-b313-9369550b5fc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Upgraded sitelink feeds final url

2016-04-29 Thread Anil
Hello,

According 
to 
https://developers.google.com/adwords/api/docs/appendix/placeholders#sitelinks 
there are only 7 placeholders available in Sitelink Feed. 
API Documentation says Final URL should be linked with placeholder 5 and it 
seems correct when we check for our clients.

But we have one client where Final url comes under Placeholder 8. While 
changing final url through through API we have applied Final url with 
placeholder 5 still next time it comes under placeholder 8.

Is there any issues?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a012668c-cc75-46b4-98a4-98b8ba591fbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automatically get ClientcustomerId from adwords api version v201601

2016-04-29 Thread 'Anthony Madrigal' via AdWords API Forum
Hi Bhasker,

I do not see anywhere in your code where you set the clientcustomerId. Are 
you sure you are setting it? Also, for the line " var customerService = 
(CustomerService)adWordsUser.GetService(AdWordsService.v201509.CustomerService);",
 
did you change v201509 to v201601?

If you have done all these things and are still getting this error, please 
*reply 
privately to author *the SOAP request and response you are getting.

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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/105269ea-2aba-4da2-9bc2-933912ffb5ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


None of my product listing ads have any clicks

2016-04-29 Thread Hersh Patel

Hi,

I have setup PLA but none of my pla has received any clicks or impressions. 
I do not know what i am doing wrong

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fe631829-d1b7-4042-83e6-c35ad166c172%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can I test accounts linking using test account?

2016-04-29 Thread jni
I followed the 
guide https://developers.google.com/adwords/api/docs/test-accounts
But I can not find if it's possible to test linking of accounts.
My application has the possiblity to invite customers to link to my MCC 
account. I would like to be able to test that flow.
In the guide it's written that I can use only Production Manager developer 
token, when I'm trying to link using this token I'm receiving an error: 
ManagedCustomerServiceError.TEST_ACCOUNT_LINK_ERROR
also from the guide:
*Important:* You cannot link test manager or AdWords accounts to production 
manager accounts, or vice versa.
That means I can not test my functionality without creating real account 
with active campaign and billing address ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0d7ca4e8-a164-4caf-8969-39d191c656af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Automatically get ClientcustomerId from adwords api version v201601

2016-04-29 Thread Bhasker Vengala

I'm using adwords api version v201509 . now i want to migrate this version 
to v201601.

Here i'm getting error while accessing customer id and name.

Here is my code. 


AdWordsUser adWordsUser = new AdWordsUser();
(adWordsUser.Config as AdWordsAppConfig).DeveloperToken = 
Globals.ThisAddIn.AdWordsDeveloperToken;
(adWordsUser.Config as AdWordsAppConfig).OAuth2RefreshToken = 
refreshtoken;
(adWordsUser.Config as AdWordsAppConfig).OAuth2ClientId = 
Globals.ThisAddIn.AdWordsClientId;
(adWordsUser.Config as AdWordsAppConfig).OAuth2ClientSecret = 
Globals.ThisAddIn.AdWordsClientSecretId;

 var customerService = 
(CustomerService)adWordsUser.GetService(AdWordsService.v201509.CustomerService);
Customer customer = new Customer();
customer = customerService.get();


this code works fine , and i'm getting customer details from 
customerservice.

the problem is with v201601, i updated same here, here i'm getting error 
like *client_customer_id_invalid.*

Can anyone suggest me , how , i solve the issue.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3ba8e3de-b5bf-4338-a6b8-b6c7fc88a6ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AuthenticationError.NOT_ADS_USER

2016-04-29 Thread radley . anaya
I keep getting this error
"AuthenticationError.NOT_ADS_USER"

I know this error means:
Reason*NOT_ADS_USER*SummaryThe login used to generate the access token is 
not associated with any AdWords account.Common causesThe login information 
provided corresponds to a Google account that does not have AdWords enabled.
The problem is that* I am able to use these same credentials in the C# 
sample asp.net application and get authenticated. *

Why would these credentials work in one instance but not this instance?

Here is my code:

using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GoogleAdWordsReportPuller
{
class FileGrabber
{

string reportDefinition = @"https://adwords.google.com/api/adwords/cm/v201603"";>
  
AdGroupName
Date
AdGroupStatus
CampaignName
Impressions
Clicks
Conversions
Cost
  
  Custom Adgroup Performance Report
  ADGROUP_PERFORMANCE_REPORT
  YESTERDAY
  CSV
";


string developerToken = "x";
string clientId = 
"xxx.apps.googleusercontent.com";
string accessToken = 
"x"; // actually a 
refresh token


string accountId = "585-353-4323"; // client account id

string clientUrl = 
"https://adwords.google.com/api/adwords/reportdownload/v201603";;


public void GetReport()
{

//Host: adwords.google.com
//User-Agent: curl, gzip
//Accept: */*
//Accept-Encoding: gzip
//Authorization: Bearer [Enter OAuth 2.0 access token here]
//developerToken: [Enter developerToken here]
//clientCustomerId: [Enter clientCustomerID here]
//Content-Length: 784
//Expect: 100-continue
//Content-Type: multipart/form-data; 
boundary=12d01fae60c7b559

var client = new RestClient(clientUrl);
var request = new RestRequest(Method.POST);

// set http headers
request.AddHeader("Host", "adwords.google.com");
request.AddHeader("User-Agent", "curl, gzip");
request.AddHeader("Accept", "*/*");
request.AddHeader("Accept-Encoding", "gzip");
request.AddHeader("Authorization", accessToken); // tried 
 request.AddHeader("Authorization", "Bearer " + accessToken); 
request.AddHeader("developerToken", developerToken);
request.AddHeader("clientCustomerId", accountId);
request.AddHeader("Content-Length", "784");
//request.AddHeader("Expect", "100-continue");
request.AddHeader("Content-Type", "multipart/form-data; 
boundary=12d01fae60c7b559");

//set request parameters
request.AddParameter("__rdxml", reportDefinition); // adds to 
POST or URL querystring based on Method

// execute the request
IRestResponse response = client.Execute(request);
var content = response.Content; // raw content as string

}

}
}



I'm wondering if I need an access token instead because according to the 
documentation: 
https://developers.google.com/adwords/api/docs/guides/reporting#complete-example
The http header has a field that says: 

POST /api/adwords/reportdownload/v201601 HTTP/1.1
Host: adwords.google.com
User-Agent: curl, gzip
Accept: */*
Accept-Encoding: gzip
Authorization: Bearer [Enter OAuth 2.0 access token here]
developerToken: [Enter developerToken here]
clientCustomerId: [Enter clientCustomerID here]
Content-Length: 784
Expect: 100-continue
Content-Type: multipart/form-data; 
boundary=12d01fae60c7b559


Can anyone help me?

Thanks


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/72cab096-9d2b-4737-a36a-a2f21564df63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: NOT_ADS_USER error with OfflineConversionFeedService

2016-04-29 Thread radley . anaya
How do you determine who is the right person. I am also getting this error 
and I cannot solve the issue. I have used my refresh token in the sample C# 
application and was able to pass authentication. Is it because this request 
needs an access token and not a refresh token?? Can we use refresh tokens 
instead of access tokens here??

On Monday, January 13, 2014 at 12:51:07 PM UTC-8, Ray Tsang (AdWords API 
Team) wrote:
>
> Michel,
>
> It looks like you are using the AdWords API Java client library.  In your 
> ads.properties, you should have configured the client ID, client secret, 
> and I assume you also have a refresh token configured.
>
> The AuthenticationError.NOT_ADS_USER indicates that the logged user 
> doesn't have access to any AdWords account.
>
> The refresh token must belong to a user that has access the the AdWords 
> account.  I'm suspecting that the refresh token may be for a different 
> user.  When granting the authorization - please make sure the right user 
> was logged in.
>
> Thanks,
>
> --
> Ray Tsang (AdWords API Advisor)
>
> On Tuesday, January 7, 2014 10:01:07 PM UTC-5, Michel Tricot wrote:
>>
>> Hi,
>>
>> We recently worked on integrating the OfflineConversionFeedService API in 
>> our system.
>>
>> We have the authentication mechanism working and we have been able to 
>> upload a conversion sample to a real account that we used for test.
>>
>> Two weeks ago we tried to upload real conversions on behalf of our 
>> customer. This customer gave us permissions to upload conversions on their 
>> account thru the OAuth authentication.
>>
>> Here is a test code that we use to verify that the configuration should 
>> work:
>>
>>   String clientId = "[truncated]";
>>   String clientSecret = "[truncated]";
>>   String developerToken = "[truncated]";
>>
>>   Credential oauthCredentials = new OfflineCredentials.Builder()
>>   .forApi(OfflineCredentials.Api.ADWORDS)
>>   .withClientSecrets(clientId, clientSecret)
>>   .withRefreshToken("[truncated]") // our customer refresh token
>>   .build().generateCredential();
>>
>>   AdWordsSession session = new AdWordsSession.Builder()
>>   .withOAuth2Credential(oauthCredentials)
>>   .withDeveloperToken(developerToken)
>>   .withClientCustomerId("[truncated]") // our customer client 
>> customer id
>>   .withUserAgent("[truncated]")
>>   .build();
>>
>>   AdWordsServices adWordsServices = new AdWordsServices();
>>
>>   String gclid = "[truncated]"; // google click id that we got from the 
>> click
>>
>>   String conversionName = "[truncated]"; // our customer conversion name
>>   String conversionTime = getTimestampForApi(System.currentTimeMillis());
>>   Double conversionValue = 2.0;
>>
>>   OfflineConversionFeedServiceInterface offlineConversionFeedService = 
>> adWordsServices.get(session, OfflineConversionFeedServiceInterface.class);
>>
>>   OfflineConversionFeed feed = new OfflineConversionFeed();
>>   feed.setGoogleClickId(gclid);
>>   feed.setConversionName(conversionName);
>>   feed.setConversionTime(conversionTime);
>>   feed.setConversionValue(conversionValue);
>>
>>   OfflineConversionFeedOperation offlineConversionOperation = new 
>> OfflineConversionFeedOperation();
>>   offlineConversionOperation.setOperator(Operator.ADD);
>>   offlineConversionOperation.setOperand(feed);
>>
>>   OfflineConversionFeedReturnValue offlineConversionReturnValue = 
>> offlineConversionFeedService
>>   .mutate(new 
>> OfflineConversionFeedOperation[]{offlineConversionOperation});
>>
>>
>> We validated with one of Google's employee that this code is working when 
>> we ran tests on the account he gave us.
>>
>> For our production customer we keep getting the following error:
>>
>> 
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>> http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";>
>> 
>> https://adwords.google.com/api/adwords/cm/v201309"; 
>> soapenv:mustUnderstand="0">
>> [truncated]
>> [truncated]
>> [truncated] (AwApi-Java, AdWords-Axis/1.20.0, 
>> Common-Java/1.20.0, Axis/1.4, Java/1.6.0_65, maven)
>> false
>> false
>> 
>> 
>> 
>> https://adwords.google.com/api/adwords/cm/v201309
>> ">
>> 
>> ADD
>> 
>> [truncated]
>> [truncated]
>> 20140107 184907
>> 2.0
>> 
>> 
>> 
>> 
>> 
>>
>> 14/01/07 18:49:09 WARN AdWordsServiceClient.soapXmlLogger: SOAP Response:
>> 
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> https://adwords.google.com/api/adwords/cm/v201309";>
>> [truncated]
>> OfflineConversionFeedService
>> mutate
>> 0
>> 57
>> 
>> 
>> 
>> 
>> soap:Server
>> [*AuthenticationError.N

"error" : "invalid_grant", "error_description" : "Invalid code." while authenticating

2016-04-29 Thread Mhamad Canaan
Hi everyone,

I want to authenticate users to access there accounts using the refresh 
token and the clientCustomerID, but whenever I click allow and go back with 
the code is the url this error pops up.
what is wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a5e02d26-122e-4496-a0a2-90391a3219ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Overlooping budget found

2016-04-29 Thread rodgarjim

Hi Yin,

Yes, I can to create a new BudgetOrder if I wait between 5 and 15 min. But 
I don't want to wait so time, from I modify the endDate of 
BudgetOrder(using operator SET) until I create a new BudgetOrder. What is 
the time min and max i have to wait between modify the current BudgetOrder 
and create the new BudgetOrder, for the API doesn't return the exception:
"Overlapping budgets found".

Sorry, but my English isn't very good.


Thanks.

Rodrigo.


El jueves, 28 de abril de 2016, 18:30:40 (UTC+2), Yin Niu escribió:
>
> Hi Rodrigo,
>
> Are you saying after 15 minutes, you were able to create a new budgetOrder 
> or you still can't? It does take sometime for a budgetOrder to get 
> approved. You can use BudgetOrderService to check budgetOrder status 
> .
>  
> You can contact AdWords support 
>  or post 
> question on AdWords forum  if 
> you would like to know more about that. 
>
> Thanks,
> Yin, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b2767ad3-25a1-49a3-90d9-935e65d50660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how do i get benchmarked performance via Api

2016-04-29 Thread Anand T

no

It is the reports produced by Google

On Friday, April 29, 2016 at 12:16:35 AM UTC+5:30, Shwetha Vastrad (AdWords 
API Team) wrote:
>
> Hi Anand,
>
> Could you provide the source of the report attached? Is this a report you 
> generated from the AdWords UI?
>
> Thanks,
> Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f467c8b0-25c5-4cfe-a448-58463fea5085%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.