Re: INVALID_CONJUNCTION_OPERANDS on upload location extension filter with device platform

2015-03-25 Thread Sergey Petrov
Hi Josh
Thank you for quick response, but issue not in device field. Maybe I wan't 
clear before. 
Issue in operands conjuctions, because I can run request device preferences 
with easy filter (only business name or only category) but can't do that 
with complex one (business name and category). Looks like we have some sort 
of operands limitation which isn't documented. 

-- best regards, Sergey 

вторник, 24 марта 2015 г., 19:46:02 UTC+2 пользователь Josh Radcliff 
(AdWords API Team) написал:

 Hi,

 You can check the last column of the report fields list 
 https://developers.google.com/adwords/api/docs/appendix/reports#campaign to 
 see valid filtering values. For the *Device* field, the valid values to 
 use in predicates are:

 DESKTOP
 HIGH_END_MOBILE
 TABLET

 Thanks,
 Josh, Adwords API Team

 On Tuesday, March 24, 2015 at 1:38:22 PM UTC-4, Sergey Petrov wrote:

 Hi, all 

 During run a request to add filter to campaign level which will filter 
 account level location extension with business name filter and category I 
 get INVALID_CONJUNCTION_OPERANDS error. 

 Structure of matching function below: 

  AND
 
 
 AND
 
 
 EQUALS
 
 FeedAttributeOperand
 XXX
 1
   
   
 ConstantOperand
 STRING
 NONE
 bn
 
   
   
 CONTAINS_ANY
 
 FeedAttributeOperand
 XXX
 9
   
   
 ConstantOperand
 STRING
 NONE
 cat 1
   
 
   
 EQUALS
 
 DEVICE_PLATFORM
 
 
 STRING
 Desktop  
 
 7

 In case I don't have device platform it goes ok. 

 Can't find any limitation rules for device platform usages. 

 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0295564c-8cd9-41fc-bbe4-cdc23413d649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: INVALID_PROXIMITY_ADDRESS occurs for valid data episodically

2015-03-25 Thread Dzmitry Zahusta
Hi,

The same issue again with:


   - 98801,Washington,United States
   - San Leandro,California,United States
   - Post Falls,Idaho,United States
   - Knoxville,Tennessee,United States
   
As always - if you resubmit these addresses again later, it will work with 
no errors.
Let's start investigating it...

среда, 18 марта 2015 г., 0:40:37 UTC+3 пользователь Josh Radcliff (AdWords 
API Team) написал:

 Hi,

 Thanks for sending over the new addresses where you saw this issue. I'll 
 see if I can track down more information on the requests that failed and 
 get back to you.

 Cheers,
 Josh, AdWords API Team

 On Tuesday, March 17, 2015 at 3:08:08 AM UTC-4, Dzmitry Zahusta wrote:

 The problem still persist. I reworked the code to get GeoPoint 
 byGeoLocationService 

 GeoLocationSelector selector = new GeoLocationSelector();
 selector.setAddresses(addresses.toArray(new Address[0]));
 GeoLocation[] geoLocationResult = geoLocationService.get(selector
 );

 And I see in logs that for the following addresses:

- Augusta,Georgia,United States
- 30909,Georgia,United States

 The code returns InvalidGeoLocation with geoPoint = null.
 After repeating code a bit later with the same data all is working in a 
 right way

 As I can not provide you request Ids because I'm submitting data by Java 
 API which information can help you to investigate the issue? 

 вторник, 10 марта 2015 г., 18:14:33 UTC+3 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 At the moment, you would have to get them from your SOAP logs. We have 
 an open issue for improving the capture of request IDs in the library 
 https://github.com/googleads/googleads-java-lib/issues/4.

 Thanks,
 Josh, AdWords API Team

 On Tuesday, March 10, 2015 at 9:43:11 AM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 I've already changed my logic to what you mentioned (set geoPoint 
 together with Address object). 
 but can you please clarify how I can get request IDs in Java code?

 вторник, 10 марта 2015 г., 16:10:33 UTC+3 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 I've tried reproducing this behavior multiple times but in all cases 
 the address you provided is accepted.

 One thing you may want to do is use GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201502/GeoLocationService
  
 to first validate your *address*. This will give you back a 
 *GeoLocation* if the address is valid, whose geoPoint 
 https://developers.google.com/adwords/api/docs/reference/v201502/GeoLocationService.InvalidGeoLocation#geoPoint
  
 you can then use in your Proximity object 
 https://developers.google.com/adwords/api/docs/reference/v201502/CampaignCriterionService.Proximity#geoPoint
  instead 
 of the address. If the address is invalid, it will give you back an 
 InvalidGeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201502/GeoLocationService.InvalidGeoLocation
  
 object.

 If you see this inconsistency again, please capture the request IDs of 
 the failed requests and send them over.

 Cheers,
 Josh, AdWords API Team

 On Monday, March 9, 2015 at 11:38:25 AM UTC-4, Dzmitry Zahusta wrote:

 Yep, you are right but it's just typo in my example. In reality all 
 is set in a right way.

 понедельник, 9 марта 2015 г., 18:28:52 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 Hi,

 I just noticed that in your code snippet, you are setting the 
 *provinceName* to *US* and the *countryCode* to *Tennessee*, which 
 is invalid. You should be setting the *provinceName* to *Tennessee* and 
 the *countryCode* to *US*.

 Thanks,
 Josh, AdWords API Team

 On Friday, March 6, 2015 at 1:33:08 PM UTC-5, Dzmitry Zahusta wrote:

 Unfortunately I can provide only Ids of problematic campaigns:

 '276257069' ('US Georgia Warner Robins')
 '264091949' ('US California Hayward')
 '243337469' ('US Tennessee Alcoa')

 пятница, 6 марта 2015 г., 1:35:47 UTC+3 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 Do you happen to have request IDs from a response for a request 
 that succeeded and a request that failed?

 Thanks,
 Josh, AdWords API Team

 On Wednesday, March 4, 2015 at 1:57:47 AM UTC-5, Dzmitry Zahusta 
 wrote:

 Hi!

 While performing the following 
 code INVALID_PROXIMITY_ADDRESS occurs episodically

 Address address = new Address();
 address.setCityName(Johnson City);
 address.setCountryCode(Tennessee);
 address.setProvinceName(US);

 Proximity proximity = new Proximity();
 proximity.setAddress(address);
 
 proximity.setRadiusDistanceUnits(ProximityDistanceUnits.MILES);
 proximity.setRadiusInUnits(30.0);

 CampaignCriterion campaignCriterion = new 
 CampaignCriterion();
 campaignCriterion.setCampaignId(campaignId);
 campaignCriterion.setCriterion(proximity);

 CampaignCriterionOperation operation = new 
 CampaignCriterionOperation();
 

