Hi,

In the logs I've send, the login-customer-id header is present with the 
manager id. Here it is again (replaced some digits with ****). Also please 
note I am running the example code that google provides, so this is not my 
code. Are you part of the google dev team? Do you have the ability to run 
the class AddCompleteCampaignsUsingBatchJob from 
https://github.com/googleads/google-ads-java and does it work for you? Note 
that I run the AddCampaigns class from the same project with the same 
login-customer-id and customer id and it runs fine.


MethodName: 
google.ads.googleads.v4.services.BatchJobService/AddBatchJobOperations
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, *login-customer-id=99******476,* 
x-goog-api-client=gl-java/1.8.0_265 gapic/ gax/1.57.0 grpc/1.30.0}
Body: resource_name: "customers/79976XXXXXX/batchJobs/3237XXXXX"
mutate_operations {
  campaign_budget_operation {
    create {
      resource_name: "customers/7997693211/campaignBudgets/-1"
      name {
        value: "Interplanetary Cruise Budget #1597437406461"
      }
      amount_micros {
        value: 5000000
      }
      delivery_method: STANDARD
    }
  }
}
mutate_operations {
  campaign_operation {
    create {
      resource_name: "customers/7997693211/campaigns/-2"
      name {
        value: "Mutate job campaign #1597437406577.-2"
      }
      status: PAUSED
      campaign_budget {
        value: "customers/7997693211/campaignBudgets/-1"
      }
      advertising_channel_type: SEARCH
      manual_cpc {
      }
    }
  }
}






On Friday, 14 August 2020 19:59:09 UTC+1, adsapiforumadvisor wrote:
>
> Hi Kostas,
>
> Thank you for the logs. I took a closer look at the full logs that you've 
> provided, but it doesn't seem to have the error from before. It looks like 
> you're encountering the error "User doesn't have permission to access 
> customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id";.
>  
> Could you check that for the mutate requests that failed in your batchjob 
> that you've set your manager customer ID in the login-customer-id field in 
> the header? I see you've set your customerID but not the login-customer-id. 
> Could you fill that in and give it a try?
>
> Thank you,
> Bryan, Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q23Jwor: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/e7b2674d-35a4-4fa1-bf90-578d04d6648fo%40googlegroups.com.
  • Only fails at Ad... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • RE: Only fa... Google Ads API Forum Advisor Prod
      • Re: Onl... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • RE: Only fa... Google Ads API Forum Advisor Prod
      • Re: Onl... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • Re: Only fa... Google Ads API Forum Advisor Prod
      • Re: Onl... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • Re: Only fa... Google Ads API Forum Advisor Prod
      • Re: Onl... 'Kostas Kougios' via AdWords API and Google Ads API Forum
      • Re: Onl... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • Re: Only fa... Google Ads API Forum Advisor Prod
    • Re: Only fa... Google Ads API Forum Advisor Prod
      • Re: Onl... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • Re: Only fa... Google Ads API Forum Advisor Prod

Reply via email to