not able place ads on youtube video via REST interface

447 views
Skip to first unread message

ISMAIL TAIBANI

unread,
Sep 24, 2021, 5:32:18 AM9/24/21
to AdWords API and Google Ads API Forum
I m trying place ad on particular youtube video. Below is the api I m using


req body:

{
"operations": [
{
"create":{
"type": "YOUTUBE_VIDEO",
"youtubeVideo": {
"videoId": "BLl32FvcdVM"
},
"adGroup": "customers/8370730364/adGroups/132983423888",
"negative":false
}
}
],
"partialFailure": false,
"validateOnly": false,
"responseContentType": 0

}

but i m getting error: 

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"errors": [
{
"errorCode": {
"mutateError": "MUTATE_NOT_ALLOWED"
},
"message": "Mutates are not allowed for the requested resource.",
"trigger": {
"stringValue": "VIDEO"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
}
}
],
"requestId": "Z7tNeu_1I7LBvgQnmyGzNA"
}
]
}
}

Google Ads API Forum Advisor

unread,
Sep 24, 2021, 11:23:11 AM9/24/21
to ismail.t...@gmail.com, adwor...@googlegroups.com

Hi Ismail,

Thanks for posting your concern to us.

It appears that you’ve received the error "MUTATE_NOT_ALLOWED" while mutating your video campaigns. Kindly note that the video campaigns and their ads are not mutable via the API as described here. You will need to find an alternative to placing these ads such as manually placing them through the UI.

Kindly note that there is an existing feature request for mutating video campaigns in Google Ads API. Kindly note that we won't be able provide a timeline or any guarantees that the feature will be implemented in the Google Ads API.  With this, I would suggest keeping an eye on this blog as we will post any relevant updates when they become supported.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OTkP6:ref

ISMAIL TAIBANI

unread,
Oct 4, 2021, 10:44:01 AM10/4/21
to AdWords API and Google Ads API Forum
trying to set/change bit at group level via api. It is success for all the ads apart from video ads. from video ads response is as shown below :

{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"errors": [
{
"errorCode": {
"operationAccessDeniedError": "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT"
},
"message": "A mutate action is not allowed on this resource, from this client.",
"trigger": {
"stringValue": "VIDEO"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
}
}
],
"requestId": "MTBm8LvEhVBfHBcRZWoMdA"
}
]
}
}

ISMAIL TAIBANI

unread,
Oct 4, 2021, 11:53:42 AM10/4/21
to AdWords API and Google Ads API Forum
Not able to set bid at ad group level below is the request and response

import requests
import json


payload = json.dumps({
"operations": [
{
"updateMask": "targetCpaMicros",
"update": {
"resourceName": "customers/8370730364/adGroups/127398071476",
"targetCpaMicros": 4000000
}
}
]
})
headers = {
'Content-Type': 'application/json',
'Authorization': xxxxx
'developer-token': xxxx
'login-customer-id': xxxx
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)


Respose:


{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"errors": [
{
"errorCode": {
"operationAccessDeniedError": "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT"
},
"message": "A mutate action is not allowed on this resource, from this client.",
"trigger": {
"stringValue": "VIDEO"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
}
}
],
"requestId": "MTBm8LvEhVBfHBcRZWoMdA"
}
]
}
}

On Friday, September 24, 2021 at 8:53:11 PM UTC+5:30 adsapi wrote:

Google Ads API Forum Advisor

unread,
Oct 5, 2021, 6:08:00 AM10/5/21
to ismail.t...@gmail.com, adwor...@googlegroups.com

Hi Ismail,

Thanks for getting back to us.

Upon checking the attached logs and investigating on my end, mutating at ad group level for video campaigns is not supported yet. Kindly note that the video campaigns and their ads are not mutable via the API as mentioned previously.  As mentioned before, there is an existing feature request for mutating video campaigns in Google Ads API. With this, I would suggest keeping an eye on this blog as we will post any relevant updates when they become supported.

Regards,

ISMAIL TAIBANI

unread,
Oct 6, 2021, 1:04:54 AM10/6/21
to AdWords API and Google Ads API Forum
Hi Yasar,