About Upgrade URLs

2015-03-25 Thread Hudarsono Hu
Hi There,

Have 2 questions for upgraded urls :

1.  If we have tracking template url and final urls, does it means that 
user will go to the tracking template url first, before being redirect to 
final url?

2.  Could we have different root domain for both tracking url and final 
url?  (ex : tracking template url : tracker.agency.com   , final_url = 
car.com/sport)

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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2f4b1595-263a-4e5f-a862-b466683978fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to change the value of tracking parameters using the Adwords API?

2015-03-25 Thread Thanet Knack Praneenararat (AdWords API Team)
Hi,

Provided that your ads have final URLs, tracking templates and custom 
parameters ready, the answer to your question is yes.

You don't need to delete existing ads and create new ads in order to change 
your custom parameter, e.g., _mytrack.

As for your information, you may find this page 
https://developers.google.com/adwords/api/docs/guides/upgraded-urls#tracking_template
 
and this guide 
https://developers.google.com/adwords/api/docs/guides/upgrade-destination-urls
 
useful for what you would like to do.

Cheers,
Thanet, AdWords API Team


On Wednesday, March 25, 2015 at 2:38:22 AM UTC+9, Werner Emde wrote:

 Hi,

 we are evaluating the Upgraded URL functions. We understood that one major 
 advantage of using tracking templates is, that it is possible to change 
 track values easily (i.e., there is no need to wait for an approval of the 
 (unchanged) ad.)

 Our question: 

 Suppose, we have a custom track parameter, e.g {_mytrack}, with no initial 
 value in the beginning (inherited from the campaign, the ad belongs to).

 We would like to use the Adwords API to set the value of the track 
 parameter to 4711.

 We assume that this is possible without the need to delete the existing ad 
 and to insert a new one. Correct?

 Best regards,

 Werner


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/84f9f42d-ba05-4d90-bd67-daa6c14c4251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Отчет рекламной компании [PHP]

2015-03-25 Thread Сергей Бакстон
Пробовал, но в данный момент выводит одну строку и никакой конкретной 
информации по каждой компании(не знаю, может проблема в том что часть 
компаний приостановленна).

вторник, 24 марта 2015 г., 19:41:39 UTC+2 пользователь Josh Radcliff 
(AdWords API Team) написал:

 Hi,

 Sorry, I can only answer in English, but the Reporting guide 
 https://developers.google.com/adwords/api/docs/guides/reporting contains 
 an example of how to do this. In addition, each client library 
 https://developers.google.com/adwords/api/docs/clientlibraries contains 
 a *DownloadCriteriaReport* example that shows how to run a report using 
 the library.

 Thanks,
 Josh, AdWords API Team

 On Tuesday, March 24, 2015 at 1:37:18 PM UTC-4, Сергей Бакстон wrote:

 Доброе время суток. Возник следующий вопрос - как получить отчет по 
 конкретной рекламной компании, имея ее ID? Буду признателен за помощь.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e9a9e492-734e-40b6-812e-01cbd8311e9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automated Rules In Adwords API

2015-03-25 Thread fruwolt
Hi,

I was just wondering if there're any updates on this ...? (automated rules 
via api)? 

Thanks,
Frank



Am Freitag, 22. November 2013 13:40:26 UTC+1 schrieb Håvard Ørbech:

 Hi, 

 AdWords account can be used by both users who use the API and other users 
 who dont.

 As an example, I now have to manually edit/delete about 100 rules in an 
 account.
 In the interface I cant sort by execution date, and I cant even copypaste 
 the relevant ad groups... I need to hover the mouse over the information 
 bubble and manually - m a n u a l l y - write down each ad group name.

 Just fetching a list of automated rules with all relevant data would be a 
 revolutionary improvement... a simple CSV would do.

 Access to automated rules via the API would be useful to
 - Edit rules created by users without API access.
 - Create rules that can later be edited by users without API access.

 Of course, nothing beats the information bubble in terms of speed and ease 
 of use.


 kl. 22:39:13 UTC+1 fredag 1. mars 2013 skrev David Torres følgende:

 Hi Evan,

 I'm afraid there are still no plan to include this feature in the API.

 Best,

 - David Torres - AdWords API Team

 On Monday, February 25, 2013 1:31:10 PM UTC-5, Evan Halley wrote:

 Hi Eric,

 Is there any update with regard to bringing automated rule access to the 
 Adwords API?

 Thanks,

 Evan

 On Monday, April 11, 2011 4:44:42 PM UTC-4, Eric Koleda wrote:

 Hi,

 There is no feature request tracker for the API, but I'll make sure to 
 pass your feedback to the correct people.

 Thanks,
 - Eric



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bfd58557-30f4-446a-8245-605dc002bfd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get top 5 keywords by Clicks

2015-03-25 Thread Peter Kingswell
Hi,

this has been asked a few years ago but I'd like to know as of the current 
API version, what the most efficient/best way of doing this is.  Ideally 
the call would take parameters/predicates along the lines of:

start date
end date
sort order e.g. Clicks | CPC | CTR
parent entity ID - i.e. Ad Group ID or Campaign ID.  *This would be 
optional and query all keywords in the account if omitted.*

Many thanks,
Peter

p.s. the forum editor's bullet-point feature seems to be broken (Win/Chrome)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1e0adc6b-db42-42b4-8f50-e98d57926483%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Отчет рекламной компании [PHP]

2015-03-25 Thread Josh Radcliff (AdWords API Team)
Hi,

Could you share the reporting request (with any sensitive information 
removed) you are sending?

Thanks,
Josh, AdWords API Team

