Hello,
i'm getting this error while trying to create LOCAL_CAMPAIGN
first step budget created correctly, but second step campaign creation got
the error.
any help.
Request
-------
MethodName:
google.ads.googleads.v13.services.CampaignService/MutateCampaigns
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=6350088078,
x-goog-api-client=gl-java/1.8.0_322 gccl/23.0.0 gapic/23.0.0 gax/2.23.0
grpc/1.52.1 pb/3.21.12}
Body: customer_id: "6721821997"
operations {
create {
status: ENABLED
advertising_channel_type: LOCAL
advertising_channel_sub_type: LOCAL_CAMPAIGN
maximize_conversion_value {
target_roas: 3.5
}
local_campaign_setting {
location_source_type: GOOGLE_MY_BUSINESS
}
optimization_goal_setting {
optimization_goal_types: CALL_CLICKS
optimization_goal_types: DRIVING_DIRECTIONS
}
name: "1717 - test ads a #1502953868 : Montant est de 2,00
\342\202\254."
campaign_budget: "customers/6721821997/campaignBudgets/12418307278"
start_date: "20230308"
end_date: "20230309"
}
}
Response
--------
Headers:
Metadata(content-type=application/grpc,request-id=KSmESoIBBm44a9rz-4pWCA,date=Wed,
08 Mar 2023 12:02:23 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443";
ma=2592000)
Body: null
Failure message: errors {
error_code {
context_error: OPERATION_NOT_PERMITTED_FOR_CONTEXT
}
message: "The operation is not allowed for the given context."
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "advertising_channel_sub_type"
}
}
}
request_id: "KSmESoIBBm44a9rz-4pWCA"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an
invalid argument., cause=null}.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/6a008609-0ff6-47e3-bb65-69493c8e1dd9n%40googlegroups.com.