Thank you for the response. Is there another way to mutate video campaign at adgroup level apart from doing it from UI ? I want to mutate Bid amount mainly

Google Ads API Forum Advisor

unread,
Oct 6, 2021, 5:45:04 PM10/6/21
to ismail.t...@gmail.com, adwor...@googlegroups.com
Hello,

Although this is not possible through the Ads API, it may be possible programmatically modify video ad groups using Ads scripts. However, our team specializes in the Ads/AdWords API, so for further assistance on this, I would recommend reaching out to the scripts dedicated forum.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OTkP6:ref

ISMAIL TAIBANI

unread,
Oct 12, 2021, 11:44:47 AM10/12/21
to AdWords API and Google Ads API Forum
Thanks Matt,

i wanted to know that I m using the below api to fetch all the keyword planner for the particular ad account/customer account but it only gives list of keyword plans "created by you" and not "shared with you" 

import requests
import json


payload = json.dumps({
"query": "SELECT keyword_plan.name, keyword_plan.forecast_period, keyword_plan.id FROM keyword_plan "
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer xxxxx',
'developer-token': '-dev token',
'login-customer-id': 'xxxx'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)


IS THERE ANYWAY TO LIST ALL THE KEYWORD PLANS i.e both PLAN CREATED BY YOU and PLAN SHARED WITH YOU ?



Google Ads API Forum Advisor

unread,
Oct 13, 2021, 2:29:16 PM10/13/21
to ismail.t...@gmail.com, adwor...@googlegroups.com
Hi Ismail,

Can you please privately send us the request and response logs, and keyword plan data? Can you also include a screenshot of the Keyword Plan UI view showing "Plans Shared With You"?

Thanks,

ISMAIL TAIBANI

unread,
Oct 21, 2021, 7:48:14 AM10/21/21
to AdWords API and Google Ads API Forum
i have sent you the private message 6 days ago and I haven't got the response from the Team ... can you please look into this

Google Ads API Forum Advisor

unread,
Oct 22, 2021, 2:51:06 AM10/22/21
to ismail.t...@gmail.com, adwor...@googlegroups.com
Hi Ismail,

Thank you for your reply.

Could you confirm if you were able to receive the email from my colleague Ernie? I asked because he was able to send the below response on October 15, 2021 to your private email address :

"Hi Ismail,

I work with Matt and let me provide support to your concern.

It appears that you can only retrieve the keyword plans that created by you using Google Ads API. With this, allow me to raise a feature request to my team, subject for review.

For the meantime, I would suggest to follow our blog as we will post there relevant updates when it become supported.
"

If you're having trouble receiving private replies from us, please check your Spam folder. Additionally, please add the 'From address' on that email to your contact list to ensure we aren't flagged as Spam in future messages. If you don't see a message from us in your Spam folder, please email us directly at googleadsa...@google.com referring to your forum case.

Also please let me know if you indeed received the email and if it was indeed sent straight to your SPAM folder.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OTkP6:ref

ISMAIL TAIBANI

unread,
Oct 22, 2021, 4:03:32 AM10/22/21
to AdWords API and Google Ads API Forum
Thanks peter.

Got the mail it was in the spam. Although I can understand that right now retrieving keyword plans "shared with you" is not possible via API, Is there any other work around ? 

Google Ads API Forum Advisor

unread,
Oct 24, 2021, 9:10:29 PM10/24/21
to ismail.t...@gmail.com, adwor...@googlegroups.com
Hi Ismail,

Thanks for the confirmation.


If you're having trouble receiving private replies from us, please check your Spam folder. Additionally, please add the 'From address' on that email to your contact list to ensure we aren't flagged as Spam in future messages. If you don't see a message from us in your Spam folder, please email us directly at [googleadsa...@google.com] referring to your forum case.

Moving forward to your current question, if you are looking for the workaround in the API, then I am afraid that this is currently not possible. However, if what you are asking is if there is a workaround other than the API, then you can reach out to the product team via this link.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2OTkP6:ref
Reply all
Reply to author
Forward
0 new messages