On Wednesday, March 25, 2015 at 6:22:30 AM UTC-4, Сергей Бакстон wrote:

 Пробовал, но в данный момент выводит одну строку и никакой конкретной 
 информации по каждой компании(не знаю, может проблема в том что часть 
 компаний приостановленна).

 вторник, 24 марта 2015 г., 19:41:39 UTC+2 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 Sorry, I can only answer in English, but the Reporting guide 
 https://developers.google.com/adwords/api/docs/guides/reporting contains 
 an example of how to do this. In addition, each client library 
 https://developers.google.com/adwords/api/docs/clientlibraries contains 
 a *DownloadCriteriaReport* example that shows how to run a report using 
 the library.

 Thanks,
 Josh, AdWords API Team

 On Tuesday, March 24, 2015 at 1:37:18 PM UTC-4, Сергей Бакстон wrote:

 Доброе время суток. Возник следующий вопрос - как получить отчет по 
 конкретной рекламной компании, имея ее ID? Буду признателен за помощь.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9c352658-bcea-437a-877a-62b984dbfb20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pulling location reports

2015-03-25 Thread Visar
Hi,

I'm trying to pull a campaign level report which has data segmented by *TV 
Region*. This is possible in the AdWords interface. I'm currently trying to 
do this using the *GEO_PERFORMANCE_REPORT*, however, I can't find any 
suitable fields for segmenting by TV region. Is this possible using reports?

Thanks
Visar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f64a2ca9-598d-4695-a4ef-b5ccb4e3ee39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Migration from clientLogin to oAuth2

2015-03-25 Thread Derek Gray
I am experiencing the exact same problem and I can't figure out where I'm 
going wrong. Should I send over my source code? 

On Monday, 20 October 2014 19:05:08 UTC+1, Josh Radcliff (AdWords API Team) 
wrote:

 Hi,

 Could you send a screenshot of your application setup from the Developers 
 Console *only to me* by clicking *Reply to Author*?

 Thanks,
 Josh, AdWords API Team

 On Monday, October 20, 2014 1:09:09 PM UTC-4, Shruti wrote:

 Hi,

 I have created the client ID for the native application (same as 
 installed application, I believe).
 I have been following the steps shown on - 
 https://www.youtube.com/watch?v=WifY2fFyaMw for the native application.

 Thanks

 On Monday, October 20, 2014 12:50:08 PM UTC-4, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi,

 I see - I think the problem is that the project you created in the 
 Developers Console is a *Web application*, but OAuthTokenGenerator.exe 
 assumes you have a *Native application*. If you create a *Native 
 application* as described here 
 https://github.com/googleads/googleads-dotnet-lib/wiki/How-to-create-OAuth2-client-id-and-secret#1-native-application
  and 
 use that application's client ID and client secret, then the generator 
 should work as expected.

 As an aside, what's happening right now with your *Web application* is 
 that after you authorize, the OAuth server is redirecting you to your *Web 
 application*'s redirect URL. See the OAuth Web application flow 
 https://developers.google.com/accounts/docs/OAuth2#webserver for 
 details.

 Cheers,
 Josh, AdWords API Team

 On Monday, October 20, 2014 11:16:19 AM UTC-4, Shruti wrote:

 Hi Josh,

 Thanks for the reply. I have gone through the step by step instructions 
 for generating the refresh token.

 I'm using the OAuthTokenGenerator.exe, entering my clientID and the 
 client secret after which I can see the consent screen.
 Once I click the 'Accept'  button, I see a screen showing RavenDB 
 documents which are empty. (Please see screen shot in my previous post).

 Not sure if I am missing something or if the exe is not working as 
 expected.

 Thanks.

 On Saturday, October 18, 2014 8:58:52 AM UTC-4, Josh Radcliff (AdWords 
 API Team) wrote:

 Hi,

 Sorry to hear this process has been frustrating for you. Have you 
 looked at the step-by-step instructions for OAuth2 on the .NET library's 
 wiki pages?


 https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2TokenGenerator

 The *invalid_client* message you received in step 5 usually means 
 that the *client ID *or *client secret* are incorrect. If that's not 
 the issue and the step-by-step instructions don't help, please post a 
 reply 
 here. Note that if you need to send any sensitive information along to me 
 for troubleshooting you can do so by clicking the *Reply to Author*
  option.

 Thanks,
 Josh, AdWords API Team

 On Friday, October 17, 2014 3:55:23 PM UTC-4, Shruti wrote:

 Hi,

 I'm trying to migrate an application from using ClientLogin to 
 oAuth2. I have followed the instructions as given here - 
 https://developers.google.com/adwords/api/docs/guides/clientlogin-to-oauth2-single-mcc
  
 and 
 https://developers.google.com/adwords/api/docs/guides/authentication

 As indicated, I have 
 1. created a new project in the developer console.
 2. added credentials for installed application and generated the 
 clientId and client secret.
 3. set up the consent form with email and the product name
 4. used the client library utility to generate the authorization code
 5. Copied the authorization code back to the client library utility 
 to exchange it for access token and the refresh token (which resulted in 
 invalid client)

 6. So, I finally I used the oauth playground (note - I used the 
 sandbox scope) to get the access token and refresh token and used these 
 in 
 my application config.

 But still get the below error - 

 {Failed to refresh access token.\n{\n  \error\ : 
 \unauthorized_client\\n}}

 I find all this process just to obtain the authorization to access my 
 older adwords account too frustrating. Can you please help me identify 
 if 
 I'm missing anything here?

 Any urgent help will 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 

Re: Migration from clientLogin to oAuth2

2015-03-25 Thread Josh Radcliff (AdWords API Team)
Hi,

Did you confirm that you are creating a *native/installed application* in 
the cloud console?

Also, have you gone through the OAuth wiki page for the client library you 
are using? That page will contain step-by-step instructions for configuring 
the library for OAuth.

Thanks,
Josh, AdWords API Team

