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 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/fa99050d-95cd-4506-afb2-926d5d850394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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. 
Based on your first code snippet, it seems that there is no space after *'WHERE 
CampaignStatus IN [REMOVED]',* so this could possibly be the cause of the 
error.  For your second code snippet, the syntax of setting predicates (see 
closing parenthesis and brackets) is incorrect.

You can refer to the two code snippets below (AWQL and non-AWQL) below that 
worked successfully on my end:

Using AWQL:

$reportQuery = 'SELECT AdGroupName, CampaignStatus, AdGroupStatus '
. 'FROM ADGROUP_PERFORMANCE_REPORT '
. 'WHERE CampaignStatus IN  [REMOVED] ';


Using selector:

$selector = new Selector();
$selector->setFields(['AdGroupName', 'CampaignStatus', 
'AdGroupStatus']);

$selector->setPredicates([
new Predicate('AdGroupStatus', PredicateOperator::NOT_IN, 
['REMOVED']),
new Predicate('CampaignStatus', PredicateOperator::NOT_IN, 
['REMOVED'])]);

 
Let me know if this helps.

Thanks,
Vincent
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/a5d1c579-aa3e-455c-a620-404c08b64330%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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+:
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/4639176d-99da-4247-9616-a241ea2d8ea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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'])], *
*[new Predicate('CampaignStatus', PredicateOperator::NOT_IN, 
['REMOVED'])]*
*);*
Doesn't work. Only the first array works fine. 

I am retrieving adgroups without removed status, but campaign status with 
removed is included.

The thing that I am trying to do is, Fetch adgroup with no removed status 
that are not associated with removed campaign. I don't want to see removed 
status.

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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/021d7ef1-656d-4512-9f48-c2262f7c2f64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.' '*
*. 'WHERE CampaignStatus IN [REMOVED]'*
*. 'DURING '.self::$date_range_type.'';*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/94fbf601-2b53-45fc-9415-6cfa6f265551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 in the AdWords 
Community Forum 
 
for 
further assistance on this.

Thanks,
Vincent
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/df996c1d-4711-46cb-862f-6b4161e58b85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 keywords only, the criteria type is incompatible 
with the campaign's bidding strategy, or the criteria type can only be 
applied to campaigns. To further investigate this issue, could you provide 
your clientCustomerId and adGroupId based on your SOAP logs? Please reply 
using *Reply privately to author*.

Thanks and regards,
Luis
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/e3e46503-1b94-45be-aa82-7c15371cc837%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 

 (available 
to other languages that we support) and just change the service and object 
to use.

Thanks,
Vincent
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/80112a70-a42f-44ab-ab86-f631cd079701%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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/b65b12c4-480c-41c4-81d8-497174be1f84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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/551020bf-7f10-47f9-b20d-0597d0c21e04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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? If the credentials are correct, you should get an access token for 
the below request.
curl https://www.googleapis.com/oauth2/v4/token \
-d refresh_token=your-refresh_token \
-d client_id=your-client-id \
-d client_secret=your-client-secret \
-d grant_type=refresh_token

If your credentials are incorrect and still facing an issues then could you 
generate a new refresh token with the help of this guide 

 and 
retry your request? Let me know if the issue persists.

Thanks,
Milind, 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/6826cbfd-ec45-4973-af8b-7bc213483c1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 your feedback 
with the team. Please keep an eye out on our blog 
 for more 
information on upcoming releases or announcements.

Regards,
Bharani, 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/b0d61f4f-4da3-47cd-8fe8-efa662aa6503%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 sharing the 
details. 

Thanks,
Sreelakshmi, 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/ba66ecfb-b7b3-4dd0-80d3-82b598a98c31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 results for your 
CampaignService.get() 

 API 
call. Video campaigns are supported in reports. You will be able to get the 
details of these campaigns via Campaign Performance report 

 and 
the Video Performance report 

. 

Let me know if you have any additional questions. 

