How to set the language of the campaign to another language

2021-09-02 Thread RYO O
HI.

I have tried various ways to set the language of the campaign to Japanese, 
but I just can't succeed.

When I send the following request, I get the error. How can I set the 
language?



-request content-

# campaign_budget_operation
create {
  resource_name: "customers/9007301272/campaignBudgets/-1"
  name: "2021-08-30"
  amount_micros: 50
}

# campaign_operation
create {
  resource_name: "customers/9007301272/campaigns/-2"
  status: ENABLED
  advertising_channel_type: SEARCH
  network_settings {
target_google_search: true
target_search_network: false
target_content_network: false
target_partner_search_network: false
  }
  target_spend {
cpc_bid_ceiling_micros: 2
  }
  name: "2021-08-30_test"
  campaign_budget: "customers/9007301272/campaignBudgets/-1"
}

#campaign_criterion_operation
create {
  resource_name: "customers/9007301272/campaignCriteria/-2~-3"
  language {
language_constant: "languageConstants/1005"
  }
}



-error content-


Request made: ClientCustomerId: 9007301272, Host: googleads.googleapis.com, 
Method: /google.ads.googleads.v8.services.GoogleAdsService/Mutate, 
RequestId: KYIigy_qmr7nUSti-6FV3A, IsFault: True, FaultMessage: The field's 
contents don't match another field that represents the same data.
(<_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1630302826.032834000","description":"Error received from peer 
ipv4:216.58.220.106:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string = 
"{"created":"@1630302826.032834000","description":"Error received from peer 
ipv4:216.58.220.106:443","file":"src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Request
 
contains an invalid argument.","grpc_status":3}"
>, errors {
  error_code {
mutate_error: INCONSISTENT_FIELD_VALUES
  }
  message: "The field\'s contents don\'t match another field that 
represents the same data."
  location {
field_path_elements {
  field_name: "mutate_operations"
  index: 2
}
field_path_elements {
  field_name: "campaign_criterion_operation"
}
field_path_elements {
  field_name: "create"
}
field_path_elements {
  field_name: "resource_name"
}
  }
}
request_id: "KYIigy_qmr7nUSti-6FV3A"
, 'KYIigy_qmr7nUSti-6FV3A')

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/84d4aa67-4072-4baa-a77a-2f60cb090bcen%40googlegroups.com.


Which the name of statuses refer to the value of statuses?

2021-09-29 Thread RYO O
Hello.

I have a question about statuses in adgroupad.

UNSPECIFIED
UNKNOWN
ENABLED
PAUSED
REMOVED

Can you tell me which of the above status names refers to what status value?

https://github.com/googleads/google-ads-python/blob/main/google/ads/googleads/v8/enums/types/ad_group_ad_status.py

On this page, it says Are these correct?
UNSPECIFIED = 0
UNKNOWN = 1
ENABLED = 2
PAUSED = 3
REMOVED = 4

Regards,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/75db25cb-e705-445e-9d85-e81250434c5en%40googlegroups.com.


How to get the number of clicks, views, and digested amount

2021-10-03 Thread RYO O
Hello.

Right now, I'm running an API to get the monthly or daily number of clicks, 
number of displays, and digested amount by month or by day.

In order to get the data for each day of the year, we need to run the API 
365 times.


How can I get the data for 365 days in a single API run?

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 
"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/818e0f35-b803-43f3-8987-7333e4dfbd81n%40googlegroups.com.


How to set up a callout

2021-10-12 Thread RYO O
Hello.

I am trying to set up a callout in the following request, but it does not 
work. What could be the problem?

-request-

Request
Method: /google.ads.googleads.v8.services.GoogleAdsService/Mutate
Host: googleads.googleapis.com  



   
Headers: {  



   
  "developer-token": "REDACTED",



   
  "x-goog-api-client": "gl-python/3.8.10 grpc/1.36.1 gax/1.26.1 
gapic/13.0.0",  


   
  "x-goog-request-params": "customer_id=9007301272"




}   
Request: customer_id: "9007301272"  
mutate_operations {
  campaign_budget_operation {
create { 
  resource_name: "customers/9007301272/campaignBudgets/-1"
  name: "local" 
  amount_micros: 40400   
}
  } 
}   
mutate_operations {  
  campaign_operation {
create { 
  resource_name: "customers/9007301272/campaigns/-2"
  status: ENABLED   
  advertising_channel_type: SEARCH  
  network_settings {
  
target_google_search: true  
  
target_search_network: false



   
target_content_network: false   
target_partner_search_network: false
  }  
  name: "local_\345\260\217\351\207\221\344\272\225"

 
  campaign_budget: "customers/9007301272/campaignBudgets/-1" 
  bidding_strategy: "customers/9007301272/biddingStrategies/8109229421"
}  




  }
   
}   
mutate_operations {  
  extension_feed_item_operation {  




create {



   
  resource_name: "customers/9007301272/extensionFeedItems/-3"  

 

Which status does the disapproved ad refer to?

2021-10-12 Thread RYO O
Hello.

The possible statuses of an AdGroupAd says that there are five statuses, 
but which one is the status of the disapproved ad?
UNSPECIFIED, UNKNOWN, ENABLED, PAUSED, REMOVED

AdGroupAdStatus  |  Google Ads API  |  Google Developers 


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 
"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/dee5a3ad-d252-479e-9e59-7c33c3bac08bn%40googlegroups.com.


How to connect Google ads account with Google Business Profile

2022-01-22 Thread RYO O
Hello,

In order to set up Location extensions for Google Ads, I want to link 
Google Ads Account and Google Business Profile with GoogleAdsAPI.
Which API should I use?

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c6a1cc20-4a99-481f-8c83-70207764be80n%40googlegroups.com.


How to stop a local campaign

2022-02-23 Thread RYO O
Hello.

How can I use the API to stop a local campaign?

thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2496a216-baa5-4bd2-8523-783aee598f76n%40googlegroups.com.


How to use the API to get conversion figures for a local campaign

2022-03-31 Thread RYO O
Hello.

I would like to get the number of conversions in a local campaign using 
GoogleAdsAPI.

Could you please tell me how to do that?

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/673b1d9b-b762-49e0-8865-17a060d2f9c0n%40googlegroups.com.