I am building an application that is using Google Adwords API. I am asking the user to sign in with his Google Account and grant me permission to use his adwords Accounts. When the user logs in with Google, I am getting his accounts using googleads.adwords

from googleads import oauth2, adwords client = adwords.AdWordsClient(developer_token, oauth2_client, 'test') offline_conversion_feed_service = client.GetService('CustomerService', version='v201809') customers = offline_conversion_feed_service.getCustomers() 

I need to find all the MCC accounts and their linked accounts.

In customers I have all the accounts and their client_customer_id, but I cannot determine which account is linked with which MCC.

My question is, how to determine which accounts are linked with which ?

I have a Google Ads Script, which is supposed to notify me via e-mail, when products in my merchant center account are disapproved.

There is a "include" filter field in this script, which limits the monitored products, however, I can't get it to work. Everything else seems to be working.

This is the part of the script, where you can filter the products:

var productIdToInclude = []; 

I have tried the following versions, to no avail:

var productIdToInclude = ["product123"]; var productIdToInclude = ['product123']; var productIdToInclude = [product123]; 

This is the comment in the script about this filter:

// Filters // These two variables store the product ID's that we want to filter by. // The ID's need to be in string format e.g. productIdToInclude = ["123"]; 

The whole script can be found here.

I believe, that I have a synthax error, but I can't figure it out.

I was trying to change the keyword status via Google Ads API the following code shows how to update the keyword bid... however, I was looking for a way to set the keyword status as paused, I haven't been able to find any info within the documentation to paused the keyword

from googleads import adwords AD_GROUP_ID = 'INSERT_AD_GROUP_ID_HERE' CRITERION_ID = 'INSERT_KEYWORD_CRITERION_ID_HERE' def main(client, ad_group_id, criterion_id):            # Initialize appropriate service.            ad_group_criterion_service = client.GetService(                                        'AdGroupCriterionService', version='v201809')            # Construct operations and update bids.            operations = [{                  'operator': 'SET',                  'operand': {                  'xsi_type': 'BiddableAdGroupCriterion',                  'adGroupId': ad_group_id,                  'criterion': {                  'id': criterion_id,                   },                 'biddingStrategyConfiguration': {                 'bids': [                      {                     'xsi_type': 'CpcBid',                     'bid': {                       'microAmount': '1000000'                       }                     }                   ]                 }               }             }]         ad_group_criteria = ad_group_criterion_service.mutate(operations)  # Display results.  if 'value' in ad_group_criteria:     for criterion in ad_group_criteria['value']:       if criterion['criterion']['Criterion.Type'] == 'Keyword':           print('Ad group criterion with ad group id "%s" and criterion id '                 '"%s" currently has bids:'                 % (criterion['adGroupId'], criterion['criterion']['id']))       for bid in criterion['biddingStrategyConfiguration']['bids']:          print('\tType: "%s", value: %s' % (bid['Bids.Type'],)               bid['bid']['microAmount']) else:     print('No ad group criteria were updated.') if __name__ == '__main__':      # Initialize client object.      adwords_client = adwords.AdWordsClient.LoadFromStorage()      main(adwords_client, AD_GROUP_ID, CRITERION_ID) 

Thanks in advance for the help...

I already have a campaign budget which i want to update using google AdWords API.

   BudgetServiceInterface budgetService =         adWordsServices.get(session, BudgetServiceInterface.class);     // Create a budget, which can be shared by multiple campaigns.     Budget sharedBudget = new Budget();     sharedBudget.setName("Interplanetary Cruise #" + System.currentTimeMillis());     Money budgetAmount = new Money();     budgetAmount.setMicroAmount(50_000_000L);     sharedBudget.setAmount(budgetAmount);     sharedBudget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);     BudgetOperation budgetOperation = new BudgetOperation();     budgetOperation.setOperand(sharedBudget);     budgetOperation.setOperator(Operator.ADD);     // Add the budget     Long budgetId =         budgetService.mutate(new BudgetOperation[] {budgetOperation}).getValue(0).getBudgetId();     // Get the CampaignService.     CampaignServiceInterface campaignService =         adWordsServices.get(session, CampaignServiceInterface.class); 

Assiging budgetId to campaign

    Budget budget = new Budget();     budget.setBudgetId(budgetId);     campaign.setBudget(budget); 

This will unassign existing campaign budget and assign new campaign budget to the campaign ( campaign budget is not removed and it still exist in google ads) but I want to update the budget name and budget amount of existing campaign budget rather than assigning new campaign budget.