Hi Team
I am trying to create Add Campaign using Google ads API example but am
getting below error , could you please help on this what is the error ,
Also could you please setup a 30 mins meeting to discuss on this issue , I
was trying to implement certain things using Google ads API but getting
errors
ApiException was thrown with message '{ "message": "Request contains an
invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", "details": [ {
"@type":
"type.googleapis.com\/google.ads.googleads.v18.errors.GoogleAdsFailure",
"errors": [ { "errorCode": { "contextError":
"OPERATION_NOT_PERMITTED_FOR_CONTEXT" }, "message": "The operation is not
allowed for the given context.", "location": { "fieldPathElements": [ {
"fieldName": "operations", "index": 0 } ] } } ], "requestId":
"7nz8pV3IQFzsjwTlgloMDQ" } ] }'.
Thank you
On Tuesday, January 21, 2025 at 8:48:05 AM UTC+5:30 Google Ads API Forum
Advisor wrote:
> Hi,
>
> Please find the answers to your questions below:
>
>
> 1. To upload only offline conversion API , do we need to setup test
> manager and test accounts?
> we are not creating campaigns etc using google ads API ,we are using only
> for upload offline conversion through our CRM
>
> - Yes, you need a production manager account or a production client
> account to upload the conversions. You should enable conversion tracking
> in
> your Google Ads conversion customer before you start uploading the offline
> conversions. The Google Ads conversion customer ID should be given as the
> customer_id in Google Ads API requests to create and manage conversions.
> If
> you are using cross-account conversion tracking
> <https://support.google.com/google-ads/answer/3030657>,
> the customer_id is the ID of a manager account.
> - Note that some features cannot be tested with test accounts. This
> includes bid simulations, *conversion uploads*, and billing. So, you
> need a production Google Ads manager account
> <https://ads.google.com/home/tools/manager-accounts/> or a client
> account <https://support.google.com/google-ads/answer/7456139?hl=en> to
> upload the conversions. Refer to the limitations of the test account
>
> <https://developers.google.com/google-ads/api/docs/best-practices/test-accounts#limitations>
> .
>
> 2. can you please share the PHP example code to send offline API request
> to google , which clarifies with required values and payloads
>
> - To upload enhanced conversion for leads via the Ads API, I would
> recommend you refer to this PHP code example
>
> <https://developers.google.com/google-ads/api/samples/upload-enhanced-conversions-for-leads#php>.
> Make
> sure to review the Getting Started guide
>
> <https://developers.google.com/google-ads/api/docs/conversions/enhanced-conversions/leads-setup>
> and
> implement the prerequisites
>
> <https://developers.google.com/google-ads/api/docs/conversions/enhanced-conversions/leads-setup#prerequisites>
> for
> enhanced conversions for leads before proceeding with implementation
>
> <https://developers.google.com/google-ads/api/docs/conversions/enhanced-conversions/leads>
> .
>
> I hope this helps.
>
>
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02vGwFf:ref" (ADR-00284696)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
> Feedback
> How was our support today?
>
> [image: rating1]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=5004Q00002vGwFf>
>
> [image: rating2]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=5004Q00002vGwFf>
>
> [image: rating3]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=5004Q00002vGwFf>
>
> [image: rating4]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=4&entry.295079254=5004Q00002vGwFf>
>
> [image: rating5]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=5&entry.295079254=5004Q00002vGwFf>
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 visit
https://groups.google.com/d/msgid/adwords-api/9547fbd7-f0bb-49b8-9027-22f4106b1164n%40googlegroups.com.