Billing workflow when creating new accounts programmatically
Dear all, We are building the application that creates new Google Ads account under our MCC account when the new customer wants to start advertising on Google. The key idea here is that the customer should go live within short time (5 to 30 minutes) with their online ads after the ads get approved by Google. In our tool customer pays for the ads(they pay our company) and at the end we are paying for Google Ads costs. Again this is done due to simplify process for new customers. At the moment, we are creating a new accounts and launching campaigns successfully, but in order to campaign go live every time we need to go to Billing Setup and submit the payment profile of our organization. Once we get many new customers then it will be difficult to manage this manually. In Google Ads API documentation I read that we need to configure the monthly invoicing to manage Billing workflow's programmatically. So my questions: 1) Is it even possible to get monthly invoicing for newly created google ads accounts under MCC account? 2) Basically how do we solve this issue? Thanks! Shakhboz -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/313f9c68-7342-43a8-824d-6cedfe5e9522n%40googlegroups.com.
Re: Billing setup not working for sub account under manager account
Hello Amine, Thanks for the suggestion. I'll pass that on to a member of my team who is doing some adjustments to the overall onboarding information. Thanks again, This message is in relation to case "ref:_00D1U1174p._5004Q2WyhED:ref" Nadine Wang 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/cRoy20RYQXRD00sS4Iz4xwS2yxGGcpDShtgQ%40sfdc.net.
URGENT: Keep getting Error User Doesnt have permission to access customer?
Hey Google Ads team, I'm working on behalf of a client. The client has a regular ads account, and a manager account that owns the regular ads account. The client invited me with ade...@ibenjamen.com to the project. We applied for the developer token, and we have basic access. I went through the process that I describe here of generating the refresh token; https://www.loom.com/share/32ae63f386b44481a625264657d9a3b6 Below is the code of what we are trying to do simply uploading google click conversions through the api. In essence we have an airtable app, where we can click a button and it will send it to google ads. It worked with the test accounts and test tokens, but now it does not. We only intend to use it internally. When running it after we got approved for the basic access token we get this error: " message: "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""; How do I fix the permission thing? Here is the code of sending the click conversions (straight from the python client) For context, this code runs in a google cloud function. That I created on behalf of customer. import functions_framework from google.ads.googleads.client import GoogleAdsClient from google.ads.googleads.errors import GoogleAdsException import os @functions_framework.http def upload_conversion(request): # Set CORS headers for preflight requests if request.method == 'OPTIONS': headers = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST', 'Access-Control-Allow-Headers': 'Content-Type', 'Access-Control-Max-Age': '3600', 'Access-Control-Allow-Credentials': 'true', } return ('', 204, headers) # Set CORS headers for the main request headers = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': 'true', } if request.method != 'POST': return ('Method not supported', 405, headers) request_json = request.get_json(silent=True) if request_json and 'customer_id' in request_json: customer_id = request_json['customer_id'] conversion_action_id = request_json['conversion_action_id'] gclid = request_json.get('gclid', None) conversion_date_time = request_json['conversion_date_time'] gbraid = request_json.get('gbraid', None) wbraid = request_json.get('wbraid', None) else: return ('Invalid BRO request', 400, headers) if not gclid and not wbraid and not gbraid: return ('No gclid or wbraid present', 400, headers) cwd = os.getcwd() config_file_path = os.path.join(cwd, 'google-ads.yaml') client = GoogleAdsClient.load_from_storage(path=config_file_path, version= 'v14') click_conversion = client.get_type("ClickConversion") conversion_upload_service = client.get_service("ConversionUploadService") conversion_action_service = client.get_service("ConversionActionService") click_conversion.conversion_action = conversion_action_service.conversion_action_path( customer_id, conversion_action_id ) if gclid: click_conversion.gclid = gclid elif gbraid: click_conversion.gbraid = gbraid else: click_conversion.wbraid = wbraid click_conversion.conversion_date_time = conversion_date_time request = client.get_type("UploadClickConversionsRequest") request.customer_id = customer_id request.conversions.append(click_conversion) request.partial_failure = True conversion_upload_response = conversion_upload_service.upload_click_conversions( request=request, ) if conversion_upload_response.partial_failure_error: return (conversion_upload_response.partial_failure_error.message, 400, headers) uploaded_click_conversion = conversion_upload_response.results[0] print( f"Uploaded conversion that occurred at " f'"{uploaded_click_conversion.conversion_date_time}" from ' f'Google Click ID "{uploaded_click_conversion.gclid}" ' f'to "{uploaded_click_conversion.conversion_action}"' ) return ('Conversion uploaded', 200, headers) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d62fc28d-938a-4fcd-be7d-b82733081178n%40googlegroups.com.
this api realy hard to use.
1, oauth and develop token question. some time 401, some time 403. to many step. 2, api document not detail. FYI create ad group ad 1. Field 'ad_group_ad.field.ad_group' is required for 'ad_group_ad.field.CREATE' operation. (no any way to know ad_group is required. only submit) 2. ad.final_urls TOO_FEW, that mean its required, at least one, i dont know, only submit. 3. ad.responsive_search_ad.headlines TOO_FEW NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION. it is tell me each pined field MUST have a content. i can know it only TEST ONE BY ONE. 4. ad.responsive_search_ad.headlines.*.asset_performance_label this is a enum value, response to me PENDING always. whatever whick one picked. api document write this readonly cant be crash? adfksdfdfssa -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/a163d9c2-9cba-4072-9110-65177f4af437n%40googlegroups.com.
Re: flaky behavior in getting the locationasset association with locationsync assetset
Please can you ask the dev team to tell us what is the delay between creating LocationSync AssetSet and automatically the corresponding LocationAsset ? Thanks, Ahmed On Friday, 28 July 2023 at 15:13:40 UTC+3 Google Ads API Forum Advisor wrote: > Hi Ahmed, > > > > Thank you for reaching out to the Google Ads API Support Team. > > > > Could you please provide the complete API logs (request and response with > request-id and request header) generated on your end as well as the > complete Google Ads UI screenshot of the information you're aiming to > retrieve? This is so we can further check the behaviour you've observed and > investigate this further: > >- Request: > > https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request > >- Response: > > https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response > >- Request-id: > > https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id > >- Request header: > > https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers > > > > > For the client libraries, logging can be enabled by navigating to the > Client libraries > Your client library (ex Java) > Logging documentation, > which you can access from this link: > https://developers.google.com/google-ads/api/docs/client-libs. For REST > interface requests, you can enable logging via the curl command by using > the -i flag. This will cause the tool to include the HTTP response headers > in the output. > > > > You may send the requested information via the *Reply privately to author* > option. > Note that you may need to join the Google Group for you to use this option. > If this option is not available on your end still, you may send the details > directly to our alias `googleadsa...@google.com` instead. > > > This message is in relation to case "ref:_00D1U1174p._5004Q2mwhxz: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/917083fe-982c-4214-84eb-cdea9b64ef70n%40googlegroups.com.
Re: Conversion and Conversion tracking is not enabled for the campaign in Testing account
Hi, Thank you for reaching out to the Google Ads API support team. Regarding your concern, as per this *Limitations* (https://developers.google.com/google-ads/api/docs/first-call/test-accounts#limitations) guide, please keep in mind the below limitations for test accounts: - Because test accounts can't serve ads or interact with your production accounts in any way, serving metrics -- like impressions, conversions, or cost data -- are empty. - Some features cannot be tested with test accounts. This includes bid simulations, conversion uploads, and billing. Other features, including recommendations, have limited functionality within test accounts because test accounts do not generate serving data. - Test manager account hierarchies can contain up to 50 test accounts. As for the error you encountered, you may follow this *guide* (https://developers.google.com/google-ads/api/docs/conversions/overview#effective_conversion_account) for enabling conversion tracking in your account. Regards, Google Ads API Team On Monday, July 31, 2023 at 10:58:02 PM UTC+8 kt wrote: > Hello team , > > We Currently want to test adding campaigns to a portfolio in *Testing > Account * . And we encountered > *CAMPAIGN_ERROR_CONVERSION_TRACKING_NOT_ENABLED* , we wanted to know if > we are bale to create campaign with TARGETED CPA bid strategies and be able > to add campaign to a portfolio in Testing account . And if there are > alternative ways available to test these feature ? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/07267735-e4bb-45b1-89d5-c3308e158155n%40googlegroups.com.
Re: actor pattern to maximize parallel api requests while honoring rate limit exceptions
I wrote it to handle QuotaErrorEnum.QuotaError when I had dozens of concurrent processes hitting your API and your API getting very upset that the other process stacks kept sending API requests, but that said, it's not a request for help but instead help for those who may be in a similar situation. On Tue, 1 Aug 2023 at 13:56, Google Ads API Forum Advisor wrote: > Hi, > > Thank you for reaching out to the Google Ads API support team. > > Regarding your concern, please note that our team provides assistance to > concerns or issues related to *Google Ads API* ( > https://developers.google.com/google-ads/api/docs/start). Having said > that, can you confirm if this is related to the Google Ads API? If so, can > you provide more context or details regarding this so our team can have a > better view and provide precise recommendations? > > If you are encountering Google Ads API-related errors, can you provide the > below complete API logs for investigation? > >- request - > > https://developers.google.com/google-ads/api/docs/concepts/field-service#request >- response - > > https://developers.google.com/google-ads/api/docs/concepts/field-service#response >- request ID - > > https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id >- request header - > > https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers > > > You may then send the requested logs via the *Reply privately to author > *option. > If this option is not available, you may send the details directly to our > googleadsapi-supp...@google.com alias instead. > > Moreover, since you mentioned that you're getting rate limit errors, > kindly note that the Google Ads API buckets requests for rate limiting by > queries per second (QPS) per client customer ID (CID) and developer token, > meaning that metering is enforced independently on both CIDs and developer > tokens. You may check our *Rate Limits* ( > https://developers.google.com/google-ads/api/docs/best-practices/rate-limits) > for more details. > > This message is in relation to case "ref:_00D1U1174p._5004Q2nZmEx: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/CAN%3DxSjPE9T%3DTKxv2VmkETo5vSfdavMUMOfngGNXnzt3JZGQuyA%40mail.gmail.com.
RE: actor pattern to maximize parallel api requests while honoring rate limit exceptions
Hi, Thank you for reaching out to the Google Ads API support team. Regarding your concern, please note that our team provides assistance to concerns or issues related to Google Ads API (https://developers.google.com/google-ads/api/docs/start). Having said that, can you confirm if this is related to the Google Ads API? If so, can you provide more context or details regarding this so our team can have a better view and provide precise recommendations? If you are encountering Google Ads API-related errors, can you provide the below complete API logs for investigation? request - https://developers.google.com/google-ads/api/docs/concepts/field-service#request response - https://developers.google.com/google-ads/api/docs/concepts/field-service#response request ID - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id request header - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsapi-supp...@google.com alias instead. Moreover, since you mentioned that you're getting rate limit errors, kindly note that the Google Ads API buckets requests for rate limiting by queries per second (QPS) per client customer ID (CID) and developer token, meaning that metering is enforced independently on both CIDs and developer tokens. You may check our Rate Limits (https://developers.google.com/google-ads/api/docs/best-practices/rate-limits) for more details. This message is in relation to case "ref:_00D1U1174p._5004Q2nZmEx:ref" Thanks, 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/amJA70RYQ4IB001alJn-3FQveaT06YjoHUgQ%40sfdc.net.
RE: how to get asset.source='automatically_created' programmatically
Hi, I am from the Google Ads API support team. Thank you for reaching out to the Google Ads API Support Team. Please excuse us for only getting back now as your message failed to be routed to our support queue. Moving forward to your concern, this is a known issue at our end. Our team is working on the issue, and we will reach out to you once we have any updates. This message is in relation to case "ref:_00D1U1174p._5004Q2nZoRG:ref" Thanks, 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/yaU0H0RYQ0IZ00uIWMUaVgTOGwxXHolpWNDQ%40sfdc.net.
Re: pmax missing in campaign_asset resource
Hi Google Ads API Team, Thanks for your reply. I'm not sure, if your answer is an explanation for mentioned issue, as I'm receiving results via campaign resource on segment "segments.asset_interaction_target.asset": Response (698 results in total): [{'results': [{'campaign': {'resourceName': 'customers/4879915890/campaigns/ 18083992061', 'id': '18083992061'}, 'metrics': {'clicks': '6', 'conversionsFromInteractionsRate': 0, 'conversionsValue': 0, 'conversions': 0, 'costMicros': '1484', 'allConversionsValue': 0, 'allConversions': 0, 'impressions': '215'}, 'segments': {'device': 'DESKTOP', 'adNetworkType': 'MIXED', 'date': '2023-07-25', 'assetInteractionTarget': {'asset': 'customers/4879915890/assets/32610980'}}},...] As you can see from the response, impressions and clicks were generated on segment 'assetInteractionTarget': {'asset': 'customers/4879915890/assets/32610980'}. So from my understanding, values for that assets exists for that date and that campaign. Besides that I'm also receiving results via asset_group_product_group_view resource. Of course this results are aggregated on asset_group level, but as far as I know, asset_groups could only be created if at least one asset is linked to that asset_group. This would mean, if I'm receiving results on asset_group level, there also have to be assets. So from my point of view and with reference to the results of the campaign and asset_group_product_group_view resource, I would also expect similar results by using campaign_asset resource. Could you please let me know, if I'm wrong and if not, why campaign_assets includes rows with zero metrics, but the other both resources are not? Best regards, Hannes On Friday, July 28, 2023 at 8:36:59 PM UTC+2 Google Ads API and AdWords API Forum wrote: Hi Hannes, Thank you for coming back to us and providing additional information. I hope you are doing well today. With regards to your concern, upon checking in the Google Ads UI, the campaign asset doesn't have any metrics or it has zero metrics. Please also note that zero metrics are automatically excluded on the report as per this document (https://developers.google.com/google-ads/api/docs/reporting/zero-metrics). One of the suggestions is to include rows with zero metrics and to include another field that is not zero value. You may check this guide ( https://developers.google.com/google-ads/api/docs/reporting/zero-metrics#rows_returned) for your reference. In addition to this matter, removing metrics from the sample query, we got results that are matched in Google Ads UI. See below for reference. SELECT campaign.id, campaign_asset.resource_name, campaign_asset.asset, campaign_asset.field_type, campaign_asset.source, campaign_asset.status, campaign_asset.campaign, campaign_asset.primary_status, campaign_asset.primary_status_details, campaign_asset.primary_status_reasons FROM campaign_asset WHERE campaign.id = 00 AND segments.date = '2023-07-25' I hope it clarifies. You may check this also on your end and let us know how it goes. Have a great day. Regards, Google Ads API Team On Thursday, July 27, 2023 at 2:28:26 PM UTC+8 hannes@piamedia.com wrote: Hi, Thanks for your quick response. I did not checked UI yet, but I compared results of mentioned resources (campaign_assets vs. campaign vs. ...). Please find attached the GAQL statements which I'm using for comparison including a campaign_id which is marked as PERFORMACNE_MAX: *campaign_assets:* Request: SELECT campaign.id ,campaign_asset.asset ,campaign_asset.field_type ,segments.date ,segments.device ,segments.ad_network_type ,metrics.impressions ,metrics.clicks ,metrics.cost_micros ,metrics.conversions ,metrics.conversions_value ,metrics.all_conversions ,metrics.all_conversions_value ,metrics.conversions_from_interactions_rate FROM campaign_asset WHERE segments.date BETWEEN \'2023-07-25\' AND \'2023-07-25\' AND campaign.id = 18083992061 Response (0 results in total): [] *asset_group_product_group_view:* Request: SELECT campaign.id ,asset_group.id ,asset_group.ad_strength ,asset_group.status ,asset_group_listing_group_filter.type ,segments.date ,segments.device ,segments.ad_network_type ,metrics.impressions ,metrics.clicks ,metrics.cost_micros ,metrics.conversions ,metrics.conversions_value ,metrics.all_conversions ,metrics.all_conversions_value ,metrics.conversions_from_interactions_rate FROM asset_group_product_group_view WHERE segments.date BETWEEN \'20
Re: Hi Team
afaik, google doesn't support deleting accounts; however, you can change the budget to 0 and delete all campaigns. On Friday, 28 July 2023 at 16:58:49 UTC-4 Leonel Pedraza wrote: > I'm trying to cancel google ads accounts through the api but it won't let > me put a canceled status. How can I change the status of the account to > prevent it from continuing to have expenses? > > Thank's > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8a1828be-5e32-43ca-99bc-439d5cdd9710n%40googlegroups.com.
Re: how to get asset.source='AUTOMATICALLY_CREATED' programmatically
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/88_bLGW66FA) from the forum as it wasn't routed to our support queue. Regards, Google Ads API Team On Wednesday, May 31, 2023 at 1:19:46 AM UTC+8 bdumi...@tripadvisor.com wrote: > >1. We are trying to query > > https://developers.google.com/google-ads/api/fields/v13/ad_group_ad_asset_view_query_builder > >2. >3. To get the asset.source='AUTOMATICALLY_CREATED' programmatically >4. >5. i tried a variations of GAQL queries , the simplest one being > 1. > > SELECT > campaign.id, > asset.source > FROM ad_group_ad_asset_view > WHERE > asset.source != 'ADVERTISER' > 2. > > > > 6. But *nothing* comes up , which seems to imply there is no way to >programmatically get the assets Automatically Created ( from experiments ) >7. >8. Attached is a screenshot of what we see in the Google Ads UI which >SHOULD show up as source=AUTOMATICALLY_CREATED but comes back as > ADVERTISER > 1. AD ID 505191991329 > 2. Campaign ID 20113805176 > 3. Ad Group ID 151957085514 > 4. >9. Or another example > 1. > > where ext_campaign_id = '20113805176' > 2. > > and ext_adgroup_id = '151957085514' > 3. > > and ext_ad_id = '505191991329' > 4. > > and ext_asset_id in ('82810186692','82810186689','83517604316') > 5. >10. *So the question is ... is there a way to programmatically get the >asset.source=AUTOMATICALLY_CREATED ?* > >11. > > https://ads.google.com/aw/campaigns?ocid=63419&workspaceId=0&ascid=63419&euid=699421145&__u=274105&uscid=9107486&__c=8647485614&authuser=0&assetFieldType=59 >12. > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/5ec5590e-c0fb-479a-a9e0-4da136935003n%40googlegroups.com.
RE: google ads error
Hi Mateen, Thanks for reaching out to the Google Ads API Team. I hope you are doing well today. With regards to your concern, you are encountering the "USER_PERMISSION_DENIED" error which means that a user doesn't have permission to access a customer and you’re accessing a client customer using 'login-customer-id’ in the request. To address the above error, you will need to ensure that the user or email address you used to generate the credentials indeed has access (https://developers.google.com/google-ads/api/reference/rpc/v14/AuthorizationErrorEnum.AuthorizationError?hl=en#user_permission_denied) to the account in your request. If the user or email address has access or is associated with the MCC or manager account, you will need to specify the said MCC / manager account ID as the value of the login-customer-id (https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid) field. If the issue or error still persists, please provide the complete (request and response with request-id) logs with request ID generated as shown in the respective links. This will help us to further compare, investigate, and validate why you are encountering issues, and to provide accurate information or recommendations on this matter. You can provide these via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-supp...@google.com. Reference links: Request - https://developers.google.com/google-ads/api/docs/concepts/field-service#request Response - https://developers.google.com/google-ads/api/docs/concepts/field-service#response Request-id - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id Have a great day. This message is in relation to case "ref:_00D1U1174p._5004Q2nZiiJ:ref" Thanks, 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/qrez00RYPX7X004NbeSz_pR-C9KY99DlP1dg%40sfdc.net.
Error Accessing Client Account's Campaigns Under Manager Account: "User doesn't have permission to access customer"
I am facing an issue while trying to fetch campaigns from a test client account under my test manager account using the Google Ads API. While executing the query, I receive the following error: ud { errors: [ _d { error_code: [p], message: "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"; } ], request_id: 'mI1hCRLhmiYhN2b8HmdTPQ' } I have made sure that I am using the correct manager's customer ID and have set it in the 'login-customer-id' header, but I still encounter this error. I am trying to get campaigns from a client account that's under the management of my manager account, all within a testing environment. Has anyone encountered a similar issue or can provide guidance on resolving this? Is this even possible to achieve using a test account? If this approach is not suitable for test accounts, are there alternative solutions or workarounds that could be suggested? Any insights, assistance, or recommendations would be greatly appreciated. Thank you! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d70bd904-454d-41bb-81a9-134cc61f721dn%40googlegroups.com.
Re: Billing setup not working for sub account under manager account
Thank you Nadine, I think under https://developers.google.com/google-ads/api/docs/first-call/overview page should contain a new page/section about the list of differences between what is offered in the UI and the API, so the community can be aware of. Thank you for your help, Amine On Monday, July 31, 2023 at 11:52:55 PM UTC+1 Google Ads API Forum Advisor wrote: > Hello Thierry, > > Thanks for the feedback. > > Sadly, no, there isn't a workaround. When billing was added to the API, it > was built only for monthly invoicing, so the API cannot work around that. > The API was built with scale in mind, and developers who scale in a massive > way tend to use monthly invoicing. I'll add your voice to the feature > request to have the API have the capability to do other kinds of billing. > > As for the flow, within the context of the Google Ads UI, the flow you > mentioned is perfectly valid, so we can't error within the Google Ads UI. > Most people in the Google Ads UI are not setting up their billing with the > plan to work with the Google Ads API. So, I would like to hear your > feedback on where in the API documentation you think we could add something > to make it more clear that only monthly invoicing can be used to manage > billing with the Google Ads API. Perhaps, there is another place that would > make it more clear other than the place that you found it. > > Thanks, > > This message is in relation to case "ref:_00D1U1174p._5004Q2WyhED:ref" > > > [image: Google Logo] > Nadine Wang > 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/836bb37e-7be5-4b73-91a1-aae47e740e2bn%40googlegroups.com.
Actor pattern to maximize parallel api requests while honoring rate limit exceptions
We were occasionally getting rate limit errors from google (and other) apis in our highly parallel Kotlin system. I developed a traffic cop pattern which seems to work well and wrote a blog about it: https://www.cargurus.dev/kotlin-actor/actor/ -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/0fdad50a-f125-4609-ae3b-6314918f42f2n%40googlegroups.com.
GOOGLE ADs ERROR
Hi Team i wan to run google ads using node js and react js the error is how we can solve this ?? ud { errors: [ _d { error_code: [p], message: "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"; } ], request_id: 'XrT48GfZGUGctyV0ulawqA' } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/5b2b0b20-e8f2-4d7f-b168-d96cd19d85d8n%40googlegroups.com.
User in the cookie is not a valid Ads user
Hey , I am getting below error when I am running Keyword Plan Service using Python. It was working fine for weeks but yesterday suddenly is stop getting new keyword ideas. Request made: ClientCustomerId: 2983067848, Host: googleads.googleapis.com, Method: /google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordIdeas, RequestId: GIxqjiJB2NHIaoTCJUqhzw, IsFault: True, FaultMessage: User in the cookie is not a valid Ads user. Request made: ClientCustomerId: 2983067848, Host: googleads.googleapis.com, Method: /google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordIdeas, RequestId: 5m659i7k-CwlZPMPvu0qsg, IsFault: True, FaultMessage: User in the cookie is not a valid Ads user. Request with ID "GIxqjiJB2NHIaoTCJUqhzw" failed with status "UNAUTHENTICATED" and includes the following errors: Error with message "User in the cookie is not a valid Ads user.". Please let me know if there are any ways to resolve the issue . Thank you. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/533d44c5-4bde-4ef4-9dd2-d3ec677b12f8n%40googlegroups.com.