Thanks,
Sreelakshmi, 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/a77dd054-7170-4f87-bfc4-5fb070b82ea4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 = 
'https://accounts.google.com/o/oauth2/token'
#  googleads.oauth2._GOOGLE_OAUTH2_ENDPOINT = 
'https://accounts.google.com/o/oauth2/auth'
oauth2_client = googleads.oauth2.GoogleRefreshTokenClient(client_id, 
client_secret, refresh_token)
adwords_client = googleads.adwords.AdWordsClient(None, oauth2_client, 
company, client_customer_id=client_customer_id)

report_downloader = adwords_client.GetReportDownloader(version='v201710')



On Thursday, January 18, 2018 at 5:07:27 PM UTC+2, Alex Kashirin wrote:
>
> 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'
> #  oauth2._GOOGLE_OAUTH2_ENDPOINT = '
> https://accounts.google.com/o/oauth2/auth'
> oauth2_client = oauth2.GoogleRefreshTokenClient(client_id, client_secret, 
> refresh_token)
> adwords_client = adwords.AdWordsClient(None, oauth2_client, company, 
> client_customer_id=client_customer_id)
>
> report_downloader = adwords_client.GetReportDownloader(version='v201710')
> 
>
> The googleads's oauth2_client is doing a token refresh as necessary and 
> the first request is the refresh that has the response code of 
> invalid_grant.
>
> What can be the reasons for the 'invalid_grant' error response ?
> client_id, client_secret and refresh_token should be the correct ones, as 
> give by client_secret_***.apps.googleusercontent.com.json
>
> Thanks,
> Kashirin Alex
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4f7f6651-ab94-4f53-b132-0dc56f4c9fb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Team)' via
> AdWords API Forum  wrote:
>
>> Hi Johnny,
>>
>> I can confirm that adding this specific placement URL (https://www.
>> washingtonpost.com/news/get-there/wp/2018/01/09
>> /the-great-social-security-benefits-debate-take-it-early-or-wait/) will
>> generate an error in the AdWords API. However, when I also tried to add
>> this placement URL in the AdWords UI against test account, this also
>> generated a "Placement URLs must be provided in a valid URL format"
>> error. Therefore, this issue is more on the AdWords product level as this
>> placement URL is not acceptable in both AdWords API and UI.
>>
>> You can refer to this product forum post
>> 
>>  that
>> talks about this specific error. Additionally, if you have further
>> clarifications on why this placement URL is returning an error, you can
>> post in the AdWords Community Forum
>> 
>>  for
>> better assistance.
>>
>> Thanks,
>> Vincent
>> AdWords API Team
>>
>> --
>> --
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> Also find us on our blog and Google+:
>> https://googleadsdeveloper.blogspot.com/
>> https://plus.google.com/+GoogleAdsDevelopers/posts
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>>
>> You received this message because you are subscribed to the Google
>> Groups "AdWords API Forum" group.
>> To post to this group, send email to adwords-api@googlegroups.com
>> To unsubscribe from this group, send email to
>> adwords-api+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/adwords-api?hl=en
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "AdWords API Forum" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/adwords-api/DyVkfQrwoCM/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/ms
>> gid/adwords-api/888c3189-bd04-49a9-8eab-b53f59bb9f31%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAH8wFEBT%3DhkuaJp7AA7jky3mOZiFRHB_MSPw%3DG6Cj%2ByzgvwqWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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.
> washingtonpost.com/news/get-there/wp/2018/01/09/the-great-social-security-
> benefits-debate-take-it-early-or-wait/) will generate an error in the
> AdWords API. However, when I also tried to add this placement URL in the
> AdWords UI against test account, this also generated a "Placement URLs
> must be provided in a valid URL format" error. Therefore, this issue is
> more on the AdWords product level as this placement URL is not acceptable
> in both AdWords API and UI.
>
> You can refer to this product forum post
> 
>  that
> talks about this specific error. Additionally, if you have further
> clarifications on why this placement URL is returning an error, you can
> post in the AdWords Community Forum
> 
>  for
> better assistance.
>
> Thanks,
> Vincent
> AdWords API Team
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and Google+:
> https://googleadsdeveloper.blogspot.com/
> https://plus.google.com/+GoogleAdsDevelopers/posts
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API Forum" group.
> To post to this group, send email to adwords-api@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/adwords-api?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/adwords-api/DyVkfQrwoCM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/888c3189-bd04-49a9-8eab-b53f59bb9f31%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

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

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAH8wFEA5hVx5r048Hkdw7eOoK0iyC9tWymuH%2BcQMJidTZUY4TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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'
#  oauth2._GOOGLE_OAUTH2_ENDPOINT = 
'https://accounts.google.com/o/oauth2/auth'
oauth2_client = oauth2.GoogleRefreshTokenClient(client_id, client_secret, 
refresh_token)
adwords_client = adwords.AdWordsClient(None, oauth2_client, company, 
client_customer_id=client_customer_id)

