Re: get campaign data

2024-06-13 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

I would recommend that you reach out to the Google Ads Product support team for 
tag setup issues.

Please note that our team can only assist with the technical queries or 
concerns related to the Google Ads API.

Thanks for your understanding.
This message is in relation to case "ref:!00D1U01174p.!5004Q02nqkUS:ref" 
(ADR-00192758)

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/KqmMQ0SF0S3A00H3AhzX3eQzepnwGhRT_7jQ%40sfdc.net.


Re: get campaign data

2024-06-11 Thread Varinder Sohal
Hi,
Thanks for your response!
Now I would like to know what changes are needed in following tracking code 
to track the leads. Right now I'm monitoring conversions and conversions 
value.


gtag('event', 'conversion', {'send_to': '-',
'value': 123.05,
'currency': 'USD'
});


On Tuesday, June 11, 2024 at 11:54:10 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Yes, your understanding is correct. I would like to mention that if you 
> set the user_identifiers while uploading conversions using only click IDs, 
> it is treated as a conversion for leads. The conversion for leads is 
> obtained by using the metrics.conversions and metrics.cost_per_conversion 
> to obtain metrics for cost per lead. For more information, you can refer to 
> this document 
> 
> .
>
> Hope this helps! 
>
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02nqkUS:ref" (ADR-00192758)
>
> 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/5e06dd29-e5d6-4030-acc7-d4351db6c58bn%40googlegroups.com.


Re: get campaign data

2024-06-11 Thread Varinder Sohal


Hi,

Thanks for your response!

I noticed that in your reply, you're treating conversions and leads as the 
same thing. However, I believe there's a distinction: conversions refer to 
those who have actually purchased the product, while leads are those who 
have shown interest and are willing to buy the product. How can we use the 
same metric key for both conversions and leads?

Could you clarify this for me?
On Tuesday, June 11, 2024 at 4:50:42 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Yes, you can consider conversion value as revenue in Google Ads. To 
> calculate your revenue, multiply your conversions by your average revenue 
> per conversion. For example, 30 conversions x $50 per conversion = a total 
> revenue of $1500. I would recommend you refer to this help center article 
> on How to estimate conversion value 
> 
>  for 
> more information.
>
> To get metrics for leads, you can use metrics.conversions 
> 
>  
> and metrics.cost_per_conversion 
> 
>  
> to obtain metrics for cost per lead.
>
> I hope this clarifies. Let us know if you have any other questions.
>
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02nqkUS:ref" (ADR-00192758)
>
> 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/e2d9d1db-ad59-444e-89f5-6b63974861bbn%40googlegroups.com.


Re: get campaign data

2024-06-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Yes, you can consider conversion value as revenue in Google Ads. To calculate 
your revenue, multiply your conversions by your average revenue per conversion. 
For example, 30 conversions x $50 per conversion = a total revenue of $1500. I 
would recommend you refer to this help center article on How to estimate 
conversion value for more information.

To get metrics for leads, you can use metrics.conversions and 
metrics.cost_per_conversion to obtain metrics for cost per lead.

I hope this clarifies. Let us know if you have any other questions.
This message is in relation to case "ref:!00D1U01174p.!5004Q02nqkUS:ref" 
(ADR-00192758)

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/mvxzq0SEWY5700ATxTSpozTDCLPxv1CpbDOw%40sfdc.net.


Re: get campaign data

2024-06-11 Thread Varinder Sohal
Hi,

I also want to know if it is possible to get metrics for leads and cost per 
lead. Despite reading the metrics 
 
documentation, I haven't found any clear references. Please let me know if 
you have any insights on this.

Thanks!
On Tuesday, June 11, 2024 at 11:19:21 AM UTC+5:30 Varinder Sohal wrote:

> Hi,
> I get the conversions when I increase the recommended budget thank you for 
> that but now I want to get the revenue. I believe it is appropriate to 
> consider the conversion value as the revenue if not please suggest to me 
> how can I get the revenue Please let me know if you need anything else.
> Thanks!
>
> On Thursday, May 23, 2024 at 7:01:25 PM UTC+5:30 Google Ads API Forum 
> Advisor wrote:
>
>> Hi,
>>
>> In order to investigate the issue from our end, we need the customer ID 
>> and the campaign ID, so I would request you to share those details. 
>>
>>
>> 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.!5004Q02nqkUS:ref" (ADR-00192758)
>>
>> 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/88845d03-1429-4e81-aa22-26347d0ea1f2n%40googlegroups.com.


Re: get campaign data

2024-06-10 Thread Varinder Sohal
Hi,
I get the conversions when I increase the recommended budget thank you for 
that but now I want to get the revenue. I believe it is appropriate to 
consider the conversion value as the revenue if not please suggest to me 
how can I get the revenue Please let me know if you need anything else.
Thanks!

On Thursday, May 23, 2024 at 7:01:25 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> In order to investigate the issue from our end, we need the customer ID 
> and the campaign ID, so I would request you to share those details. 
>
>
> 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.!5004Q02nqkUS:ref" (ADR-00192758)
>
> 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/ee93d65f-7416-4f4f-b52e-24edcc906f63n%40googlegroups.com.


Re: get campaign data

2024-05-23 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

In order to investigate the issue from our end, we need the customer ID and the 
campaign ID, so I would request you to share those details.

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.!5004Q02nqkUS:ref" 
(ADR-00192758)

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/Iw3A80SDXXJH00CkOXz5jWQQyvKNBDIp_eKg%40sfdc.net.