On Wednesday, March 25, 2015 at 11:11:34 AM UTC-4, Derek Gray wrote:

 I am experiencing the exact same problem and I can't figure out where I'm 
 going wrong. Should I send over my source code? 

 On Monday, 20 October 2014 19:05:08 UTC+1, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi,

 Could you send a screenshot of your application setup from the Developers 
 Console *only to me* by clicking *Reply to Author*?

 Thanks,
 Josh, AdWords API Team

 On Monday, October 20, 2014 1:09:09 PM UTC-4, Shruti wrote:

 Hi,

 I have created the client ID for the native application (same as 
 installed application, I believe).
 I have been following the steps shown on - 
 https://www.youtube.com/watch?v=WifY2fFyaMw for the native application.

 Thanks

 On Monday, October 20, 2014 12:50:08 PM UTC-4, Josh Radcliff (AdWords 
 API Team) wrote:

 Hi,

 I see - I think the problem is that the project you created in the 
 Developers Console is a *Web application*, but OAuthTokenGenerator.exe 
 assumes you have a *Native application*. If you create a *Native 
 application* as described here 
 https://github.com/googleads/googleads-dotnet-lib/wiki/How-to-create-OAuth2-client-id-and-secret#1-native-application
  and 
 use that application's client ID and client secret, then the generator 
 should work as expected.

 As an aside, what's happening right now with your *Web application* is 
 that after you authorize, the OAuth server is redirecting you to your *Web 
 application*'s redirect URL. See the OAuth Web application flow 
 https://developers.google.com/accounts/docs/OAuth2#webserver for 
 details.

 Cheers,
 Josh, AdWords API Team

 On Monday, October 20, 2014 11:16:19 AM UTC-4, Shruti wrote:

 Hi Josh,

 Thanks for the reply. I have gone through the step by step 
 instructions for generating the refresh token.

 I'm using the OAuthTokenGenerator.exe, entering my clientID and the 
 client secret after which I can see the consent screen.
 Once I click the 'Accept'  button, I see a screen showing RavenDB 
 documents which are empty. (Please see screen shot in my previous post).

 Not sure if I am missing something or if the exe is not working as 
 expected.

 Thanks.

 On Saturday, October 18, 2014 8:58:52 AM UTC-4, Josh Radcliff (AdWords 
 API Team) wrote:

 Hi,

 Sorry to hear this process has been frustrating for you. Have you 
 looked at the step-by-step instructions for OAuth2 on the .NET library's 
 wiki pages?


 https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2TokenGenerator

 The *invalid_client* message you received in step 5 usually means 
 that the *client ID *or *client secret* are incorrect. If that's not 
 the issue and the step-by-step instructions don't help, please post a 
 reply 
 here. Note that if you need to send any sensitive information along to 
 me 
 for troubleshooting you can do so by clicking the *Reply to Author*
  option.

 Thanks,
 Josh, AdWords API Team

 On Friday, October 17, 2014 3:55:23 PM UTC-4, Shruti wrote:

 Hi,

 I'm trying to migrate an application from using ClientLogin to 
 oAuth2. I have followed the instructions as given here - 
 https://developers.google.com/adwords/api/docs/guides/clientlogin-to-oauth2-single-mcc
  
 and 
 https://developers.google.com/adwords/api/docs/guides/authentication

 As indicated, I have 
 1. created a new project in the developer console.
 2. added credentials for installed application and generated the 
 clientId and client secret.
 3. set up the consent form with email and the product name
 4. used the client library utility to generate the authorization code
 5. Copied the authorization code back to the client library utility 
 to exchange it for access token and the refresh token (which resulted 
 in 
 invalid client)

 6. So, I finally I used the oauth playground (note - I used the 
 sandbox scope) to get the access token and refresh token and used these 
 in 
 my application config.

 But still get the below error - 

 {Failed to refresh access token.\n{\n  \error\ : 
 \unauthorized_client\\n}}

 I find all this process just to obtain the authorization to access 
 my older adwords account too frustrating. Can you please help me 
 identify 
 if I'm missing anything here?

 Any urgent help will 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 

Re: Conversion Optimzer bidType Max CPA not available via Adwords API?

2015-03-25 Thread Josh Radcliff (AdWords API Team)
Hi,

I confirmed that the API does not currently let you differentiate between 
the two UI options. Unfortunately, I don't have a way to work around this 
issue at this time.

Cheers,
Josh, AdWords API Team

On Thursday, March 19, 2015 at 4:07:05 PM UTC-4, Josh Radcliff (AdWords API 
Team) wrote:

 Hi,

 Thanks for the details. I'm going to follow up with a bidding expert, but 
 as far as I can tell, the API is not able to differentiate between the two 
 options in the UI of *Max CPA* and *Target CPA*.

 Thanks,
 Josh, AdWords API Team

 On Thursday, March 19, 2015 at 3:17:49 AM UTC-4, Robert Rodakowski wrote:

 Hi Josh,

 Thanks for your replay. CampaignId = 362760732. 
 Below CampaignService response:

 response
   header
 requestId0005119ee14a09c10aec3f8634002f1a/requestId
 serviceNameCampaignService/serviceName
 methodNameget/methodName
 operations0/operations
 responseTime159/responseTime
   /header
   rval
 entries type=array
   elem
 settings type=array /
 endDate nil=true /
 biddingStrategyConfiguration
   biddingStrategySource nil=true /
   biddingScheme
 pricingModeCLICKS/pricingMode
 bidTypeTARGET_CPA/bidType
 BiddingScheme.Type type=string
 ConversionOptimizerBiddingScheme/BiddingScheme.Type
   /biddingScheme
   bids type=array /
   biddingStrategyId nil=true /
   biddingStrategyName nil=true /
   biddingStrategyType
   CONVERSION_OPTIMIZER/biddingStrategyType
 /biddingStrategyConfiguration
 conversionOptimizerEligibility
   rejectionReasons type=array
 elemNOT_CPC_CAMPAIGN/elem
   /rejectionReasons
   eligible0/eligible
 /conversionOptimizerEligibility
 trackingUrlTemplate nil=true /
 urlCustomParameters nil=true /
 labels type=array /
 networkSetting
   targetGoogleSearch1/targetGoogleSearch
   targetPartnerSearchNetwork
   0/targetPartnerSearchNetwork
   targetContentNetwork1/targetContentNetwork
   targetSearchNetwork1/targetSearchNetwork
 /networkSetting
 servingStatus nil=true /
 advertisingChannelTypeSEARCH/advertisingChannelType
 name type=stringrr5033 SEARCh with DISPLAY CONV/name
 id362760732/id
 frequencyCap nil=true /
 advertisingChannelSubType nil=true /
 startDate nil=true /
 adServingOptimizationStatus
 CONVERSION_OPTIMIZE/adServingOptimizationStatus
 forwardCompatibilityMap type=array /
 statusENABLED/status
 budget
   periodDAILY/period
   amount nil=true /
   deliveryMethod nil=true /
   referenceCount nil=true /
   name nil=true /
   isExplicitlyShared nil=true /
   budgetId nil=true /
   status nil=true /
 /budget
   /elem
 /entries
 Page.Type type=stringCampaignPage/Page.Type
 totalNumEntries1/totalNumEntries
   /rval
 /response

 While campaign's state in the AdWords UI in the attachment (screenshot).
  
 Best regards,
 Robert.


 W dniu środa, 18 marca 2015 23:27:52 UTC+1 użytkownik Josh Radcliff 
 (AdWords API Team) napisał:

 Hi Robert,

 If the type of bidding scheme returned is 
 ConversionOptimizerBiddingScheme 
 https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.ConversionOptimizerBiddingScheme,
  
 then the campaign is using the Conversion Optimizer bidding strategy. See 
 the *Descriptive name* for each API bidding strategy type in the table 
 in our Bidding Guide 
 https://developers.google.com/adwords/api/docs/guides/bidding. That 
 being said, could you send me your campaign IDs so I can confirm the 
 behavior?

 Regarding your second question, I'm not aware of any services that give 
 CPA bid suggestions. The *DataService*, *TargetingIdeaService*, and 
 *TrafficEstimatorService* all only give CPC bid information, not CPA.

 Thanks,
 Josh, AdWords API Team

 On Wednesday, March 18, 2015 at 6:30:48 AM UTC-4, Robert Rodakowski 
 wrote:

 Hello,

 API v201409
 After setting bidding strategy called Conversion Optimizer and setting 
 bid type = Max CPA, AdWords API returns me a campaign with bid type = 
 'TARGET_CPA'.  As described here 
 https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.ConversionOptimizerBiddingScheme
  

 *Bid type indicates if it is a Target CPA or Max CPA campaign.*But 
 MaxCPA is not mentioned in Enumerations. There is TARGET_CPA only.

 Is there any way to get the real bidType of this campaign (max cpa 
 expected) via API? In AdWords UI it is marked as Max CPA.

 The second question is: is there any way to get suggested bids (both: 
 Target CPA and Max CPA) via API while switching bidTypes?

 Kind regards,
 Robert.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and 

