Posts under category Google

I am getting a USER_PERMISSION_DENIED error while making google ads API call. Upon googling I got to know that we need to pass login customer id and client customer id while making API call?

  1. I want to understand what is the difference between login customer id and client customer id?
  2. How do I get login customer id and client customer id ?
  3. When do I have to use both login customer id and client customer id while making API call? Some sample code examples to use both login customer id and client customer id using java library would be helpful

I was asked to call Google-Ads API in order to create a report with these fields:

I went to ad_group_ad table.

I wanted to make sure I understand this table's meaning: Why isn't this just called Ad?

What is the difference between Ad_group_ad and Ad_group tables?

There were a few metrics which I couldn't find in ad_group_ad I couldn't filter the views which contain them (for example impression_share)

I know impression_share exists for keywords and campaign, so I found them in the relevant tables. So I understand they cannot be broken down at an ad level.

But I still couldn't find the other highlighted metrics even at a campaign level.

Here is my campaign query try:

SELECT    metrics.clicks,    metrics.impressions,    metrics.ctr,    metrics.cost_micros,    metrics.cost_per_conversion,    metrics.cost_per_all_conversions,    metrics.all_conversions_from_interactions_rate,    metrics.all_conversions_value,    campaign.name,    campaign.id,    segments.device,    segments.date,    campaign.advertising_channel_type,    segments.click_type,    campaign.geo_target_type_setting.positive_geo_target_type,    campaign.geo_target_type_setting.negative_geo_target_type  FROM campaign  WHERE    segments.date BETWEEN '2020-01-01' AND '2022-01-01'  ORDER BY    campaign.start_date DESC  LIMIT 100  

I got this Fatal Error/Uncaught Error while linking with the Google Ads API. I've used the Github code and downloaded library from composer

Fatal error: Uncaught Error: Class "Google\Ads\GoogleAds\Examples\Utils\ArgumentParser" not found in googleAdword\examples\BasicOperations\GetCampaigns.php:44 Stack trace: #0 googleAdword\examples\BasicOperations\GetCampaigns.php(120): Google\Ads\GoogleAds\Examples\BasicOperations\GetCampaigns::main() #1

Tried all these solutions:

  1. reinstalling the lib, and not through zip downloading at first, but through git clone, and then install through composer etc.
  2. In the sample code of GetAccountInformation, there is a CUSTOMER_ID field that is required before you execute the code.(Already set)

I need to import pandas and google ads in the AWS lambda function. pandas support only the 3.7 version and google ads support only the 3.8 version.

When I've given lambda 3.8 version google ads works and pandas get an error and when I'm given lambda 3.7 version pandas works and google ads get an error.

Please guide me on how to support the two versions of layers.