add_smart_display_ad
This example adds a Smart Display campaign, an ad group and a responsive display ad. More information about Smart Display campaigns can be found at https://support.google.com/google-ads/answer/7020281.
IMPORTANT: The AssetService requires you to reuse what you've uploaded previously. Therefore, you cannot create an image asset with the exactly same bytes. In case you want to run this example more than once, note down the created assets' resource names and specify them as command-line arguments for marketing and square marketing images.
Alternatively, you can modify the image URLs' constants directly to use other images.
add_smart_display_ad.pl [options]
-help Show the help message. -customer_id The Google Ads customer ID. -marketing_image_asset_resource_name [optional] The resource name of marketing image asset. -square_marketing_image_asset_resource_name [optional] The resource name of square marketing image asset.
To install Google::Ads::GoogleAds::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Ads::GoogleAds::Client
CPAN shell
perl -MCPAN -e shell install Google::Ads::GoogleAds::Client
For more information on module installation, please visit the detailed CPAN module installation guide.