Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
Magnificent! Thank you very much! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ken, For your reporting error (QueryError.PARSING_FAILED ), it means that there maybe some incorrect syntax in your AWQL query. Kindly double check on your end if your syntax and spacing is correct.

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
Switching back to AWQL haha This one works good for me *WHERE AdGroupStatus NOT_IN ["REMOVED"] AND CampaignStatus NOT_IN ["REMOVED"]* How do you convert this into Selector Method? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+:

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
Switching back to selector, works fine: *$selector->setPredicates([new Predicate('CampaignStatus', PredicateOperator::NOT_IN, ['REMOVED'])]);* but adding another Predicate: * $selector->setPredicates(* *[new Predicate('AdGroupStatus', PredicateOperator::NOT_IN, ['REMOVED'])],

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
OKay im using AWQL, works fine. BUt *WHERE CampaignStatus != 'removed'* gives me an error Details: [fieldPath: ; trigger: ; errorString: QueryError.PARSING_FAILED] Full code of AWQL: * $reportQuery = 'SELECT '.$imploded_fields.' FROM '.self::$report_type.' '* *.

Re: Placement targeting a specific page misinterpreted as a site section

2018-01-18 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Jonathan, My apologies as I am unable to comment whether this is indeed a bug as there have been no other issues reported about the URLs of a Placement criterion. I am also unable to suggest a workaround since this is more of an AdWords product specific concern. As suggested, you can post

Re: UNEXPECTED_INTERNAL_API_ERROR for AdGroupCriterionService

2018-01-18 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API Forum
Hi Nima, The error CANNOT_ADD_CRITERIA_TYPE means that the criteria type cannot be targeted for the ad group. Either the account is restricted to

Re: Adding label to account

2018-01-18 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Sergej, My apologies for my previous response. Upon further checking, you can assign labels to your accounts using ManagedCustomerService.mutateLabel() . You can refer to this Java example

Re: Is there a way to do this? attached image

2018-01-18 Thread Ken Dan Tinio
Yes, thanks for helping me out! :) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message

Re: Batch Job Issues

2018-01-18 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
Hi Jesse, In order to troubleshoot further, could you reply back with the SOAP request of your upload operations and the response from your download url? You may opt to *reply privately to author*. Regards, Dhanya, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also

Re: Reasons for the 'invalid_grant' error response

2018-01-18 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API Forum
Hi Alex, The "invalid_grant" error usually indicates that the access or refresh token being passed in your request is incorrect or invalid. To verify that your credentials are correct, you could also try the CURL request provided below and see if you are able to generate the access tokens?

Re: CRITERIA_PERFORMANCE_REPORT: Why does DisplayName return the same as the Criteria?

2018-01-18 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hi Jason, That's right. The Criteria Performance Report currently does not support pulling the UserListName data. Please refer to this guide for all the criteria prefixes that are supported. I have shared

Re: Adwords API downloads historical data(impr, clicks)count has not matched with actual history data count

2018-01-18 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Kalyan, Could you please share more details like which data is being compared? Are you comparing the data from API with the AdWords UI? If so, could you please share more details like the report definition along with your client customer Id? You can use *reply privately to author* while

Re: 0 Results on getting all campaigns.

2018-01-18 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Arnau, Thanks for sharing the log. The client customer id being used is that of a client account. However, that account seems to have only video campaigns at the moment. Video campaigns are not currently supported by the AdWords API Services. That is the reason that you are getting zero

Re: Reasons for the 'invalid_grant' error response

2018-01-18 Thread Alex Kashirin
Small fix, the oauth2 and adwords are modules of googleads. (ok, to try it) import googleads client_id = ' ' client_secret = ' ' refresh_token = ' ' company = ' ' client_customer_id = ' ' # or with: # googleads.oauth2._TOKEN_URL =

Re: Placement targeting a specific page misinterpreted as a site section

2018-01-18 Thread Jonathan Brown
Because that is clearly a valid URL which resolves to a single page, not a site section On Thu, Jan 18, 2018 at 9:10 AM, Jonathan Brown wrote: > Thanks Vincent. Sounds like this is an AdWords bug, yes? > > On Wed, Jan 17, 2018 at 10:05 PM, 'Vincent Racaza (AdWords API

Re: Placement targeting a specific page misinterpreted as a site section

2018-01-18 Thread Jonathan Brown
Thanks Vincent. Sounds like this is an AdWords bug, yes? On Wed, Jan 17, 2018 at 10:05 PM, 'Vincent Racaza (AdWords API Team)' via AdWords API Forum wrote: > Hi Johnny, > > I can confirm that adding this specific placement URL (https://www. >

Reasons for the 'invalid_grant' error response

2018-01-18 Thread Alex Kashirin
Hello, The following code is use to work with the adwords_client: import googleads client_id = ' ' client_secret = ' ' refresh_token = ' ' company = ' ' client_customer_id = ' ' # or with: # oauth2._TOKEN_URL = 'https://accounts.google.com/o/oauth2/token' #

Batch Job Issues

2018-01-18 Thread Jesse Mota
Hi, We usually upload large campaigns to adwords, and we use batch jobs. When creating the batch job, we store the operation index, the operation type and some metadata for further processing. We have lots of campaigns running for months, without any problem, but, in the last couple of days

Adwords API downloads historical data(impr, clicks)count has not matched with actual history data count

2018-01-18 Thread gkalyandba
HI Support, 2017 year data count has matched the actual data but 2016 and 2018 years of data count has not matched with actual data count. Is that possible to check this and let me know you need further information. Thanks Kalyan.G -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also

Re: Is there a way to do this? attached image

2018-01-18 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello, I'm glad that your issue has been resolved. Feel free to write back to us if you have any other questions. Regards, Bharani, AdWords API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ken, Could you confirm if you have tried filtering the AdGroupService.get() by CampaignStatus as I have suggested? In regards to your latest question, you can examine first what is the content of the String object by the *getAsString()* method (see this line

Re: About Dynamic Search Ads Setting

2018-01-18 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API Forum
Hi Phu, When creating campaigns, adding Dynamic Search Ads is optional as there are other ad types which you can setup for that specific campaign. However, if you're going to create a campaign specifically for Dynamic

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
I *getAsString() *method, I have already seen it. Thats like sounds difficult... how to do it? can you give me a term or word of the function for me to research about.. thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+:

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ken, Upon further checking, you can filter by CampaignStatus in AdGroupService.get() but you cannot get its actual value as field. You can try the code snippet below and let me know if this works:

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
I did try that. But the problem is this: $reportDefinition->setDownloadFormat(DownloadFormat::CSV); How do I get reports as array or json? I don't want to generate a csv. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+:

CRITERIA_PERFORMANCE_REPORT: Why does DisplayName return the same as the Criteria?

2018-01-18 Thread Jason Lowry
This seems like a bug. In the AUDIENCE_PERFORMANCE_REPORT there is a UserListName so you can get the criteria (boomuserlist::ID) and the name of the audience. With the CRITERIA_PERFORMANCE_REPORT there is a Criteria, CriteriaType, and DisplayName, but the Criteria and DisplayName are always

Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
Hi Ken, The CampaignStatus is not a supported field in the AdGroup entity of AdGroupService . If you really wish to get