Re: INVALID_PROXIMITY_ADDRESS occurs for valid data episodically

2015-03-25 Thread Josh Radcliff (AdWords API Team)
Hi,

Thanks for sending over more examples. This time I was able to find the 
request IDs for your requests.

I reported this issue to the engineering team and provided your request 
IDs. I'll post back here as soon as I have an update.

Thanks,
Josh, AdWords API Team

On Wednesday, March 25, 2015 at 2:44:04 AM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 The same issue again with:


- 98801,Washington,United States
- San Leandro,California,United States
- Post Falls,Idaho,United States
- Knoxville,Tennessee,United States

 As always - if you resubmit these addresses again later, it will work with 
 no errors.
 Let's start investigating it...

 среда, 18 марта 2015 г., 0:40:37 UTC+3 пользователь Josh Radcliff (AdWords 
 API Team) написал:

 Hi,

 Thanks for sending over the new addresses where you saw this issue. I'll 
 see if I can track down more information on the requests that failed and 
 get back to you.

 Cheers,
 Josh, AdWords API Team

 On Tuesday, March 17, 2015 at 3:08:08 AM UTC-4, Dzmitry Zahusta wrote:

 The problem still persist. I reworked the code to get GeoPoint 
 byGeoLocationService 

 GeoLocationSelector selector = new GeoLocationSelector();
 selector.setAddresses(addresses.toArray(new Address[0]));
 GeoLocation[] geoLocationResult = geoLocationService.get(
 selector);

 And I see in logs that for the following addresses:

- Augusta,Georgia,United States
- 30909,Georgia,United States

 The code returns InvalidGeoLocation with geoPoint = null.
 After repeating code a bit later with the same data all is working in a 
 right way

 As I can not provide you request Ids because I'm submitting data by Java 
 API which information can help you to investigate the issue? 

 вторник, 10 марта 2015 г., 18:14:33 UTC+3 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 At the moment, you would have to get them from your SOAP logs. We have 
 an open issue for improving the capture of request IDs in the library 
 https://github.com/googleads/googleads-java-lib/issues/4.

 Thanks,
 Josh, AdWords API Team

 On Tuesday, March 10, 2015 at 9:43:11 AM UTC-4, Dzmitry Zahusta wrote:

 Hi,

 I've already changed my logic to what you mentioned (set geoPoint 
 together with Address object). 
 but can you please clarify how I can get request IDs in Java code?

 вторник, 10 марта 2015 г., 16:10:33 UTC+3 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 I've tried reproducing this behavior multiple times but in all cases 
 the address you provided is accepted.

 One thing you may want to do is use GeoLocationService 
 https://developers.google.com/adwords/api/docs/reference/v201502/GeoLocationService
  
 to first validate your *address*. This will give you back a 
 *GeoLocation* if the address is valid, whose geoPoint 
 https://developers.google.com/adwords/api/docs/reference/v201502/GeoLocationService.InvalidGeoLocation#geoPoint
  
 you can then use in your Proximity object 
 https://developers.google.com/adwords/api/docs/reference/v201502/CampaignCriterionService.Proximity#geoPoint
  instead 
 of the address. If the address is invalid, it will give you back an 
 InvalidGeoLocation 
 https://developers.google.com/adwords/api/docs/reference/v201502/GeoLocationService.InvalidGeoLocation
  
 object.

 If you see this inconsistency again, please capture the request IDs 
 of the failed requests and send them over.

 Cheers,
 Josh, AdWords API Team

 On Monday, March 9, 2015 at 11:38:25 AM UTC-4, Dzmitry Zahusta wrote:

 Yep, you are right but it's just typo in my example. In reality all 
 is set in a right way.

 понедельник, 9 марта 2015 г., 18:28:52 UTC+3 пользователь Josh 
 Radcliff (AdWords API Team) написал:

 Hi,

 I just noticed that in your code snippet, you are setting the 
 *provinceName* to *US* and the *countryCode* to *Tennessee*, which 
 is invalid. You should be setting the *provinceName* to *Tennessee* 
 and 
 the *countryCode* to *US*.

 Thanks,
 Josh, AdWords API Team

 On Friday, March 6, 2015 at 1:33:08 PM UTC-5, Dzmitry Zahusta wrote:

 Unfortunately I can provide only Ids of problematic campaigns:

 '276257069' ('US Georgia Warner Robins')
 '264091949' ('US California Hayward')
 '243337469' ('US Tennessee Alcoa')

 пятница, 6 марта 2015 г., 1:35:47 UTC+3 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 Do you happen to have request IDs from a response for a request 
 that succeeded and a request that failed?

 Thanks,
 Josh, AdWords API Team

 On Wednesday, March 4, 2015 at 1:57:47 AM UTC-5, Dzmitry Zahusta 
 wrote:

 Hi!

 While performing the following 
 code INVALID_PROXIMITY_ADDRESS occurs episodically

 Address address = new Address();
 address.setCityName(Johnson City);
 address.setCountryCode(Tennessee);
 address.setProvinceName(US);

 Proximity proximity = new Proximity();
 proximity.setAddress(address);
 
 

