Re: How to set the language of the campaign to another language

2022-01-04 Thread Mhmoudahmdmohmmd homydt
في الجمعة، ٣ سبتمبر، ٢٠٢١ ١:١٨ م Google Ads API Forum Advisor
 كتب:

> Hi Ryo,
>
> Thanks for posting your concern.
>
> I would like to inform you first that I going to delete your initial post
> as it contains generated logs.
>
> To investigate, could you provide the complete request
> 
> and response
> 
> logs with request ID
> 
> and request header
> 
> generated on your end?
>
> You can provide it via *Reply privately to author* option. If this option
> is not available, then send it instead on this email address
> googleadsapi-supp...@google.com.
>
> Regards,
> [image: Google Logo]
> Ernie John Blanca Tacata
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2MlBpO: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
> "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/tYXnk0QYUSML00ahi7ZxfjRTCyns0FmKDTPA%40sfdc.net
> 
> .
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAOmUA%2BTDxxZwYE5A9_voKS-0gwHa%2BrYJeDvUMOT18%3DHuXJ8fAg%40mail.gmail.com.


Re: How to set the language of the campaign to another language

2022-01-03 Thread simo mazraoui
Got it, Thank you soo much for your help 

On Monday, 3 January 2022 at 16:51:56 UTC+1 adsapi wrote:

> Hi Simo,
>
> Each mutateOperation has its own enclosure and is added inside the 
> brackets, you can put in multiple campaign criterion without issue. I 
> tested the below sample and it works: 
>
>
> --data '{
> "mutateOperations": [
>   {
> "campaignBudgetOperation": {
>   "create": {
> "resourceName": "customers/{CID}/campaignBudgets/-1",
> "name": "My Campaign Budget",
> "deliveryMethod": "STANDARD",
> "amountMicros": 500,
> "explicitlyShared": false
>   }
> }
>   },
>   {
> "campaignOperation": {
>   "create": {
> "resourceName": "customers/{CID}/campaigns/-2",
> "status": "ENABLED",
> "advertisingChannelType": "SEARCH",
>  "geoTargetTypeSetting":{
> "positiveGeoTargetType": "PRESENCE_OR_INTEREST"
> },
> "networkSettings": {
> "targetGoogleSearch": true,
> "targetSearchNetwork": true,
> "targetContentNetwork": true,
> "targetPartnerSearchNetwork": false
> },
> "name": "My campaign",
> "campaignBudget": "customers/{CID}/campaignBudgets/-1",
>"manualCpc": {
>  "enhancedCpcEnabled": true
>  },
> "startDate": "2022-11-25",
> "endDate": "2022-11-30"
>   }
> }
>   },
>   {
> "campaignCriterionOperation": {
>   "create": {
> "campaign":"customers/{CID}/campaigns/-2",
> "location":{
> "geoTargetConstant": "geoTargetConstants/9050637"
> }
>   }
> }
>   },
>   {
> "campaignCriterionOperation": {
>   "create": {
> "campaign":"customers/{CID}/campaigns/-2",
> "location":{
> "geoTargetConstant": "geoTargetConstants/9050703"
> }
>   }
> }
>   }
> ],
> "responseContentType": "MUTABLE_RESOURCE"
> }
> '
>
> You can also create many campaigns without issue in the same request, just 
> using a different negative number as temporary resourceName 
> 
>  
> so that criteria for each campaign can be created with campaign creation. 
> Feel free to get back to us.
>
> Regards,
>  
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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 
"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/c5fa40e3-8963-489c-8b95-8f2dd1e37376n%40googlegroups.com.


Re: How to set the language of the campaign to another language

2022-01-03 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Simo,

Each mutateOperation has its own enclosure and is added inside the brackets, 
you can put in multiple campaign criterion without issue. I tested the below 
sample and it works:

--data '{
    "mutateOperations": [
      {
        "campaignBudgetOperation": {
          "create": {
            "resourceName": "customers/{CID}/campaignBudgets/-1",
            "name": "My Campaign Budget",
            "deliveryMethod": "STANDARD",
            "amountMicros": 500,
            "explicitlyShared": false
          }
        }
      },
      {
        "campaignOperation": {
          "create": {
            "resourceName": "customers/{CID}/campaigns/-2",
            "status": "ENABLED",
            "advertisingChannelType": "SEARCH",
             "geoTargetTypeSetting":{
                "positiveGeoTargetType": "PRESENCE_OR_INTEREST"
            },
            "networkSettings": {
                "targetGoogleSearch": true,
                "targetSearchNetwork": true,
                "targetContentNetwork": true,
                "targetPartnerSearchNetwork": false
            },
            "name": "My campaign",
            "campaignBudget": "customers/{CID}/campaignBudgets/-1",
       "manualCpc": {
             "enhancedCpcEnabled": true
         },
            "startDate": "2022-11-25",
            "endDate": "2022-11-30"
          }
        }
      },
      {
        "campaignCriterionOperation": {
          "create": {
            "campaign":"customers/{CID}/campaigns/-2",
            "location":{
                "geoTargetConstant": "geoTargetConstants/9050637"
            }
          }
        }
      },
      {
        "campaignCriterionOperation": {
          "create": {
            "campaign":"customers/{CID}/campaigns/-2",
            "location":{
                "geoTargetConstant": "geoTargetConstants/9050703"
            }
          }
        }
      }
    ],
"responseContentType": "MUTABLE_RESOURCE"
}
'

You can also create many campaigns without issue in the same request, just 
using a different negative number as temporary resourceName so that criteria 
for each campaign can be created with campaign creation. Feel free to get back 
to us.

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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 
"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/R34Ji0R555E1009VuHd0BoTrCPHNAQjLdSIg%40sfdc.net.


Re: How to set the language of the campaign to another language

2022-01-03 Thread simo mazraoui
Hi, 

Thank you for the reply.

I know about this solution, but my idea is to set multiple locations like 
your example but with Grouped operations (*googleAds:mutate* 

).

is this possible ??

thank youu 



On Monday, 3 January 2022 at 08:56:02 UTC+1 adsapi wrote:

> Hi Simo,
>
> Thank you for your follow up.
>
> Below is an example on how you can include at least 2 create operations 
> when creating your location campaign criteria :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *curl -i --request POST 
> "https://googleads.googleapis.com/v9/customers/YOUR_CUSTOMER_ID/campaignCriteria:mutate
>  
> "
>  
> \ --header "Content-Type: application/json" \ --header "developer-token: 
> YOUR_DEVELOPER_TOKEN" \ --header "login-customer-id: 
> YOUR_LOGIN_CUSTOMER_ID" \ --header "Authorization: Bearer 
> YOUR_ACCESS_TOKEN" \ --data '{ "operations": [ {   "create" : { 
>   "negative": "false",   "campaign": 
> "customers/YOUR_CUSTOMER_ID/campaigns/YOUR_CAMPAIGN_ID",   
> "location": { "geoTargetConstant": 
> "geoTargetConstants/THE_GEO_CONSTANT_1"   },  }, }, 
> {   "create" : {   "negative": "false",   
> "campaign": "customers/YOUR_CUSTOMER_ID/campaigns/YOUR_CAMPAIGN_ID",   
> "location": { "geoTargetConstant": 
> "geoTargetConstants/THE_GEO_CONSTANT_2"   },  }, },  ] 
> }'*
>
> Let me know if this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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 
"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/c8cf2f98-2533-4bf5-bf7d-abb097688f20n%40googlegroups.com.


Re: How to set the language of the campaign to another language

2022-01-02 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Simo,

Thank you for your follow up.

Below is an example on how you can include at least 2 create operations when 
creating your location campaign criteria :

curl -i --request POST 
"https://googleads.googleapis.com/v9/customers/YOUR_CUSTOMER_ID/campaignCriteria:mutate;
 \
--header "Content-Type: application/json" \
--header "developer-token: YOUR_DEVELOPER_TOKEN" \
--header "login-customer-id: YOUR_LOGIN_CUSTOMER_ID" \
--header "Authorization: Bearer YOUR_ACCESS_TOKEN" \
--data '{
"operations": [
{
"create" : {
"negative": "false",
"campaign": "customers/YOUR_CUSTOMER_ID/campaigns/YOUR_CAMPAIGN_ID",
"location": {
"geoTargetConstant": "geoTargetConstants/THE_GEO_CONSTANT_1"
},
},
},
{
"create" : {
"negative": "false",
"campaign": "customers/YOUR_CUSTOMER_ID/campaigns/YOUR_CAMPAIGN_ID",
"location": {
"geoTargetConstant": "geoTargetConstants/THE_GEO_CONSTANT_2"
},
},
},
]
}'

