Exception while linking a feed to a campaign

2024-06-25 Thread Özgür Nevres
Hi,

I am getting an exception while linking a feed to a campaign.

feed id: 174838166
campaign id: 19876813904

Request Id: 7gHANeikZiYLWgu0fnfTUA
Error message: The required field was not present.

What am I missing? How can I fix this?

My code is like below:
var campaignFeed = new CampaignFeed()
{
Feed = ResourceNames.Feed(request.CustomerClientId, feedId),
Campaign = ResourceNames.Campaign(request.CustomerClientId, 
campaignId),
PlaceholderTypes = { 
PlaceholderTypeEnum.Types.PlaceholderType.Callout },
};

var operation = new CampaignFeedOperation() { Create = campaignFeed 
};

try
{
var response = 
campaignFeedService.MutateCampaignFeeds(request.CustomerClientId.ToString(), 
[operation]);
}
catch (GoogleAdsException gaex)
{

}
}

Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/cf50003b-9db4-403e-a283-36bf4504a569n%40googlegroups.com.


Re: too many resource exhausted errors in the last 48 hours

2024-05-31 Thread Özgür Nevres
Sample error message:

Exception message: One or more errors occurred. 
(Status(StatusCode="ResourceExhausted", Detail="Resource has been exhausted 
(e.g. check quota)."))|
{
  "StatusCode": 8,
  "Details": "Resource has been exhausted (e.g. check quota).",
  "RequestId": "wMZ7Q4MBgylMpAVT7SrX8Q",
  "Failure": {
"errors": [
  {
"errorCode": {
  "quotaError": "RESOURCE_EXHAUSTED"
},
"message": "Too many requests. Retry in 900 seconds."
  }
],
"requestId": "wMZ7Q4MBgylMpAVT7SrX8Q"
  }
}

On Friday, May 31, 2024 at 6:38:14 PM UTC+3 Google Ads API Forum Advisor 
wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> I understand that you have encountered the "RESOURCE_EXHAUSTED 
> "
>  
> error, which means that a system frequency limit has been exceeded. Kindly 
> prevent sending too many requests in a short period of time and also ensure 
> to set up short delays between requests or combine more operations in fewer 
> requests. Also, please check this sample code for how to Handle a Rate 
> Exceeded Error 
> 
>  for 
> more information.
>
> Additionally, we also have daily API operation limits where requests that 
> violate these limits are rejected with the error: RESOURCE_EXHAUSTED. You 
> may check out API Limits and Quotas 
>  for 
> more information. 
>
> I could see that you have not provided the logs. In order to investigate 
> the issue further, provide us with the complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> 
>  and request header 
> )
>  
> generated at your end to assist you better.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides *Java* 
> 
> , *.Net* 
> 
> , *PHP* 
> 
> , *Python* 
> 
> , *Ruby* 
> 
>  or *Perl* 
>  
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply* to this email.
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tJ9WF:ref" (ADR-00237363)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/79927c68-1ef9-430b-bd10-de583098b84bn%40googlegroups.com.


Re: randomly get RESOURCE_EXHAUSTED "Too many requests. Retry in 900 seconds."

2024-05-31 Thread Özgür Nevres
" and we definitely do not do 15k requests per customer"

also same. In total, we are sending around 3,500 requests daily.

On Friday, May 31, 2024 at 6:59:59 PM UTC+3 Özgür Nevres wrote:

> I am getting the same error. It started 48 hours ago.
>
> On Friday, May 31, 2024 at 6:31:10 PM UTC+3 Bogie Dumitrescu wrote:
>
>>
>> We randomly get thruout the day the RESOURCE_EXHAUSTED "Too many 
>> requests. Retry in 900 seconds."
>>
>> the quotas google website 
>> <https://developers.google.com/google-ads/api/docs/best-practices/quotas?hl=en>implies
>>  
>> 15k transactions a day , but we get this error and then a few minutes later 
>> it works 
>>
>> I tried to create a new GoogleAdsService for each customer , and we 
>> definitely do not do 15k requests per customer
>>
>> Is it possible that the SearchGoogleAdsStreamResponse  get let's say 
>> 1,000 rows ... then makes another connection to google ... gets another 
>> 1,000 rows ... and if you have 500 million rows ... it could get to the 15k 
>> requests ?
>>
>>
>> *Not sure what i can try to diagnose this ?? THOUGHTS ??*
>>
>>  ServerStream responseStream = 
>> getGoogleAdsStreamF(gasc, customerId, gaqlModif);
>> for (SearchGoogleAdsStreamResponse response : responseStream)
>> {
>> for (GoogleAdsRow row : response.getResultsList())
>> {
>>  
>>  
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/b081810f-7c75-4669-a15c-e48869716735n%40googlegroups.com.


Re: randomly get RESOURCE_EXHAUSTED "Too many requests. Retry in 900 seconds."

2024-05-31 Thread Özgür Nevres
I am getting the same error. It started 48 hours ago.

On Friday, May 31, 2024 at 6:31:10 PM UTC+3 Bogie Dumitrescu wrote:

>
> We randomly get thruout the day the RESOURCE_EXHAUSTED "Too many requests. 
> Retry in 900 seconds."
>
> the quotas google website 
> implies
>  
> 15k transactions a day , but we get this error and then a few minutes later 
> it works 
>
> I tried to create a new GoogleAdsService for each customer , and we 
> definitely do not do 15k requests per customer
>
> Is it possible that the SearchGoogleAdsStreamResponse  get let's say 
> 1,000 rows ... then makes another connection to google ... gets another 
> 1,000 rows ... and if you have 500 million rows ... it could get to the 15k 
> requests ?
>
>
> *Not sure what i can try to diagnose this ?? THOUGHTS ??*
>
>  ServerStream responseStream = 
> getGoogleAdsStreamF(gasc, customerId, gaqlModif);
> for (SearchGoogleAdsStreamResponse response : responseStream)
> {
> for (GoogleAdsRow row : response.getResultsList())
> {
>  
>  
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/6bbffdba-97cd-4a1d-84c6-7e4799557569n%40googlegroups.com.


Re: campaign criterion query is not getting keywords

2024-01-30 Thread Özgür Nevres
I mean,
Is there a query to get lists, their type (i.e. negative keywords), and on 
which campaign(s) these lists applied?

On Tuesday, January 30, 2024 at 6:36:18 PM UTC+3 Özgür Nevres wrote:

> Hi,
>
> thanks for the response. It seems the user added those keywords using a 
> LIST.
> How can I get these keywords?
>
> On Tuesday, January 30, 2024 at 3:17:11 PM UTC+3 Google Ads API Forum 
> Advisor wrote:
>
>> Hi,
>>
>> Thank you for reaching out to the Google Ads API support team.
>>
>> After reviewing your query, I understand that you are not getting 
>> keywords for the campaign criterion query. To analyze your issue further, I 
>> would kindly request that you provide us with the complete API logs (
>> *request* 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>>  
>> and 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>> *response* 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>>  
>> with 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>> *request-id* 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>>  
>> and 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>*request
>>  
>> header* 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
>>  
>> along with the uncropped UI screenshot generated at your end to better 
>> assist you on this request. 
>>
>> If you are using a client library and haven't enabled the logging yet, I 
>> would request you to enable logging for the specific client library that 
>> you are using. You can refer to the guides 
>> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
>> *Java* 
>> <https://developers.google.com/google-ads/api/docs/client-libs/java/logging>
>> , 
>> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
>> *.Net* 
>> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
>> , 
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
>> *PHP* 
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
>> , 
>> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
>> *Python* 
>> <https://developers.google.com/google-ads/api/docs/client-libs/python/logging>
>> , 
>> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging>
>> *Ruby* 
>> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging> 
>> or 
>> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging>
>> *Perl* 
>> <https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
>> to enable logging at your end. For REST interface requests, you can enable 
>> logging via the curl command by using the -i flag.
>>
>> You can send the details via *Reply privately to the author option*, or 
>> *direct 
>> private reply* to this email.
>>   
>> This message is in relation to case "ref:!00D1U01174p.!5004Q02ryeV8:ref"
>>
>> Thanks,
>>   
>> [image: Google Logo] Google Ads API Team 
>>
>>  
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/7a352805-b3a8-4fe6-9984-8f94d426513cn%40googlegroups.com.


Re: campaign criterion query is not getting keywords

2024-01-30 Thread Özgür Nevres
Hi,

thanks for the response. It seems the user added those keywords using a 
LIST.
How can I get these keywords?

On Tuesday, January 30, 2024 at 3:17:11 PM UTC+3 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> After reviewing your query, I understand that you are not getting keywords 
> for the campaign criterion query. To analyze your issue further, I would 
> kindly request that you provide us with the complete API logs (*request* 
> 
>  
> and 
> 
> *response* 
> 
>  
> with 
> 
> *request-id* 
> 
>  
> and 
> *request
>  
> header* 
> )
>  
> along with the uncropped UI screenshot generated at your end to better 
> assist you on this request. 
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides 
> 
> *Java* 
> 
> , 
> 
> *.Net* 
> 
> , 
> 
> *PHP* 
> 
> , 
> 
> *Python* 
> 
> , 
> 
> *Ruby* 
>  
> or 
> 
> *Perl* 
>  
> to enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply* to this email.
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02ryeV8:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/f3a9afee-184a-4565-8807-1c34cfbe17f2n%40googlegroups.com.


Campaign criterion query is not getting keywords

2024-01-30 Thread Özgür Nevres
Hi,

For one CustomerClient, the Campaign criterion query is not getting 
keywords, but getting other criteria. 


   1. For other CustomerClients, it is getting keywords successfully
   2. Yes, there are both positive and negative keywords for that 
   particular customer client, I can see them on the GoogleAds website.

What can be the problem?

my query is:

SELECT campaign_criterion.ad_schedule.day_of_week, 
campaign_criterion.ad_schedule.end_hour, 
campaign_criterion.ad_schedule.end_minute, 
campaign_criterion.ad_schedule.start_hour, 
campaign_criterion.ad_schedule.start_minute, 
campaign_criterion.age_range.type, campaign_criterion.bid_modifier, 
campaign_criterion.brand_list.shared_set, campaign_criterion.campaign, 
campaign_criterion.carrier.carrier_constant, 
campaign_criterion.combined_audience.combined_audience, 
campaign_criterion.content_label.type, campaign_criterion.criterion_id, 
campaign_criterion.custom_affinity.custom_affinity, 
campaign_criterion.custom_audience.custom_audience, 
campaign_criterion.device.type, campaign_criterion.display_name, 
campaign_criterion.gender.type, campaign_criterion.income_range.type, 
campaign_criterion.ip_block.ip_address, campaign_criterion.keyword.text, 
campaign_criterion.keyword.match_type, 
campaign_criterion.keyword_theme.free_form_keyword_theme, 
campaign_criterion.keyword_theme.keyword_theme_constant, 
campaign_criterion.language.language_constant, 
campaign_criterion.listing_scope.dimensions, 
campaign_criterion.local_service_id.service_id, 
campaign_criterion.location.geo_target_constant, 
campaign_criterion.location_group, 
campaign_criterion.location_group.enable_customer_level_location_asset_set, 
campaign_criterion.location_group.feed, 
campaign_criterion.mobile_app_category.mobile_app_category_constant, 
campaign_criterion.mobile_application.app_id, 
campaign_criterion.mobile_application.name, 
campaign_criterion.mobile_device.mobile_device_constant, 
campaign_criterion.negative, 
campaign_criterion.operating_system_version.operating_system_version_constant, 
campaign_criterion.parental_status.type, campaign_criterion.placement.url, 
campaign_criterion.proximity.address.city_name, 
campaign_criterion.proximity.address.country_code, 
campaign_criterion.proximity.address.postal_code, 
campaign_criterion.proximity.address.province_code, 
campaign_criterion.proximity.address.province_name, 
campaign_criterion.proximity.address.street_address, 
campaign_criterion.proximity.geo_point.latitude_in_micro_degrees, 
campaign_criterion.proximity.radius, 
campaign_criterion.proximity.geo_point.longitude_in_micro_degrees, 
campaign_criterion.proximity.radius_units, 
campaign_criterion.resource_name, campaign_criterion.status, 
campaign_criterion.topic.path, campaign_criterion.topic.topic_constant, 
campaign_criterion.type, 
campaign_criterion.user_interest.user_interest_category, 
campaign_criterion.user_list.user_list, 
campaign_criterion.webpage.conditions, 
campaign_criterion.webpage.coverage_percentage, 
campaign_criterion.webpage.criterion_name, 
campaign_criterion.webpage.sample.sample_urls, 
campaign_criterion.youtube_channel.channel_id, 
campaign_criterion.youtube_video.video_id, campaign.id FROM 
campaign_criterion

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/97f43e27-54f2-4f68-bc5b-a9191513b383n%40googlegroups.com.


Re: Getting "The Caller does not have permission" while creating budget

2023-03-23 Thread Özgür Nevres
My bad, I now understand what you meant.

For those who is getting the same error, I forgot to set the 
LoginCustomerId property on client.config.

public static GoogleAdsClient 
GetGoogleAdsClient(GeneralRequestWithoutCustomerClientId request)
{
var client = new GoogleAdsClient();

client.Config.OAuth2Mode = 
Google.Ads.Gax.Config.OAuth2Flow.APPLICATION;
client.Config.OAuth2Scope = GeneralConstants.SCOPE;
client.Config.DeveloperToken = request.DeveloperToken;
client.Config.OAuth2ClientId = request.OAuth2ClientId;
client.Config.OAuth2ClientSecret = request.OAuth2ClientSecret;
client.Config.OAuth2RefreshToken = request.OAuth2RefreshToken;
client.Config.LoginCustomerId =  request.LoginCustomerId //I FORGOT 
TO SET THIS
return client;
}

After setting  LoginCustomerId, everything worked.

Thanks

On Thursday, March 23, 2023 at 9:10:41 AM UTC+3 Özgür Nevres wrote:

> Thanks for the answer.
>
> If the user / email address has access or is associated with the MCC / 
> manager account, you will need to specify the MCC / manager account's ID 
> without hyphens (-) as the value of the login-customer-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>
>  field.
>
> Yes, the user is associated with the MCC account. But, how can I specify 
> the login-customer?
> I am using the sample code provided by Google on the link below:
> https://developers.google.com/google-ads/api/samples/add-campaigns
>
> I couldn't find a login-customer-id property on these objects.
>
>
> On Wednesday, March 22, 2023 at 8:35:40 PM UTC+3 Google Ads API Forum 
> Advisor wrote:
>
>> Hello,
>>
>> Thank you for reaching out to the Google Ads API Support.
>>
>> Apparently you are getting an *AuthorizationError* 
>> <https://developers.google.com/google-ads/api/reference/rpc/v13/AuthorizationErrorEnum.AuthorizationError>:
>>  
>> USER_PERMISSION_DENIED error when trying to create a campaign. This is 
>> because the User doesn't have permission to access the customer. Please 
>> note that if you're accessing a client customer, the manager's customer id 
>> must be set in the 'login-customer-id' header. 
>>
>> To prevent this kind of error, I would suggest specifying the 
>> login-customer-id as the manager account ID without hyphens (-). That being 
>> said, you will need to ensure that the user / email address you used to 
>> generate the credentials indeed has access 
>> <https://support.google.com/google-ads/answer/9978556?visit_id=637628826037447236-382779227=1>
>>  to 
>> the account in your request.
>>
>> If the user / email address has access or is associated with the MCC / 
>> manager account, you will need to specify the MCC / manager account's ID 
>> without hyphens (-) as the value of the login-customer-id 
>> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>
>>  field.
>>
>> Furthermore, if the issue persists, can you please provide us with the 
>> complete *request* 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>>  and *response logs* 
>> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>>  generated 
>> as shown in the respective links, so we can check on our end the errors 
>> being thrown?
>>
>> If you haven't enabled logging yet, it can be enabled by navigating to 
>> the Client libraries > Your client library (ex. Java) > *Logging 
>> documentation* 
>> <https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging>,
>>  
>> which you can access from this link. For REST interface requests, you can 
>> enable logging via the curl command by using the -i flag. 
>>
>> You can provide it via Reply privately to the author option. If this 
>> option is not available, then send it instead on this email address 
>> googleadsa...@google.com.
>>
>> Regards,
>> [image: Google Logo] Google Ads API Team 
>>
>> ref:_00D1U1174p._5004Q2k1tex: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 
"Google Ads API and AdWords 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/082a14bd-f4f2-46dc-a299-04f22d7e8769n%40googlegroups.com.


Re: Getting "The Caller does not have permission" while creating budget

2023-03-23 Thread Özgür Nevres
Thanks for the answer.

If the user / email address has access or is associated with the MCC / 
manager account, you will need to specify the MCC / manager account's ID 
without hyphens (-) as the value of the login-customer-id 

 field.

Yes, the user is associated with the MCC account. But, how can I specify 
the login-customer?
I am using the sample code provided by Google on the link below:
https://developers.google.com/google-ads/api/samples/add-campaigns

I couldn't find a login-customer-id property on these objects.


On Wednesday, March 22, 2023 at 8:35:40 PM UTC+3 Google Ads API Forum 
Advisor wrote:

> Hello,
>
> Thank you for reaching out to the Google Ads API Support.
>
> Apparently you are getting an *AuthorizationError* 
> :
>  
> USER_PERMISSION_DENIED error when trying to create a campaign. This is 
> because the User doesn't have permission to access the customer. Please 
> note that if you're accessing a client customer, the manager's customer id 
> must be set in the 'login-customer-id' header. 
>
> To prevent this kind of error, I would suggest specifying the 
> login-customer-id as the manager account ID without hyphens (-). That being 
> said, you will need to ensure that the user / email address you used to 
> generate the credentials indeed has access 
> 
>  to 
> the account in your request.
>
> If the user / email address has access or is associated with the MCC / 
> manager account, you will need to specify the MCC / manager account's ID 
> without hyphens (-) as the value of the login-customer-id 
> 
>  field.
>
> Furthermore, if the issue persists, can you please provide us with the 
> complete *request* 
> 
>  and *response logs* 
> 
>  generated 
> as shown in the respective links, so we can check on our end the errors 
> being thrown?
>
> If you haven't enabled logging yet, it can be enabled by navigating to the 
> Client libraries > Your client library (ex. Java) > *Logging 
> documentation* 
> ,
>  
> which you can access from this link. For REST interface requests, you can 
> enable logging via the curl command by using the -i flag. 
>
> You can provide it via Reply privately to the author option. If this 
> option is not available, then send it instead on this email address 
> googleadsa...@google.com.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2k1tex: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 
"Google Ads API and AdWords 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/75b4c739-aceb-419e-a2cb-be43c1a7f4a2n%40googlegroups.com.


Getting "The Caller does not have permission" while creating budget

2023-03-22 Thread Özgür Nevres
Hi,

Request Id: SIg8l4iq1_8gFOYH6728ow

I am trying to create campaign and budget for a Customer under a Manager 
(client Customer).
Manager and Customer under it are linked because I can access all the 
Customer's assets: Campaigns, AdGroups, Ads, metrics, whatever.

But, when I try to create Campaign Budget, I am getting "The Caller does 
not have permission" error.
The Failure is: 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#cid

The link seemed irrelevant to me, because I am not using Google Ads REST 
API, I am using the Google Ads Nuget Package. I am using this 
method: https://developers.google.com/google-ads/api/samples/add-campaigns

Please note that with the same DeveloperToken, 
OAuth2ClientId, OAuth2ClientSecret, and OAuth2RefreshToken I can access 
Customer's all assets without any problem.

What am I doing wrong? Thanks in advance.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/32413b65-ae7e-4f7e-84d4-26556c8f189dn%40googlegroups.com.


Re: Is there a way to check if a customer is connected to my application?

2023-01-03 Thread Özgür Nevres
Yes I want to check that if the Refresh Token is still valid or not. Yes, 
as you said, the permission can be withdrawn without my app knowing.
Thanks for the answer.


On Tuesday, January 3, 2023 at 6:02:08 PM UTC+3 Zweitze wrote:

> Do you mean that you like to find out that a Refresh Token is still valid? 
> After all, that permission can be withdrawn without your app knowing.
>
> If that's your question, requesting just an Access Token does the trick. 
> But the C# client library completely hides this logic, in which case 
> calling customers.listAccessibleCustomers() is the best option. Now this 
> gives some overhead, but your next question is probably how to find out 
> whether your user still has access to the same MCCs as he had last time - 
> to find out you need that same method.
>
>
> On Tuesday, January 3, 2023 at 2:27:53 PM UTC+1 ozgur@earnado.com 
> wrote:
>
>>   Hi,
>>
>> I am developing an application using Google Ads API (technology: C#).
>> Users (customers) are connecting via "Connect with Google" and giving 
>> permission to my application. That's OK.
>>
>> My question is: is there a way to understand programmatically if a 
>> customer is still connected to my app? For example, I'll pass the 
>> CustomerId to check if s/he is still enabled my app to manage their Ads 
>> account.
>>
>> Now I can check this by calling ListAccessibleCustomers(). If it throws 
>> an exception, I analyze the exception and decide if s/he is still connected 
>> to my app.
>>
>> Is there a more "formal" way to do this?
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/3c6482bd-3f67-4f76-8a96-04367f00c802n%40googlegroups.com.


Is there a way to check if a customer is connected to my application?

2023-01-03 Thread Özgür Nevres
  Hi,

I am developing an application using Google Ads API (technology: C#).
Users (customers) are connecting via "Connect with Google" and giving 
permission to my application. That's OK.

My question is: is there a way to understand programmatically if a customer 
is still connected to my app? For example, I'll pass the CustomerId to 
check if s/he is still enabled my app to manage their Ads account.

Now I can check this by calling ListAccessibleCustomers(). If it throws an 
exception, I analyze the exception and decide if s/he is still connected to 
my app.

Is there a more "formal" way to do this?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/60f64c19-5b29-42e1-8423-102d0a5ea7b1n%40googlegroups.com.


Is there a wat to check if a customer is connected to my application?

2023-01-03 Thread Özgür Nevres
Hi,

I am developing an application using Google Ads API (technology: C#).
Users (customers) are connecting via "Connect with Google" and giving 
permission to my application. That's OK.

My question is: is there a way to understand programmatically if a customer 
is still connected to my app? For example, I'll pass the CustomerId to 
check if s/he is still enabled my app to manage their Ads account.

Now I can check this by calling ListAccessibleCustomers(). If it throws an 
exception, I analyze the exception and decide if s/he is still connected to 
my app.

Is there a more "formal" way to do this?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/e2181558-7c10-435b-90c9-6fca3fd3415en%40googlegroups.com.