Re: Отчет рекламной компании [PHP]

2015-03-25 Thread Сергей Бакстон

$user-LoadService('ReportDefinitionService', ADWORDS_VERSION);

 
  $selector = new Selector();
  $selector-fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria',
  'CriteriaType', 'Impressions', 'Clicks', 'Cost');

  $selector-predicates[] = new Predicate('Status', 'IN', array('ENABLED'));
  $selector-predicates[] = new Predicate('CampaignId', 'IN', array('id 
company'));

  $reportDefinition = new ReportDefinition();
  $reportDefinition-selector = $selector;
  $reportDefinition-reportName = 'Criteria performance report #' . uniqid
();
  $reportDefinition-dateRangeType = 'LAST_7_DAYS';
  $reportDefinition-reportType = 'CRITERIA_PERFORMANCE_REPORT';
  $reportDefinition-downloadFormat = 'CSV';

 
  $reportDefinition-includeZeroImpressions = FALSE;

  
  $options = array('version' = ADWORDS_VERSION);

  
  ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options
);

пробовал так сделать

среда, 25 марта 2015 г., 17:25:34 UTC+2 пользователь Josh Radcliff (AdWords 
API Team) написал:

 Hi,

 Could you share the reporting request (with any sensitive information 
 removed) you are sending?

 Thanks,
 Josh, AdWords API Team

 On Wednesday, March 25, 2015 at 6:22:30 AM UTC-4, Сергей Бакстон wrote:

 Пробовал, но в данный момент выводит одну строку и никакой конкретной 
 информации по каждой компании(не знаю, может проблема в том что часть 
 компаний приостановленна).

 вторник, 24 марта 2015 г., 19:41:39 UTC+2 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 Sorry, I can only answer in English, but the Reporting guide 
 https://developers.google.com/adwords/api/docs/guides/reporting contains 
 an example of how to do this. In addition, each client library 
 https://developers.google.com/adwords/api/docs/clientlibraries contains 
 a *DownloadCriteriaReport* example that shows how to run a report using 
 the library.

 Thanks,
 Josh, AdWords API Team

 On Tuesday, March 24, 2015 at 1:37:18 PM UTC-4, Сергей Бакстон wrote:

 Доброе время суток. Возник следующий вопрос - как получить отчет по 
 конкретной рекламной компании, имея ее ID? Буду признателен за помощь.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a14e3f5b-f707-4a3b-a13f-da7d413b5cdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ads with Ad Customizer are not serving

2015-03-25 Thread Kamil Grebeníček
Here are the screenshots. Our client ID is 880-520-5712.

https://lh3.googleusercontent.com/-n1BJTHutxkQ/VRLL2CY5KlI/ABw/6NdDASZstd8/s1600/1.png


https://lh3.googleusercontent.com/-4th89AhG1bo/VRLL-gkxEtI/AB4/-lpOWyZCFPE/s1600/2.png





https://lh3.googleusercontent.com/-3JQhqWSDdfM/VRLLpbFVAiI/ABo/UHzg0s-mgpo/s1600/3.png

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8fb0b2df-8e61-4bf9-b567-3512aec64408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Отчет рекламной компании [PHP]

2015-03-25 Thread Josh Radcliff (AdWords API Team)
Hi,

I see from your code that you are running a CRITERIA_PERFORMANCE_REPORT. If 
you want details at the Campaign level, please use the 
CAMPAIGN_PERFORMANCE_REPORT 
https://developers.google.com/adwords/api/docs/appendix/reports#campaign 
instead.

Thanks,
Josh, AdWords API Team

On Wednesday, March 25, 2015 at 12:13:53 PM UTC-4, Сергей Бакстон wrote:


 $user-LoadService('ReportDefinitionService', ADWORDS_VERSION);

  
   $selector = new Selector();
   $selector-fields = array('CampaignId', 'AdGroupId', 'Id', 'Criteria',
   'CriteriaType', 'Impressions', 'Clicks', 'Cost');

   $selector-predicates[] = new Predicate('Status', 'IN', array('ENABLED'
 ));
   $selector-predicates[] = new Predicate('CampaignId', 'IN', array('id 
 company'));

   $reportDefinition = new ReportDefinition();
   $reportDefinition-selector = $selector;
   $reportDefinition-reportName = 'Criteria performance report #' . uniqid
 ();
   $reportDefinition-dateRangeType = 'LAST_7_DAYS';
   $reportDefinition-reportType = 'CRITERIA_PERFORMANCE_REPORT';
   $reportDefinition-downloadFormat = 'CSV';

  
   $reportDefinition-includeZeroImpressions = FALSE;

   
   $options = array('version' = ADWORDS_VERSION);

   
   ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
 $options);

 пробовал так сделать

 среда, 25 марта 2015 г., 17:25:34 UTC+2 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 Could you share the reporting request (with any sensitive information 
 removed) you are sending?

 Thanks,
 Josh, AdWords API Team

 On Wednesday, March 25, 2015 at 6:22:30 AM UTC-4, Сергей Бакстон wrote:

 Пробовал, но в данный момент выводит одну строку и никакой конкретной 
 информации по каждой компании(не знаю, может проблема в том что часть 
 компаний приостановленна).

 вторник, 24 марта 2015 г., 19:41:39 UTC+2 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 Sorry, I can only answer in English, but the Reporting guide 
 https://developers.google.com/adwords/api/docs/guides/reporting contains 
 an example of how to do this. In addition, each client library 
 https://developers.google.com/adwords/api/docs/clientlibraries contains 
 a *DownloadCriteriaReport* example that shows how to run a report 
 using the library.

 Thanks,
 Josh, AdWords API Team

 On Tuesday, March 24, 2015 at 1:37:18 PM UTC-4, Сергей Бакстон wrote:

 Доброе время суток. Возник следующий вопрос - как получить отчет по 
 конкретной рекламной компании, имея ее ID? Буду признателен за помощь.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/affbaf31-9a5c-417f-b1f9-6c853fe74687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: INVALID_CONJUNCTION_OPERANDS on upload location extension filter with device platform

2015-03-25 Thread Josh Radcliff (AdWords API Team)
Hi Sergey,

Sorry I misread your original question. I see now what you're trying to 
achieve.

I found your requests, and it looks like the issue is that the request is 
simply malformed. Some of your functions consist of *two* *lhsOperand* 
attributes 
and *no* *rhsOperand* attributes.

  operand
feedId23947372/feedId
campaignId249285738/campaignId
matchingFunction
  operatorAND/operator
  *lhsOperand* 
xmlns:ns2=https://adwords.google.com/api/adwords/cm/v201409; 
xsi:type=ns2:FunctionOperand
ns2:value
  ns2:operatorEQUALS/ns2:operator
*   !-- The one below is correct --*
  ns2:lhsOperand xsi:type=ns2:RequestContextOperand
ns2:contextTypeDEVICE_PLATFORM/ns2:contextType
  /ns2:lhsOperand
  ns2:rhsOperand xsi:type=ns2:ConstantOperand
ns2:typeSTRING/ns2:type
ns2:stringValueDesktop/ns2:stringValue
  /ns2:rhsOperand
/ns2:value
  /lhsOperand
  *lhsOperand* 
xmlns:ns3=https://adwords.google.com/api/adwords/cm/v201409; 
xsi:type=ns3:FunctionOperand
ns3:value
  ns3:operatorAND/ns3:operator
  ns3:lhsOperand xsi:type=ns3:FunctionOperand
...
  /ns3:lhsOperand
  ns3:lhsOperand xsi:type=ns3:FunctionOperand
...
  /ns3:lhsOperand
/ns3:value
  /lhsOperand
/matchingFunction
placeholderTypes7/placeholderTypes
  /operand

Please change your request so that for each function you have at least *one*
 *lhsOperand* and at least *one* *rhsOperand*, as you did in the one I 
highlighted above in green.

Thanks,
Josh, AdWords API Team

On Wednesday, March 25, 2015 at 3:02:30 AM UTC-4, Sergey Petrov wrote:

 Hi Josh
 Thank you for quick response, but issue not in device field. Maybe I wan't 
 clear before. 
 Issue in operands conjuctions, because I can run request device 
 preferences with easy filter (only business name or only category) but 
 can't do that with complex one (business name and category). Looks like we 
 have some sort of operands limitation which isn't documented. 

 -- best regards, Sergey 

 вторник, 24 марта 2015 г., 19:46:02 UTC+2 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 You can check the last column of the report fields list 
 https://developers.google.com/adwords/api/docs/appendix/reports#campaign 
 to 
 see valid filtering values. For the *Device* field, the valid values to 
 use in predicates are:

 DESKTOP
 HIGH_END_MOBILE
 TABLET

 Thanks,
 Josh, Adwords API Team

 On Tuesday, March 24, 2015 at 1:38:22 PM UTC-4, Sergey Petrov wrote:

 Hi, all 

 During run a request to add filter to campaign level which will filter 
 account level location extension with business name filter and category I 
 get INVALID_CONJUNCTION_OPERANDS error. 

 Structure of matching function below: 

  AND
 
 
 AND
 
 
 EQUALS
 
 FeedAttributeOperand
 XXX
 1
 
 
 ConstantOperand
 STRING
 NONE
 bn
 
 
 
 CONTAINS_ANY
 
 FeedAttributeOperand
 XXX
 9
 
 
 ConstantOperand
 STRING
 NONE
 cat 1
 
 
 
 EQUALS
 
 DEVICE_PLATFORM
 
 
 STRING
 Desktop  

Re: INVALID_CONJUNCTION_OPERANDS on upload location extension filter with device platform

2015-03-25 Thread Sergey Petrov
Hi Josh ! 

Fantastic catch ! Thank you for response. I fix the request to have lhs and 
rhs for each function but currently get another 
problem: FunctionError.INVALID_NUMBER_OF_OPERANDS
Did I miss something ? 

reguest bellow

operand
feedId23947372/feedId
campaignId248364018/campaignId
matchingFunction
operatorAND/operator
lhsOperand xsi:type=ns2:FunctionOperand

xmlns:ns2=https://adwords.google.com/api/adwords/cm/v201409;
value
operatorAND/operator
lhsOperand xsi:type=ns2:FunctionOperand
value
operatorEQUALS/operator
lhsOperand 
xsi:type=ns2:FeedAttributeOperand

FunctionArgumentOperand.TypeFeedAttributeOperand/FunctionArgumentOperand.Type
feedId23947372/feedId

feedAttributeId1/feedAttributeId
/lhsOperand
rhsOperand 
xsi:type=ns2:ConstantOperand

FunctionArgumentOperand.TypeConstantOperand/FunctionArgumentOperand.Type
typeSTRING/type
unitNONE/unit
stringValuebn/stringValue
/rhsOperand
/value
/lhsOperand
rhsOperand xsi:type=ns2:FunctionOperand
value
operatorCONTAINS_ANY/operator
lhsOperand 
xsi:type=ns2:FeedAttributeOperand

FunctionArgumentOperand.TypeFeedAttributeOperand/FunctionArgumentOperand.Type
feedId23947372/feedId

feedAttributeId9/feedAttributeId
/lhsOperand
rhsOperand 
xsi:type=ns2:ConstantOperand

FunctionArgumentOperand.TypeConstantOperand/FunctionArgumentOperand.Type
typeSTRING/type
unitNONE/unit
stringValueca1/stringValue
/rhsOperand
rhsOperand 
xsi:type=ns2:ConstantOperand

FunctionArgumentOperand.TypeConstantOperand/FunctionArgumentOperand.Type
typeSTRING/type
unitNONE/unit
stringValueca2/stringValue
/rhsOperand
rhsOperand 
xsi:type=ns2:ConstantOperand

FunctionArgumentOperand.TypeConstantOperand/FunctionArgumentOperand.Type
typeSTRING/type
unitNONE/unit
stringValueca3/stringValue
/rhsOperand
/value
/rhsOperand
/value
/lhsOperand
rhsOperand xsi:type=ns3:FunctionOperand

xmlns:ns3=https://adwords.google.com/api/adwords/cm/v201409;
value
operatorEQUALS/operator
lhsOperand 
xsi:type=ns3:RequestContextOperand

contextTypeDEVICE_PLATFORM/contextType
/lhsOperand
rhsOperand xsi:type=ns3:ConstantOperand
typeSTRING/type
stringValueDesktop/stringValue
/rhsOperand
/value
/rhsOperand
/matchingFunction
placeholderTypes7/placeholderTypes
/operand

response:

ApiExceptionFault

xmlns=https://adwords.google.com/api/adwords/cm/v201409;
message[FunctionError.INVALID_NUMBER_OF_OPERANDS @ 
operations[0].operand.matchingFunction.lhsOperand, 

Re: Many mutate call with AdParams

2015-03-25 Thread Thanet Knack Praneenararat (AdWords API Team)
Hi,

If your account is of standard access 
https://developers.google.com/adwords/api/docs/access-levels#standard_accesstype,
 
there should be no limitations of permitted operations per day.
You can freely perform 1.4 million operations per day if you wish.

However, your account is still subjected to the rate limits 
https://developers.google.com/adwords/api/docs/guides/rate-limits.
You may find other useful information about controlling your operation 
rates at that page 
https://developers.google.com/adwords/api/docs/guides/rate-limits too.

Best,
Thanet

On Wednesday, March 25, 2015 at 2:37:03 AM UTC+9, hluchy...@gmail.com wrote:

 Hi,

 i am developing software, to handle TextAds of our company and I am 
 running into problem with AdParams.

 We currently have 4 campaign containing 70k AdGroup each with about 10 
 keywords. When I want set AdParams for each keyword (as API wants), it will 
 be:

 70 000 for each AdGroup * 10 for each Keyword  * 2 for both parameters.

 It is 1 400 000 mutate operations. I guess, it is little too many. Or it 
 is not? I have no idea how many operations are normal on Standard Access.
 And if it is too many, how can I achieve lower numbers?

 I know about AdCustomizers, but for now, we cant regenerate our ads, cause 
 we will lost statistics. And of course, we will after first setup update 
 only
 changed parameters, but still, there will be plenty of operations.

 Thx for every advice.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ee76eee7-0523-43d3-a7f0-94c4fdd90dfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: redirect_uri_mismatch Application

2015-03-25 Thread Thanet Knack Praneenararat (AdWords API Team)
Hi Michael,

It's highly likely that you have problems with setting up you OAuth2 stuff.
Please double-check the guide 
https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0 and 
follow carefully again.

Typically, you shouldn't need to fiddle with redirect URIs, it should just 
be the default when you create a project on the developer's console.
You may need to check your developer console settings again.

Unfortunately as this is related to security issues, we cannot diagnose 
OAuth2 problems from our side.
However, I suspect that there might be some mistakes in settings of 
developer console and/or OAuth2 steps themselves,
as the error Application: Google Statistics seems not related to AdWords 
API.

Please let me know if you have any other issues.

Cheers,
Thanet, AdWords API Team

On Wednesday, March 25, 2015 at 2:38:04 AM UTC+9, Michael Barlow wrote:

 Hope someone can help.

 Im attempting to set up a test environment to interact with Google adword 
 campaigns using php.

 I've downloaded the Google Ads APIs Client Library for PHP and entered my 
 developerToken, userAgent, clientCustomerId, client_id and client_secret as 
 per the instructions (https://github.com/googleads/googleads-php-lib)

 I've ran GetRefreshToken.php via php in console and visited the link it 
 generated but it just says

 400. That’s an error. Error: redirect_uri_mismatch Application: Google 
 Statistics

 I researched the error and it said i needed to have the correct REDIRECT 
 URIS in my Google Developer Console. I've tried lots of variations but 
 nothing seems to work. It's currently set at:

 http://localhost:/

 I'm running the API on localhost using MAMP, what should the redirect URI 
 be?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/449a0b54-557f-4c03-a6cf-68ae9edb0f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Experiment vs Control in Click performance report

2015-03-25 Thread Jeff Johnson
Howdy folks!

Quick question: is it possible to figure out if a click came from an 
experiment or control group (vis a vis Adwords Campaign Experiments) 
through the Click Performance Report?

I've reviewed the definition here 
https://developers.google.com/adwords/api/docs/appendix/reports/click-performance-report
 
but I'm not quite sure. Is it possible that it's not named as directly as 
'ExperimentVsControl'?

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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f3310902-afb5-49d3-987d-a636443740cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Can't find a way to get number of clicks, using Selector Fields

2015-03-25 Thread samuel . otero
Hi everyone. If someone can help me, I will really appreciate it.

I am trying to get some basic information from a Campaign under my test MCC 
account. I am using Selector Fields 
https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201409-AdGroupService
 to 
do so. 

I can get the Campaign Id, the Campaign Name, and some other info... but I 
just cannot find a way to retrieve the number of click at the Campaign 
Level, nor the Ad Groups level.

Basically, I'm just trying to get all the information from this table:

https://lh3.googleusercontent.com/-uaEeGeSnd3M/VRMyx1hqHZI/AAM/e1HzQDls9os/s1600/Capture%2BForum.PNG
I can get my Campaign Name also... I just don't find any selector which I 
could retrieve those clicks. 

Here is an example of what I'm doing in C#:

AdWordsUser user = new AdWordsUser();

CampaignService campaignService = 
(CampaignService)user.GetService(AdWordsService.v201409.CampaignService);
DataService dataService = 
(DataService)user.GetService(AdWordsService.v201409.DataService);
AdGroupService adGroupService = 
(AdGroupService)user.GetService(AdWordsService.v201409.AdGroupService);

Selector CampaignServiceSelector = new Selector();
CampaignServiceSelector.fields = new string[] { Name, Id, 
Status };


Selector DataServiceSelector = new Selector();
DataServiceSelector.fields = new string[] {LocalClicks, 
LocalImpressions};

Selector adGroupServiceSelector = new Selector();
adGroupServiceSelector.fields = new string[] { Status, Name 
};


var campaignInfo = campaignService.get(CampaignServiceSelector);
var dataServiceInfo = 
dataService.getCriterionBidLandscape(DataServiceSelector);
var adGroupServiceInfo = 
adGroupService.get(adGroupServiceSelector);

I'm just playing with the selectors, and I have a pretty good idea of how 
I will create the report that I want. I just don't find a selector to 
retrieve those clicks that I marked yellow at that picture. I tried to use 
DataService object, which have a method called getAdGroupBidLandscape 
that seems to have a selector that could work (LocalClicks) but when I use 
it, the code returns 0 entries.

I'm lost! What selector I should use to retrieve those clicks? 

Please help! 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/43fa7cfb-52c8-4a76-bf81-47cb17448091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.