Let me know if this helps.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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 
"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/jFusi0R54JD000jsxMXcOzTQa2XXawfW1Thg%40sfdc.net.


Re: How to set the language of the campaign to another language

2021-12-31 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Simo,

Thank you for your reply. Yes, you may try using googleAds:mutate method in 
order to send groups of operations with multiple types of resources. You can 
send many operations of different types to chain together a sequence of 
operations that should be carried out as a group. Note that the group of 
operations will all succeed if no operation fails or all fail if any single 
operation fails, and only resources that support atomic transactions are 
included, so this method can't replace all calls to individual services. Let us 
know how this goes on your end.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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 
"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/HnZzZ0R4ZAE300PYlxzVvHTjCWz9mGGm_WEQ%40sfdc.net.


Re: How to set the language of the campaign to another language

2021-12-31 Thread simo mazraoui
Hi, 

Thank you for the update.

I already know about this format, but I want to make multiple languages 
using Grouped operation 
s
 
method

Thank you

On Friday, 31 December 2021 at 02:11:13 UTC+1 adsapi wrote:

> Hi Simo,
>
> Thank you for raising your follow up question.
>
> I would suggest to follow this format 
>  for 
> creating multiple entities in one operation. Let me know if you have 
> questions with the provided sample.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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 
"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/2b54a3ea-36aa-4ff4-8e6e-2918ca9aac6an%40googlegroups.com.


Re: How to set the language of the campaign to another language

2021-12-30 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Simo,

Thank you for raising your follow up question.

I would suggest to follow this format for creating multiple entities in one 
operation. Let me know if you have questions with the provided sample.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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 
"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/nvw_Y0R4YGMB00gamhbbBpRWO-FmK47JkSZg%40sfdc.net.


Re: How to set the language of the campaign to another language

2021-12-30 Thread simo mazraoui
Hi,

Please I have a question, how to send the same request, but with multiple 
Languages, can I do like that: 

{
   'campaignCriterionOperation':[
  'create': {
   'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
  'language': {
  'languageConstant': 'languageConstants/1005'
  }
 },
 'create': {
   'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
  'language': {
  'languageConstant': 'languageConstants/1006'
  }
 }
  ]
}

Regards,

On Thursday, 9 September 2021 at 15:49:44 UTC+1 adsapi wrote:

> Hi Ryo,
>
> I work with Ernie and will assist you. Thank you for giving us the logs. 
> To set Japanese as the language, you can add to the "Grouped operations 
> "
>  
> inside 'mutateOperations': [] like this: 
>
>
> {
>'campaignCriterionOperation':{
>   'create': {
>'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
>   'language': {
>   'languageConstant': 'languageConstants/1005'
>   }
>  }
>   }
> }
>
> I tried it and it worked. Feel free to get back to us.
>
> Regards,
>
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2MlBpO: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 
"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/8101954b-fb6d-46f7-a995-f34ced159344n%40googlegroups.com.


RE: How to set the language of the campaign to another language

2021-09-09 Thread Google Ads API Forum Advisor
Hi Ryo,

I work with Ernie and will assist you. Thank you for giving us the logs. To set 
Japanese as the language, you can add to the "Grouped operations" inside 
'mutateOperations': [] like this:


{
'campaignCriterionOperation':{
'create': {
'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
'language': {
'languageConstant': 'languageConstants/1005'
}
}
}
}

I tried it and it worked. Feel free to get back to us.

Regards,


Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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 
"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/HjxIF0QZ696B006E2-9RN-SsyrTyWnHFy0qA%40sfdc.net.


RE: How to set the language of the campaign to another language

2021-09-03 Thread Google Ads API Forum Advisor
Hi Ryo,

Thanks for posting your concern.

I would like to inform you first that I going to delete your initial post as it 
contains generated logs.

To investigate, could you provide the complete request and response logs with 
request ID and request header generated on your end?

You can provide it via Reply privately to author option. If this option is not 
available, then send it instead on this email address 
googleadsapi-supp...@google.com.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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 
"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/tYXnk0QYUSML00ahi7ZxfjRTCyns0FmKDTPA%40sfdc.net.


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.