Re: How to make a query to validate if campaign id exists?

2022-12-24 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Thank you!

On Saturday, December 24, 2022 at 9:30:42 AM UTC-3 subin...@gmail.com wrote:

> search for the campaign id in that account. 
>
>
> https://github.com/googleads/google-ads-php/blob/main/examples/BasicOperations/GetCampaigns.php
>
> this will help you get all the campaigns from the Google Ads account.
> You can use the following example to use it for specific campaign id.
>
>
> https://github.com/googleads/google-ads-php/blob/main/examples/BasicOperations/GetAdGroups.php
>
>
> On Saturday, 24 December 2022 at 00:05:54 UTC+5:30 
> luiz...@mercadolivre.com wrote:
>
>> sorry, (only inside of account)
>>
>> On Friday, December 23, 2022 at 3:01:57 PM UTC-3 subin...@gmail.com 
>> wrote:
>>
>>> There are no campaigns inside MCC accounts
>>>
>>> On Friday, 23 December 2022 at 23:29:39 UTC+5:30 
>>> luiz...@mercadolivre.com wrote:
>>>
 Hey, how are u?

 I would like to know how I can make a query that validates if there is 
 a campaign id inside an account, this account can be mcc or even mcc 
 manager.

 Thanks!
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a8226d69-6a51-4e3a-b25d-7079f1eee5dcn%40googlegroups.com.


How to avoid SQL INJECTION in Google Ads API using Python?

2022-12-23 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hello, how are you?

I searched some forums about how to prevent sql injection in python and saw 
that there are ways to use a code like the following:

nome = "'Carlos' , idade = 80" cursor.execute("UPDATE cliente SET 
nome=%(nome)s WHERE idcliente=13", ({'nome': nome, }))


Most of the examples I see the variable 'cursor.execute' and an execute 
next to it, I would like to know how to replicate this in the Google ads 
API.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cdc7ede0-97b4-4917-b4e2-92cd5cefbb4dn%40googlegroups.com.


Re: How to make a query to validate if campaign id exists?

2022-12-23 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
sorry, (only inside of account)

On Friday, December 23, 2022 at 3:01:57 PM UTC-3 subin...@gmail.com wrote:

> There are no campaigns inside MCC accounts
>
> On Friday, 23 December 2022 at 23:29:39 UTC+5:30 luiz...@mercadolivre.com 
> wrote:
>
>> Hey, how are u?
>>
>> I would like to know how I can make a query that validates if there is a 
>> campaign id inside an account, this account can be mcc or even mcc manager.
>>
>> Thanks!
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/884b5fc7-009d-4943-9d42-7c48b43fce5cn%40googlegroups.com.


How to make a query to validate if campaign id exists?

2022-12-23 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hey, how are u?

I would like to know how I can make a query that validates if there is a 
campaign id inside an account, this account can be mcc or even mcc manager.

Thanks!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3b83cef8-b0fa-4fe5-9095-ce1acd0af21dn%40googlegroups.com.


Make a query to validate if the account id exists

2022-12-22 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
hello, I would like to know how would a query look like to validate that 
the accounts ids: '8731730893', '531727356', '6069299195', really exist in 
my platform account?

These acc ids are MCCS but can also be children of mccs. 
They are of different levels.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/acbf459d-aa61-4475-9b6e-56c6ca57db13n%40googlegroups.com.


Get data from specific customer id

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hello!

How can i use an query to get data from an specific customer id?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4fa5a2a5-033f-460a-9e53-cea8ef54a1adn%40googlegroups.com.


Query to get a specific account id

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hello I would like to know how can I make a query that validates if a 
specific account id exists in the platform, the account id can be a mcc 
manager as well as a simple mcc, (it could be any type of mcc)...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d687d6f8-2fc4-4d3b-9896-9bc5a797b981n%40googlegroups.com.


Re: Ho to make an query to list all account ids?

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
tks!

On Thursday, December 15, 2022 at 5:48:25 PM UTC-3 adsapi wrote:

> Hi Luiz,
>
> To resolve the CUSTOMER_NOT_ENABLED error, you will first need to 
> reactivate 
> 
>  
> the account. Afterwards, you can then proceed in making API calls to that 
> account.
>
> As for the "*I want a query that contains all accounts ids, both mccs and 
> mccs' children, how can I get this query done?*" concern, you can refer 
> to the get account hierarchy 
> 
>  
> guide that I sent earlier.
>
> Let us know if this helps.
>
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2h3RTZ:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/29e0c1fe-45fb-48ec-bfaf-928ca11ad999n%40googlegroups.com.


Re: Ho to make an query to list all account ids?

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
im receiving this error,  can someone help? 

On Thursday, December 15, 2022 at 4:46:47 PM UTC-3 Luiz Eduardo Da Cruz 
wrote:

>  (<_InactiveRpcError of RPC that terminated with:
> status = StatusCode.PERMISSION_DENIED
> details = "The caller does not have permission"
> debug_error_string = "UNKNOWN:Error received from peer 
> ipv- {created_time:"2022-12-15T16:44:22.890198-03:00", 
> grpc_status:7, grpc_message:"The caller does not have permission"}"
> >, <_InactiveRpcError of RPC that terminated with:
> status = StatusCode.PERMISSION_DENIED
> details = "The caller does not have permission"
> debug_error_string = "UNKNOWN:Error received from peer 
> ipv4-- {created_time:"2022-12-15T16:44:22.890198-03:00", 
> grpc_status:7, grpc_message:"The caller does not have permission"}"
> >, errors {
>   error_code {
> authorization_error: CUSTOMER_NOT_ENABLED
>   }
>   message: "The customer account can\'t be accessed because it is not yet 
> enabled or has been deactivated."
> }
> request_id: ""
> , '..-p')
> On Thursday, December 15, 2022 at 3:39:11 PM UTC-3 Luiz Eduardo Da Cruz 
> wrote:
>
>> I want a query that contains all accounts ids, both mccs and mccs' 
>> children, how can I get this query done?
>>
>> On Thursday, December 15, 2022 at 2:00:57 PM UTC-3 adsapi wrote:
>>
>>> Hi Luiz,
>>>
>>> By "*get all account ids in my account*" do you mean getting all client 
>>> account IDs under your MCC / manager account? If yes, you can refer to our 
>>> get 
>>> account hierarchy 
>>> 
>>>  
>>> guide for the details as to how.
>>>
>>> You can then generate a report for each client account returned, and you 
>>> can refer to this example 
>>> 
>>>  
>>> for the implementation. Let us know if this is what you're looking for.
>>>
>>> Lastly, I noticed you specified the *version="v7"* in your post. You 
>>> can refer here 
>>> 
>>>  
>>> for the currently supported versions of the API. We then recommend using 
>>> the latest version 
>>> ,
>>>  
>>> for the latest API features.
>>>
>>> Best regards,
>>>
>>> [image: Google Logo] 
>>> Peter Laurence 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2h3RTZ:ref
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2e01aea7-d154-49bf-b736-d7a602d6dfdan%40googlegroups.com.


Re: Ho to make an query to list all account ids?

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
 (<_InactiveRpcError of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "UNKNOWN:Error received from peer ipv- 
{created_time:"2022-12-15T16:44:22.890198-03:00", grpc_status:7, 
grpc_message:"The caller does not have permission"}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
debug_error_string = "UNKNOWN:Error received from peer 
ipv4-- {created_time:"2022-12-15T16:44:22.890198-03:00", 
grpc_status:7, grpc_message:"The caller does not have permission"}"
>, errors {
  error_code {
authorization_error: CUSTOMER_NOT_ENABLED
  }
  message: "The customer account can\'t be accessed because it is not yet 
enabled or has been deactivated."
}
request_id: ""
, '..-p')
On Thursday, December 15, 2022 at 3:39:11 PM UTC-3 Luiz Eduardo Da Cruz 
wrote:

> I want a query that contains all accounts ids, both mccs and mccs' 
> children, how can I get this query done?
>
> On Thursday, December 15, 2022 at 2:00:57 PM UTC-3 adsapi wrote:
>
>> Hi Luiz,
>>
>> By "*get all account ids in my account*" do you mean getting all client 
>> account IDs under your MCC / manager account? If yes, you can refer to our 
>> get 
>> account hierarchy 
>> 
>>  
>> guide for the details as to how.
>>
>> You can then generate a report for each client account returned, and you 
>> can refer to this example 
>> 
>>  
>> for the implementation. Let us know if this is what you're looking for.
>>
>> Lastly, I noticed you specified the *version="v7"* in your post. You can 
>> refer here 
>> 
>>  
>> for the currently supported versions of the API. We then recommend using 
>> the latest version 
>> , 
>> for the latest API features.
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2h3RTZ:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1dad84f9-9418-4cea-abaa-4d48bc16c3dfn%40googlegroups.com.


How to make a query that contains all accounts ids, both mcc manager and mccs' children

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
How can i get all account ids from both mcc - manager and children?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/644ec533-953c-4457-b422-b1e7d7e0e997n%40googlegroups.com.


Re: Ho to make an query to list all account ids?

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
I want a query that contains all accounts ids, both mccs and mccs' 
children, how can I get this query done?

On Thursday, December 15, 2022 at 2:00:57 PM UTC-3 adsapi wrote:

> Hi Luiz,
>
> By "*get all account ids in my account*" do you mean getting all client 
> account IDs under your MCC / manager account? If yes, you can refer to our 
> get 
> account hierarchy 
> 
>  
> guide for the details as to how.
>
> You can then generate a report for each client account returned, and you 
> can refer to this example 
> 
>  
> for the implementation. Let us know if this is what you're looking for.
>
> Lastly, I noticed you specified the *version="v7"* in your post. You can 
> refer here 
> 
>  
> for the currently supported versions of the API. We then recommend using 
> the latest version 
> , 
> for the latest API features.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2h3RTZ:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/455e94fa-a120-41f0-9bf1-caf2cea0fc12n%40googlegroups.com.


Ho to make an query to list all account ids?

2022-12-15 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hello, is there a way to get all account ids in my account?

I can get campaign data as follows:


ga_service = client.get_service("GoogleAdsService", version="v7")

query = """
SELECT campaign_budget.id, campaign_budget.name,
campaign_budget.amount_micros
FROM campaign_budget
ORDER BY campaign_budget.id"""

response = ga_service.search_stream(customer_id=account_id, query=query)

But how can i get the account ids? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/29ab2b39-1c15-4234-810b-781a6346ef46n%40googlegroups.com.


Block Ips

2022-08-16 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hi guys!

I would like to block ips in some campaigns, I looked at google doc but I 
couldn't do the blocking.

My Python code is as follows:

*campaign_criterion_operation = 
self.client.get_type('CampaignCriterionOperation', version='v11')*
*campaign_service = self.client.get_service("CampaignService", 
version="v11")*
*campaign_criterion_service = 
self.client.get_service("CampaignCriterionService", version="v11")*
*campaign_criterion = self.client.get_type('CampaignCriterion', 
version='v11')*

*campaign_criterion = campaign_criterion_operation.create*
campaign_criterion.campaign.value = campaign_service.campaign_path(
customer_id=self.account, campaign_id=row.campaign.id)

but I get an error on the line "campaign_criterion.campaign.value
-> 'str' object has no attribute 'value'


How do I continue my script and block it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f86e4399-aaa7-468f-b631-6ff4414f09b9n%40googlegroups.com.


Block Ips

2022-08-16 Thread 'Luiz Eduardo Da Cruz' via Google Ads API and AdWords API Forum
Hi guys!

I would like to block ips in some accounts, I looked at google doc but I 
couldn't do the blocking. 

My Python code is as follows:

*campaign_criterion_operation = 
self.client.get_type('CampaignCriterionOperation', version='v11')*
*campaign_service = self.client.get_service("CampaignService", 
version="v11")*
*campaign_criterion_service = 
self.client.get_service("CampaignCriterionService", version="v11")*
*campaign_criterion = self.client.get_type('CampaignCriterion', 
version='v11')*


*campaign_criterion = campaign_criterion_operation.create*but I get an 
error on the line "campaign_criterion.campaign.value
-> 'str' object has no attribute 'value'


How do I continue my script and block it?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f283df60-d14a-4890-a1af-b4610d01610dn%40googlegroups.com.