Re: get campaign data

2024-05-23 Thread Varinder Sohal
https://nimb.ws/JL3FY4E

Here is the screenshot of ads dashboard.

Following is the request method: 

public static function getGoogleAdCampaigns(GoogleAdsClient 
$googleAdsClient, int $customerId, $startDate, $endDate) {
$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
$query = "SELECT campaign.id, campaign.name,campaign.status, 
metrics.impressions,metrics.interactions, metrics.clicks, 
metrics.conversions, metrics.ctr, metrics.average_cpc, metrics.cost_micros 
FROM campaign WHERE segments.date >= '$startDate' AND segments.date <= 
'$endDate'";

/** @var GoogleAdsServerStreamDecorator $stream */
$stream = $googleAdsServiceClient->searchStream(
SearchGoogleAdsStreamRequest::build($customerId, $query)
);
$campaigns = [];

foreach ($stream->iterateAllElements() as $googleAdsRow) {
/** @var GoogleAdsRow $googleAdsRow */
$campaigns[] = [
'id' => $googleAdsRow->getCampaign()->getId(),
'name' => $googleAdsRow->getCampaign()->getName(),
'status' => $googleAdsRow->getCampaign()->getStatus(),
'impressions' => $googleAdsRow->getMetrics()->getImpressions(),
'clicks' => $googleAdsRow->getMetrics()->getClicks(),
'conversions' => $googleAdsRow->getMetrics()->getConversions(),
'ctr' => $googleAdsRow->getMetrics()->getCtr(),
'average_cpc' => $googleAdsRow->getMetrics()->getAverageCpc(),
'cost_micros' => $googleAdsRow->getMetrics()->getCostMicros(),
'interactions' => $googleAdsRow->getMetrics()->getInteractions(),
'revenue_micros' => $googleAdsRow->getMetrics()->getRevenueMicros(),
];
}

echo json_encode($campaigns);
exit();
}

On Wednesday, May 22, 2024 at 7:53:19 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Kindly provide us with the uncropped screenshot of the Google Ads account 
> where the values are showing zero and updated complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> 
>  and request header 
> )
>  
> generated at your end so that we can investigate why 
> the metrics.conversations are not returned via the API.
>
> 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.!5004Q02nqkUS:ref" (ADR-00192758)
>
>
> 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/d2609889-dae9-45f2-b9f8-8afc344c2092n%40googlegroups.com.


Re: get campaign data

2024-05-22 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

Kindly provide us with the uncropped screenshot of the Google Ads account where 
the values are showing zero and updated complete API logs (request and response 
with request-id and request header) generated at your end so that we can 
investigate why the metrics.conversations are not returned via the API.

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.!5004Q02nqkUS:ref" 
(ADR-00192758)

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/w5ucO0SDW59U006X-cOI5eQvica5tvwk0-ig%40sfdc.net.


Re: get campaign data

2024-05-22 Thread Varinder Sohal
Hi,
Thank you for this conversation. It has been very helpful. However, I did 
not get the values when using metrics.conversations. It seems like 
something might be missing when running the campaign, as it has been 
showing a value of 0 for the past two months. 
On Friday, August 11, 2023 at 11:26:50 AM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi Shafayet,
>
> Thank you for the reply.
>
> You may try the below sample query and utilize *Campaign Builder (*
> https://developers.google.com/google-ads/api/fields/v14/campaign_query_builder
> *)* to see the selectable fields you may use when selecting campaign 
> resource attributes:
>
> *"SELECT campaign.status, campaign.name , 
> campaign_budget.name , customer.currency_code, 
> campaign.campaign_budget, campaign_budget.type, campaign.primary_status, 
> campaign.primary_status_reasons, campaign.advertising_channel_type, 
> metrics.cost_micros, metrics.impressions, metrics.clicks, metrics.ctr, 
> metrics.interaction_rate, metrics.search_impression_share, 
> metrics.search_budget_lost_impression_share, 
> metrics.view_through_conversions, campaign.optimization_score, 
> customer.optimization_score, metrics.active_view_ctr, 
> metrics.active_view_impressions, metrics.conversions_value, 
> metrics.current_model_attributed_conversions_value_per_cost, 
> metrics.conversions, metrics.cost_per_conversion, 
> metrics.top_impression_percentage, metrics.average_cpc, 
> metrics.value_per_all_conversions_by_conversion_date, 
> metrics.value_per_conversions_by_conversion_date, 
> metrics.conversions_by_conversion_date, metrics.all_conversions_from_order, 
> metrics.bounce_rate FROM campaign"*
>
> On the other hand, if the query we have provided is still not what you are 
> referring to, you may provide us with the entire UI screenshot without 
> cropping, including the customer ID, where you can see the expected data 
> you want to retrieve in the API. We asked that as the Google Ads API 
> mirrors the Google Ads UI. Whatever data shows on the Ads UI report, the 
> API should pull it the same, and upon checking the screenshot you have 
> provided, it seems not to have been taken from the exact Google Ads UI. 
>
> You may then send the requested information via the Reply privately to 
> author option. If this option is not available, you may send the details 
> directly to our googleadsa...@google.com alias instead.
>  
> This message is in relation to case "ref:_00D1U1174p._5004Q2nqkUS: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/6035989c-0889-4be8-9ec1-105596e0564dn%40googlegroups.com.