Removing a campaign bid adjustment for a particular device type via the Ads API

2019-11-02 Thread Michael Harkin
Hello! I am trying to remove device-level bid adjustments for certain 
campaigns in an account via a Python process running against the Ads API. 
That is, if I were to do what I want to do manually in the Google Ads web 
UI, I would click on "Devices" in the left-hand navigation bar while 
looking at "Campaigns", select the "edit" button next to the device's "Bid 
adj." column value, and change the field to be blank, so as to remove it 
per the instructions: "To remove a bid adjustment, leave this field blank."

I found that I am able to access the device-level bid adjustment via the 
CampaignCriterionService. I tried setting 
campaign_criterion.bid_modifier.value = 0.0 but instead of removing the 
criterion, changing the campaign_criterion.bid modifier.value to 0.0 sets 
the bid adjustment for that device to -100%. What is the correct way to go 
about removing this bid adjustment, as I would in the UI? Is this operation 
supported in the Ads API?

When I try to "remove" it via CampaignCriterionOperation, I get this error 
message: ""The criterion is not allowed to be removed. For example, we 
cannot remove any of the device criterion."

I should note that, when I try to see the attributes of this campaign bid 
modifier by running a search against the campaign_bid_modifier object in 
GoogleAdsService ("SELECT customer.id, campaign.id, 
campaign_bid_modifier.criterion_id FROM campaign_bid_modifier"), I can't 
find it. However, I am able to see it when I run a search against 
campaign_criterion ("SELECT customer.id, campaign.id, 
campaign_criterion.criterion_id FROM campaign_criterion") as well as when I 
run a search against ad_group_bid_modifier ("SELECT customer.id, 
campaign.id, ad_group_bid_modifier.criterion_id FROM ad_group_bid_modifier 
WHERE ad_group_bid_modifier.bid_modifier_source = 'CAMPAIGN'"). Thanks in 
advance for your help. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/0f228bb4-5888-476e-bf66-aa20ffd2a03a%40googlegroups.com.


Report Customer customer.descriptive_name customer.resource_name empty

2019-11-02 Thread Philipp Meier
Hi

I would like to get the accounts name from a clientId. So I implemented the 
customer report API (
https://developers.google.com/google-ads/api/fields/v2/customer) which 
works for some attributes (i.e. customer.id, customer.currency_code) but 
not for the two I'm looking for: 
customer.descriptive_name
customer.resource_name

Is there a specific reason why these attributes can not be queried? I'm 
using this unofficial NodeJS API Client which could have an impact as well: 
https://opteo.com/dev/google-ads-api

Thanks and best regards
Philipp

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/69b5b934-7d5e-4857-98dc-5c0f8ebc08cd%40googlegroups.com.


Error : [AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:'']

2019-11-02 Thread Harshit Rusia
Hi,

I am trying to load more Audience list in customer list in my Adwords 
account from CRM but while authorizing my adwords account Google give me an 
error: *[AuthorizationError.CUSTOMER_NOT_ACTIVE @ ; trigger:''].*

After going through this group what I get is this error comes only when 
your account has no spend in last 15 months or inactive account or canceled 
account. 

But in my case my account is active and currently, ad is being served from 
this account but I am stil getting error.

My Customer Id is: 964-152-4096

Do let me know if any other information is required in order to solve this.


Thanks & Regards,
Harshit Rusia

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/e581b864-8be2-438e-8984-3b92e3ae7fd6%40googlegroups.com.