report_downloader = adwords_client.GetReportDownloader(version='v201710')


The googleads's oauth2_client is doing a token refresh as necessary and the 
first request is the refresh that has the response code of invalid_grant.

What can be the reasons for the 'invalid_grant' error response ?
client_id, client_secret and refresh_token should be the correct ones, as 
give by client_secret_***.apps.googleusercontent.com.json

Thanks,
Kashirin Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cf0c97f4-3d79-46cf-a2f0-5d53f65483d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 some 
results are returning a wrong "index" (example: we stored the index=10 as a 
KEYWORD, and when we are getting the results from the batch job, the 
index=10 is an AD. We send the operations in the following sequence: 
Adgroups, Ads, Keywords. 

We are using the adwords api client for php, version v201708.

Any ideas?

Jesse Mota

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9586e801-56f2-43cd-87c3-eeb302484ef2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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/3c92fad7-2680-4e16-b889-b8503dbaacc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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/
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/b1acf6b5-81a7-454c-9425-68bde0ddc345%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 

 on 
how to use this method). From there, you can see that the per row of data 
in your String object is separated by a new line (\n). With that in mind, 
you can check for a method in PHP that splits a String object into array 
with a new line as parameter. You can then manipulate your array of 
Strings. The data in per index in your array of Strings is the row data 
which is separated by comma (,). So in your end, you can also separate the 
per index by comma. This is just a suggestion, and you can always implement 
your own code logic that you think is better.

Thanks,
Vincent
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/097edd21-b3be-4320-a8eb-fed567f078b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
Search Ads 
, 
then the DynamicSearchAdsSetting 

 is 
required because you need to specify a domainName 

 on 
which the Dynamic Search Ads will operate, and also the languageCode 

. You may check this guide 

 for 
reference.

Hope this helps!

Thanks and regards,
Luis
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/774b1827-75c4-4768-bfb2-88b46b5b8154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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+:
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/69f2da52-145b-4984-b33e-0f3697999655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:

$selector = new Selector();
$selector->setFields(['Id', 'Name']);
$selector->setOrdering([new OrderBy('Name', SortOrder::ASCENDING)]);
$selector->setPredicates(
[new Predicate('CampaignStatus', PredicateOperator::NOT_IN, 
['REMOVED'])]);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));


In regards to reports, aside from generating reports in a file, you can 
only get the report data as String using *getAsString()* method. As a 
suggestion, you can use this method and do a post-processing on your end to 
transform the String object into an Array or JSON object.

Thanks,
Vincent
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/5c221696-a157-4218-a5d4-232dba5636fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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+:
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/31d79d29-aff1-468a-87fd-7db7c90eb4f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
the same. Seems WAY more useful if it returned the name of the Criteria. 
Currently you would have to look up the name using a separate service; but 
that service isn't available inside AdWords scripts.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/666b09b2-a331-4682-9f92-4dc45c7f1747%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 the ad groups from non-removed campaigns, then I 
suggest to use the Adgroup Performance Report 

 instead 
as you can filter by CampaignStatus 

 in 
this report type.

Let me know if you have further clarifications.

Thanks,
Vincent
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/ad587c4b-d5b2-4914-9dcd-11cd8c35e1d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.